/* =========================================
   ONCE MAISON - Interest Form Modal Styles (EN)
   Emerald Green & Champagne Gold Theme
   ========================================= */

/* Modal Container */
.interest-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.interest-form-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Overlay */
.interest-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 36, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* Form Container */
.interest-form-container {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #0f2c24 0%, #1b4d3e 100%);
    border: 2px solid rgba(212, 175, 154, 0.3);
    border-radius: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 40px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 100px rgba(212, 175, 154, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.interest-form-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid rgba(212, 175, 154, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d4af9a;
    z-index: 10;
}

.interest-form-close:hover {
    background: rgba(212, 175, 154, 0.1);
    border-color: #d4af9a;
    transform: rotate(90deg);
}

/* Progress Indicator */
.form-progress {
    text-align: center;
    margin-bottom: 40px;
}

.progress-bar {
    width: 70%;
    height: 4px;
    background: rgba(212, 175, 154, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    justify-self: center;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #b89968, #d4af9a, #e8dcc8);
    border-radius: 2px;
    width: 20%;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 14px;
    color: #e8dcc8;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Form Screens */
.form-screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 300;
    color: #f5e6c8;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.edition-name {
    font-size: clamp(16px, 3vw, 20px);
    color: #d4af9a;
    font-weight: 400;
    margin-top: 10px;
}

.form-question {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 400;
    color: #f5e6c8;
    margin-bottom: 15px;
    line-height: 1.4;
}

.form-subtext {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(245, 230, 200, 0.85);
    font-weight: 300;
    line-height: 1.6;
    margin-top: 10px;
}

/* Form Body */
.form-body {
    margin-bottom: 40px;
}

.form-text {
    font-size: clamp(16px, 2.5vw, 18px);
    color: rgba(245, 230, 200, 0.85);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
    text-align: center;
}

/* Form Options */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.form-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.form-option .option-label {
    display: block;
    padding: 20px 25px;
    background: rgba(27, 77, 62, 0.3);
    border: 2px solid rgba(212, 175, 154, 0.2);
    border-radius: 15px;
    color: rgba(245, 230, 200, 0.85);
    font-size: clamp(15px, 2.5vw, 17px);
    font-weight: 300;
    transition: all 0.3s ease;
    text-align: center;
}

.form-option:hover .option-label {
    background: rgba(27, 77, 62, 0.5);
    border-color: rgba(212, 175, 154, 0.4);
}

.form-option input[type="radio"]:checked + .option-label {
    background: rgba(212, 175, 154, 0.15);
    border-color: #d4af9a;
    color: #f5e6c8;
    box-shadow: 0 0 20px rgba(212, 175, 154, 0.2);
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    color: #e8dcc8;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    padding: 15px 20px;
    background: rgba(27, 77, 62, 0.3);
    border: 2px solid rgba(212, 175, 154, 0.2);
    border-radius: 12px;
    color: #f5e6c8;
    font-size: 16px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(245, 230, 200, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #d4af9a;
    background: rgba(27, 77, 62, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 154, 0.1);
}

.form-group input:invalid {
    border-color: rgba(255, 100, 100, 0.5);
}

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

.form-footer-centered {
    flex-direction: column;
    align-items: center;
}

/* Form Buttons */
.btn-form-primary,
.btn-form-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Cormorant Garamond', Georgia, serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-form-primary {
    background: linear-gradient(135deg, #b89968, #d4af9a);
    border: 2px solid #d4af9a;
    color: #0f2c24;
    flex: 1;
}

.btn-form-primary:hover {
    background: linear-gradient(135deg, #d4af9a, #e8dcc8);
    box-shadow: 0 10px 30px rgba(212, 175, 154, 0.4);
    transform: translateY(-2px);
}

.btn-form-secondary {
    background: transparent;
    border: 2px solid rgba(212, 175, 154, 0.4);
    color: #d4af9a;
}

.btn-form-secondary:hover {
    background: rgba(212, 175, 154, 0.1);
    border-color: #d4af9a;
}

.btn-form-primary .btn-inner,
.btn-form-secondary .btn-inner {
    display: inline-block;
}

/* Success Icon */
.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.success-icon svg {
    color: #d4af9a;
    animation: checkmark 0.8s ease;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Scrollbar Styling for Modal */
.interest-form-container::-webkit-scrollbar {
    width: 8px;
}

.interest-form-container::-webkit-scrollbar-track {
    background: rgba(27, 77, 62, 0.3);
    border-radius: 10px;
}

.interest-form-container::-webkit-scrollbar-thumb {
    background: #b89968;
    border-radius: 10px;
}

.interest-form-container::-webkit-scrollbar-thumb:hover {
    background: #d4af9a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .interest-form-container {
        padding: 40px 25px;
        border-radius: 20px;
        width: 95%;
    }

    .form-footer {
        flex-direction: column;
    }

    .btn-form-primary,
    .btn-form-secondary {
        width: 100%;
    }

    .form-progress {
        margin-bottom: 30px;
    }

    .form-header {
        margin-bottom: 30px;
    }
}

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

    .interest-form-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }

    .form-option .option-label {
        padding: 18px 20px;
    }
}

/* Loading State */
.btn-form-primary.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-form-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #0f2c24;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
