/* ========================================
   Modal Popup Styles - Elan The Statement Sohna Road
   Design: Website 3 (Light Theme)
   Domain: elansohnaroads.in
   ======================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container - Light Theme */
.modal-container {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e8e8e8;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 60px -15px rgba(183, 155, 111, 0.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.modal-header p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.modal-header p strong {
    color: #b79b6f;
}

/* Modal Form */
.modal-form {
    padding: 24px 32px;
}

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

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    color: #333333;
    margin-bottom: 6px;
    font-weight: 500;
}

.modal-form label i {
    margin-right: 6px;
    color: #b79b6f;
    font-size: 0.8rem;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: #000000;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: #b79b6f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(183, 155, 111, 0.1);
}

.modal-form input::placeholder {
    color: #999999;
}

.modal-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b79b6f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.modal-form select option {
    background: #ffffff;
    color: #000000;
}

/* Checkbox styling */
.modal-form .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-form .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #b79b6f;
    cursor: pointer;
}

.modal-form .checkbox label {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #666666;
    cursor: pointer;
}

/* Submit Button */
.modal-form .btn {
    margin-top: 8px;
    padding: 16px 28px;
    font-size: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-form .btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modal-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal-form .btn i {
    font-size: 0.9rem;
}

/* Privacy Note */
.modal-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: #888888;
    margin-top: 16px;
}

.modal-privacy i {
    margin-right: 5px;
    color: #28a745;
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    padding: 20px 32px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
}

.modal-footer p {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 8px;
}

.modal-phone {
    font-size: 1.15rem;
    font-weight: 600;
    color: #b79b6f;
    transition: all 0.3s ease;
}

.modal-phone:hover {
    color: #000000;
}

.modal-phone i {
    margin-right: 8px;
    animation: phone-ring 1s ease infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0); }
}

/* Success State */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-message .success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
}

.success-message h4 {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 10px;
}

.success-message p {
    color: #666666;
    margin-bottom: 20px;
}

/* Floating Enquiry Button */
.float-btn.enquiry {
    background: #b79b6f;
    color: #ffffff;
}

.float-btn.enquiry:hover {
    background: #a68b5f;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 576px) {
    .modal-container {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }

    .modal-header {
        padding: 24px 20px 18px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-form {
        padding: 20px;
    }

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

    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-footer {
        padding: 16px 20px 20px;
    }
}

/* ========================================
   Generic Modal (for floor plan downloads)
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal .modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e8e8e8;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 32px;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal .modal-header {
    text-align: center;
    padding: 0 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.modal .modal-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.modal .modal-header p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group label {
    display: block;
    font-size: 0.85rem;
    color: #333333;
    margin-bottom: 6px;
    font-weight: 500;
}

.modal .form-group label i {
    margin-right: 6px;
    color: #b79b6f;
}

.modal .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: #000000;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal .form-group input:focus {
    outline: none;
    border-color: #b79b6f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(183, 155, 111, 0.1);
}

.modal .form-group input::placeholder {
    color: #999999;
}

.modal .btn-block {
    width: 100%;
    padding: 16px 28px;
    font-size: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000000;
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .btn-block:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modal .btn-block:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
