
/* =========================================
   GLOBAL SETTINGS
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f4f3;
    color: #333333;
    line-height: 1.6;
}

.page-container {
    width: 100%;
    min-height: 100vh;
    padding: 35px 15px;
}

.form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================
   HEADER
========================================= */

.form-header {
    text-align: center;
    padding: 25px 25px 10px;
    background: #527baf14;
    border-bottom: 5px solid #f3d4a54a;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.logo-container img {
    display: block;
    width: 110px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.form-header h1 {
    color: #153d32;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.header-subtitle {
    color: #c39b36;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-description {
    color: #666666;
    font-size: 14px;
}


/* =========================================
   COUNTDOWN SECTION
========================================= */

.countdown-container {
    background: #f8f9f8;
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}

.countdown-container h2 {
    color: #153d32;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95px;
    min-height: 40px;
    padding: 8px;
    background: #153d32;
    border-radius: 7px;
    color: #ffffff;
}

.countdown-box span {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.countdown-box small {
    font-size: 12px;
    color: #e6e6e6;
    margin-top: 5px;
}

.countdown-message {
    margin-top: 17px;
    color: #153d32;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   LANGUAGE SELECTOR
   Positioned after countdown message
========================================= */

.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 15px 0;
}

.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #d5dcd7;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-flag {
    font-size: 18px;
    line-height: 1;
}

.language-button:hover {
    background: #e9eee9;
    border-color: #153d32;
}

.language-button.active {
    background: #153d32;
    color: #ffffff;
    border-color: #153d32;
}

.language-button:focus-visible {
    outline: 3px solid #c6a84b;
    outline-offset: 2px;
}


/* =========================================
   FORM INTRODUCTION
========================================= */

.form-introduction {
    padding: 25px 30px 15px;
    text-align: center;
}

.form-introduction h2 {
    color: #153d32;
    font-size: 19px;
    margin-bottom: 7px;
}

.form-introduction p {
    color: #666666;
    font-size: 14px;
}


/* =========================================
   FORM STRUCTURE
========================================= */

#worshipServiceForm {
    padding: 10px 30px 30px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9eee9;
}

.section-heading i {
    color: #c39b36;
    font-size: 18px;
}

.section-heading h3 {
    color: #153d32;
    font-size: 15px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-group {
    width: 100%;
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.required {
    color: #d62828;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d9dfdb;
    border-radius: 5px;
    outline: none;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.form-group input,
.form-group select {
    min-height: 43px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #153d32;
    box-shadow: 0 0 0 3px rgba(21, 61, 50, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
    font-size: 13px;
}


/* =========================================
   RADIO BUTTONS
========================================= */

.radio-group {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-option {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.radio-option input {
    width: 16px;
    height: 16px;
    min-height: auto;
    accent-color: #153d32;
    cursor: pointer;
}


/* =========================================
   CONDITIONAL FIELDS
========================================= */

.conditional-section {
    display: none;
    padding: 18px;
    margin: 15px 0;
    background: #f8f9f8;
    border: 1px solid #e5eae6;
    border-radius: 6px;
}

.conditional-section.visible {
    display: block;
}

#guest-names-section {
    margin-top: 18px;
}


/* =========================================
   CONFIRMATION
========================================= */

.confirmation-section {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9f8;
    border: 1px solid #e5eae6;
    border-radius: 6px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #444444;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-option input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #153d32;
}


/* =========================================
   ERROR MESSAGES
========================================= */

.error-message {
    display: block;
    color: #d62828;
    font-size: 12px;
    margin-top: 5px;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.submit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-width: 150px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #153d32;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease,
                transform 0.2s ease;
}

.submit-button:hover {
    background: #205744;
    transform: translateY(-1px);
}

.submit-button:focus-visible {
    outline: 3px solid #c39b36;
    outline-offset: 3px;
}


/* =========================================
   FOOTER
========================================= */

.form-footer {
    padding: 20px 15px;
    background: #153d32;
    text-align: center;
    color: #ffffff;
}

.form-footer p:first-child {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-footer p:last-child {
    color: #d9e4de;
    font-size: 11px;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 650px) {

    .page-container {
        padding: 15px 8px;
    }

    .form-header {
        padding: 25px 15px;
    }

    .form-header h1 {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 17px;
    }

    .logo-container img {
        width: 90px;
        max-height: 90px;
    }

    .countdown-container {
        padding: 22px 10px;
    }

    .countdown-container h2 {
        font-size: 14px;
    }

    .countdown {
        gap: 7px;
    }

    .countdown-box {
        width: 70px;
        min-height: 70px;
        padding: 8px 5px;
    }

    .countdown-box span {
        font-size: 24px;
    }

    .countdown-box small {
        font-size: 10px;
    }

    .countdown-message {
        font-size: 13px;
    }

    .language-button {
        padding: 7px 11px;
        font-size: 12px;
    }

    .form-introduction {
        padding: 22px 15px 10px;
    }

    .form-introduction h2 {
        font-size: 16px;
    }

    #worshipServiceForm {
        padding: 10px 17px 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .section-heading h3 {
        font-size: 13px;
    }

    .submit-button {
        width: auto;
        min-width: 150px;
    }

}

@media (max-width: 360px) {

    .countdown-box {
        width: 62px;
    }

    .countdown-box span {
        font-size: 21px;
    }

    .language-selector {
        gap: 7px;
    }

    .language-button {
        padding: 7px 9px;
    }

}


/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    padding: 22px 15px;
    text-align: center;
    background: #f8f9f8;
    border-top: 1px solid #eeeeee;
}

.contact-section h3 {
    color: #153d32;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: #c39b36;
    font-size: 17px;
}

.contact-details a {
    color: #153d32;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.contact-details a:hover {
    color: #c39b36;
    text-decoration: underline;
}

/* =========================================
   CLIENT-SIDE VALIDATION ERRORS
========================================= */

.client-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.input-error {
    border-color: #dc3545 !important;
}

.input-error:focus {
    outline: none;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}


/* Success and Error Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.registration-closed {
    max-width: 750px;
    margin: 40px auto;
    padding: 40px 30px;
    text-align: center;
    background: #f8f9f8;
    border: 1px solid #eeeeee;
    border-radius: 12px;
}

.registration-closed i {
    font-size: 55px;
    color: goldenrod;
    margin-bottom: 20px;
}

.registration-closed h2 {
    color: #198754;
    font-size: 27px;
    margin-bottom: 8px;
}

.registration-closed h3 {
    color: #555;
    font-size: 21px;
    margin-bottom: 22px;
}

.registration-closed p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}