/**
 * Studio Booking Popup Styles
 *
 * @package ceron
 */

/* Popup Overlay */
#studio-booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Force all popup elements to be visible - override GSAP inline styles */
#studio-booking-popup,
#studio-booking-popup *,
#studio-booking-popup .popup-container,
#studio-booking-popup h1,
#studio-booking-popup h2,
#studio-booking-popup h3,
#studio-booking-popup p,
#studio-booking-popup button,
#studio-booking-popup input,
#studio-booking-popup textarea,
#studio-booking-popup img,
#studio-booking-popup label,
#studio-booking-popup div {
    opacity: 1 !important;
    transform: none !important;
}

.popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 869px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px 70px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #180a2c;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    padding: 0;
    line-height: 1;
}

.popup-close:hover {
    opacity: 0.7;
}

.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-title {
    font-family: var(--font-headline);
    font-size: 50px;
    line-height: 1.2;
    color: #180a2c;
    margin: 0 0 16px 0;
    text-align: center;
}

.popup-description {
    font-size: 16px;
    line-height: 26px;
    color: #666666;
    margin: 0;
    text-align: center;
}

.popup-divider {
    border: none;
    border-top: 1px solid #f5f5f5;
    margin: 30px 0;
}

/* Form Sections */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section-title {
    font-family: var(--font-headline);
    font-size: 22px;
    line-height: 1.2;
    color: #180a2c;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field input,
.form-field textarea {
    background: #f5f5f5;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: #180a2c;
    transition: background 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(24, 10, 44, 0.5);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    background: #ebebeb;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Studios Grid */
.studios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.studio-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studio-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.studio-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.studio-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #180a2c;
    flex-shrink: 0;
    margin: 0;
}

.studio-name {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.2;
    color: #666666;
    font-weight: 700;
}

.studio-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.studio-specs {
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    margin: 0;
}

.studio-specs span {
    color: #666666;
}

.studio-facilities {
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    margin: 0;
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #180a2c;
    flex-shrink: 0;
}

.privacy-checkbox span {
    font-size: 14px;
    line-height: 1.4;
    color: #666666;
}

.privacy-checkbox a {
    font-family: var(--font-primary);
    text-decoration: underline;
}

.btn-submit {
    background: #180a2c;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 12px 40px;
    font-family: var(--font-headline);
    font-size: 20px;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-weight: 300;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        padding: 40px 30px;
        max-height: 95vh;
    }

    .popup-title {
        font-size: 36px;
    }

    .popup-description {
        font-size: 14px;
    }

    .form-section-title {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .studios-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .studio-image {
        height: 180px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-submit {
        width: 100%;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: 30px 20px;
    }

    .popup-title {
        font-size: 28px;
    }

    .popup-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .form-field input,
    .form-field textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 10px 30px;
        font-size: 16px;
    }
}
