/* d:\Websites\Bafna Project\static\css\admincss\formmodal.css */

/**
 * Styles for the front-end form modal (#formModal).
 * This file provides a consistent look and feel for the contact form modal,
 * inheriting the luxury design language from the main site stylesheets.
 */

/* Design System Variables for consistency */
:root {
    --brand-primary: #0F6B4B; 
    --brand-accent: #D4AF37; 
    --brand-dark: #073525;
    --text-primary: #111612; 
    --text-muted: #55605a;
    --bg-main: #FFFFFF;
    --shadow-elegant: 0 30px 60px -15px rgba(15, 107, 75, 0.1), 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --border-subtle: rgba(15, 107, 75, 0.12);
}
/* The Modal Backdrop */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
}

/* Modal Content Box */
.modal-content {
    position: relative;
    background-color: var(--bg-main, #FFFFFF);
    margin: 10% auto;
    padding: 32px;
    border: 1px solid var(--border-subtle, #e1e8e3);
    width: 95%;
    max-width: 550px; /* A good default width for forms */
    border-radius: 16px;
    box-shadow: var(--shadow-elegant, 0 10px 30px rgba(0,0,0,0.1));
    -webkit-animation-name: slideIn;
    animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
}

/* The Close Button (X) */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--brand-dark, #073525);
    text-decoration: none;
    cursor: pointer;
}

/* Modal Header (for #modalTitle) */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-dark);
}

/* Styles for the form inside the modal body */
.modal #modalBody .enquiry-form {
    padding: 0;
    box-shadow: none;
}

.modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group.full-width {
    grid-column: 1 / -1;
}

.modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: var(--text-primary, #111612);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none; /* Removes default styling on iOS */
}

.modal .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(15, 107, 75, 0.1);
}

/* Submit Button Styling */
.modal .submit-btn {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #fff;
    box-shadow: 0 15px 30px -10px rgba(15, 107, 75, 0.3);
}

.modal .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -8px rgba(15, 107, 75, 0.4);
}

.modal .submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 15px 30px -10px rgba(15, 107, 75, 0.3);
}

/* Responsive adjustments for the modal form */
@media (max-width: 600px) {
    .modal .form-grid {
        grid-template-columns: 1fr;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}