@charset "utf-8";

/* ==========================================================================
   1. CORE LAYOUT & TRANSPARENCY
   ========================================================================== */
body, main {
    padding-bottom: 0 !important;
    min-height: auto !important;
}

.container {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    background: transparent; 
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    color: #003366; 
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.5px;
}

.center-red {
    font-family: 'Inter', sans-serif;
    color: #AF1101; 
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer {
    margin-top: 0 !important;
    padding-top: 10px !important; /* Adjust as needed */
}

/* ==========================================================================
   2. FORM TABLE STRUCTURE
   ========================================================================== */
#contactForm {
    width: 100%;
    margin-bottom: 0 !important;
}

#contactForm table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none; 
    margin-bottom: 20px;
}

#contactForm td {
    padding: 5px 5px;
    vertical-align: middle;
}

.field-label {
    width: auto;
    font-weight: 700;
    color: #333;
    font-size: 0.9em;
    text-align: right;
}

/* ==========================================================================
   3. INPUTS & SELECTS
   ========================================================================== */
.form-input-field, 
#email_subject,
#booking_type,
#event_type,
#interest {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#booking_other_details,
#event_type_other_details {
    margin-top: 12px;
    background-color: #fdfdfd;
    border-style: dashed;
}

.form-input-field:focus,
select:focus {
    outline: none;
    border-color: #AF1101;
    box-shadow: 0 0 0 3px rgba(175, 17, 1, 0.15);
}

textarea.form-input-field {
    min-height: 150px;
    resize: vertical;
}

.tel-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    font-style: italic;
    text-align: left;
}

/* ==========================================================================
   4. BUTTON STYLING
   ========================================================================== */
.btn-actions { 
        display: flex;
        flex-direction: row; 
        justify-content: center;
        margin-top: 10px;
        margin-bottom: -25px;
        gap: 10px;
    }

.box_button {
    font-family: 'Inter', sans-serif;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    min-width: 120px; 
}

#submit_btn {
    background-color: #003366;
    color: #ffffff !important;
    margin-right: 20px;
}

#submit_btn:hover {
    background-color: #AF1101;
    transform: translateY(-2px);
}

#clear_btn {
    background-color: #e0e0e0;
    color: #333 !important;
}

#clear_btn:hover {
    background-color: #AF1101;
    color: #ffffff !important;
}

/* ==========================================================================
   5. MODALS & STATUS BOXES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.form-clear-confirmation-box,
.form-success-box,
.form-error-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    border-top: 6px solid #D20000;
    box-shadow: inset 0 3px 0 0 #ffffff, inset 0 9px 0 0 #002395, 0 10px 30px rgba(0,0,0,0.1);
}

.form-clear-confirmation-box {
    padding: 40px;
    max-width: 500px;
    width: 80%;
}

.form-error-box {
    padding: 25px;
    margin: 20px auto;
    max-width: 600px;
    width: 80%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #AF1101;
}

#modalMessage {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #000000;
    text-align: left;
}

#modalMessage ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

#modalMessage li {
    color: #000000;
    margin-bottom: 5px;
}

.modal-greeting {
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.0rem;
    color: #003366;
    margin-bottom: 20px;
    width: 100%;
}

#modalButtons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-confirm-btn { 
    background-color: #AF1101 !important; 
    color: #fff !important; 
}
.modal-close-btn { 
    background-color: #e0e0e0 !important; 
    color: #333 !important; 
}
.modal-close-btn:hover { 
    background-color: #AF1101 !important; 
    color: #fff !important; 
}

/* ==========================================================================
   6. SUCCESS PAGE 
   ========================================================================== */

.form-success-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.form-success-box {
    padding: 25px 20px;
    max-width: 500px;
    width: 80%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.success-icon {
    font-size: 60px;
    color: #AF1101; 
    margin-bottom: 10px;
    line-height: 1;
}

.form-success-box h2 {
    color: #003366;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-success-box p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

#box_btn {
    background-color: #AF1101;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block;
    padding: 14px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

#box_btn:hover {
    background-color: #003366;
}

.success-countdown {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.success-number {
    font-weight: 600;
    color: #AF1101;
}

/* ==========================================================================
   7. MOBILE
   ========================================================================== */
@media screen and (max-width: 950px) {
    .container { padding: 0 20px; }
    #contactForm table, #contactForm td, #contactForm tr { display: block; width: 100%; }
    
    .field-label {
        width: 100%;
        text-align: left;
        padding: 10px 20px 2px 20px;
        background-color: transparent;
        border-right: none;
    }
    
    .field-input { 
        padding: 2px 20px 10px 20px !important; 
    }

    #booking_other_details,
    #event_type_other_details {
        margin-top: 8px;
        margin-bottom: 5px;
    }

    .box_button { 
        width: fit-content; 
        max-width: 140px; 
        padding: 12px 20px;
        font-size: 12px;
    }

    .tel-hint {
        text-align: center;
    }
    #submit_btn {
    margin-right: 10px;
    }
}

@media screen and (max-width: 480px) {

    .btn-actions { 
        justify-content: center;
        gap: 10px;
        margin-left: 20px;
    }
    .btn-actions {
        flex-direction: row; 
    }
    .box_button {
        flex: 1; 
        max-width: 130px; 
        min-width: 100px;
    }
    .form-clear-confirmation-box {
        padding: 25px 15px;
    }
}

.is-hidden { display: none !important; }