:root {
    --primary-orange: #FF661A;
    --text-dark: #000;
    --text-light: #2D2F31;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "neo-sans", sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero Section */

.img--cover, .vid--cover {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
}

.hero picture, .hero .hero-content {
    grid-area: 1/1;
}

.hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: center;
    color: var(--white);
    margin-bottom: 4rem;
}


    .hero .register-btn {
        background-color: #eeeeee00;
        color: #fff;
        border: 1px solid;
        margin-block-start: 2rem;
    }

        .hero .register-btn:hover {
            border: 1px solid #ffffff00;
        }

.hero-content {
    z-index: 9;
    position: relative;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 850px;
}

/* Tabs Section */
.programs-container {
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--primary-orange);
    margin-bottom: 40px;
    gap: 15px;
}

.tab-btn {
    padding: 15px 40px;
    border: none;
    background: #F0F0F0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

    .tab-btn.active {
        background-color: var(--primary-orange);
        color: var(--white);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Card Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.program-card {
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

    .program-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border-color: var(--primary-orange);
    }

.card-header {
    margin-bottom: 15px;
}

.card-type {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .card-type span::after {
        content: "•";
        margin-left: 15px;
        color: var(--primary-orange);
    }

    .card-type span:last-child::after {
        content: "";
    }

.program-card h3 {
    font-size: 1.3rem;
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 15px;
}

.card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    margin-bottom: 25px;
}

.program-overview h4,
.info-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.program-overview p,
.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.program-overview p {
    margin-bottom: 25px;
}

.read-more {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.register-btn {
    align-self: flex-start;
    padding: 12px 35px;
    border: none;
    background-color: #EEEEEE;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

    .register-btn:hover {
        background-color: var(--primary-orange);
        color: var(--white);
    }

/* Highlighted state for cards */
.program-card.featured {
    border: 2px solid var(--primary-orange);
}

    .program-card.featured .register-btn {
        background-color: var(--primary-orange);
        color: var(--white);
    }

/* --- Registration Page Specific Styles --- */

.reg-container h1,
.reg-container h2 {
    text-transform: uppercase;
}

.reg-container h2 {
    color: var(--primary-orange);
    margin-block: 1rem 2rem;
    font-size: 16px;
}

.reg-header {
    background-color: var(--white);
    padding: 40px 10%;
    border-bottom: 1px solid var(--border-color);
}

    .reg-header h1 {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .reg-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-orange);
        text-transform: uppercase;
    }

.reg-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 5%;
    min-height: 50vh;
}

.mandatory-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

    .mandatory-note span {
        color: red;
    }

.gap-20 {
    gap: 20px;
}

.action-link.back-btn,
.back-btn {
    background-color: #E0E0E0;
    color: #666;
    padding: 15px 40px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 10px;
    align-items: center;
}

    .back-btn:hover {
        background-color: #D0D0D0;
    }

.reg-submit-btn {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 15px 50px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    flex-grow: 1;
}

    .reg-submit-btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

/* --- Responsive View --- */
@media (max-width: 900px) {
    .hero {
        padding: 0 5%;
        height: 300px;
    }

        .hero h1 {
            font-size: 1.5rem;
        }

    .programs-container {
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .card-info-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 15px 20px;
        flex: 1;
        text-align: center;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .reg-header {
        padding: 30px 5%;
    }

        .reg-header h1 {
            font-size: 1.8rem;
        }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .page-btn:hover:not(:disabled) {
        border-color: var(--primary-orange);
        color: var(--primary-orange);
    }

    .page-btn.active {
        background-color: var(--primary-orange);
        border-color: var(--primary-orange);
        color: var(--white);
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .page-btn.prev,
    .page-btn.next {
        font-size: 1.2rem;
    }


/* Additional form styles for Survey and Trainer forms */

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.reg-container hr {
    grid-column: span 2;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .radio-item input[type="radio"] {
        width: 20px;
        height: 20px;
        accent-color: #1a8aff;
        cursor: pointer;
    }

    .radio-item label {
        margin-bottom: 0;
        cursor: pointer;
        font-size: 1rem;
        color: #333333;
        font-family: inherit;
        font-weight: 500;
    }

.radio-group .radio-item span {
    font-weight: 400;
    color: #333333;
}

textarea.form-input {
    min-height: 150px;
    resize: auto;
    padding: 15px;
    font-family: inherit;
}

.single-btn-wrapper {
    display: flex;
    width: 100%;
}

    .single-btn-wrapper .reg-submit-btn {
        width: 100%;
        text-align: center;
        display: block;
        margin: 0;
    }

.question-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.option-divider {
    height: 1px;
    width: 100%;
    background-color: #e0e0e0;
    margin: 10px 0;
}

.option-section {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
}

    .option-section h2 {
        font-size: 22px;
        color: #333;
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .option-section p {
        color: #555;
        margin-bottom: 25px;
        line-height: 1.6;
        font-size: 15px;
    }
     
        .option-section p span {
            color: var(--primary-orange);
            border: 1px solid;
            padding: 4px 10px;
            margin-inline: 10px;
            border-radius: 4px;
        }
        .action-link {
            display: inline-block;
            padding: 15px 40px;
            background-color: var(--primary-orange, #FF661A);
            color: var(--white, #ffffff) !important;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition, all 0.3s ease);
            text-transform: uppercase;
            border: none;
            cursor: pointer;
        }

    .action-link:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }




     .form-loading-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(17, 24, 39, 0.5);
        }

        .form-loading-overlay.is-visible {
            display: flex;
        }

        .form-loading-card {
            min-width: 200px;
            padding: 24px;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
            text-align: center;
        }

        .form-loading-spinner {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            border: 4px solid #e5e7eb;
            border-top-color: #057481;
            border-radius: 50%;
            animation: form-loading-spin 0.75s linear infinite;
        }

        .form-loading-text {
            margin: 0;
            color: #374151;
            font-weight: 600;
        }

        .resend-cert-loading {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
            color: #444;
        }

        .resend-cert-spinner {
            width: 18px;
            height: 18px;
            border: 2px solid #ccc;
            border-top-color: #333;
            border-radius: 50%;
            animation: resend-cert-spin 0.7s linear infinite;
        }


        .survey-loading-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(17, 24, 39, 0.5);
        }

        .survey-loading-overlay.is-visible {
            display: flex;
        }

        .survey-loading-card {
            min-width: 200px;
            padding: 24px;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
            text-align: center;
        }

        .survey-loading-spinner {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            border: 4px solid #e5e7eb;
            border-top-color: #057481;
            border-radius: 50%;
            animation: resend-cert-spin 0.75s linear infinite;
        }
@keyframes resend-cert-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
        .survey-loading-text {
            margin: 0;
            color: #374151;
            font-weight: 600;
        }

.password-rules-list.mandatory-note {
    font-style: italic;
    display: flex;
    flex-wrap: wrap;
    gap: 0px 25px;
}

.password-rules-list.mandatory-note li{position:relative;}
    .password-rules-list.mandatory-note li::after {
        content: "/";
        position: absolute;
        right: -16px;
        color: #ff661a;
    }