/* =========================
   PAGE BASE
========================= */
body {
    background-color: #f1f1f1;
    padding-top: 50px;
}

/* Form container */
#regForm {
    background-color: #ffffff;
    margin: 40px auto;
    padding: 25px;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =========================
   CUSTOM FORM LAYOUT
   (NO Bootstrap conflict)
========================= */
.form-row-custom {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-group-custom {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

    /* Labels */
    .form-group-custom label {
        font-weight: 600;
        margin-bottom: 5px;
    }

    /* Inputs (only inside custom wrapper) */
    .form-group-custom input,
    .form-group-custom select {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #ced4da; /* matches Bootstrap */
        font-size: 14px;
    }

.label-with-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.help-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

    .help-icon:hover {
        opacity: 0.8;
    }

        /* =========================
   ACCESSIBILITY
========================= */

        /* Focus (Bootstrap already has one, we enhance slightly) */
        .form-group-custom input:focus,
        .form-group-custom select:focus {
            outline: 3px solid #0d6efd;
            outline-offset: 2px;
        }

/* Errors */
.invalid {
    border-color: red !important;
    background-color: #ffe6e6;
}

.error-msg {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

/* Checkbox error */
.checkpinvalid {
    color: red;
}


#coverageCheck.invalid {
    color: red;
}


.coverage-check-row {
    display: flex;
    align-items: flex-start; /* keeps checkbox aligned with first line of text */
    gap: 10px;
    margin-bottom: 15px;
}

    .coverage-check-row input[type="checkbox"] {
        margin-top: 3px; /* aligns vertically with text */
        flex-shrink: 0; /* prevents checkbox from shrinking */
    }

    .coverage-check-row label {
        margin: 0;
        font-weight: normal;
        line-height: 1.4;
    }

/* =========================
   STEP INDICATORS
========================= */
.step {
    display: inline-block;
    margin: 5px 5px 10px 0;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #dee2e6; /* Bootstrap gray */
    font-size: 14px;
}

    .step.active {
        background-color: #0d6efd;
        color: #fff;
        font-weight: 600;
    }

    .step.finish {
        background-color: #198754; /* Bootstrap green */
        color: white;
    }

/* =========================
   TABS
========================= */
.tab {
    display: none;
}

/* =========================
   SUMMARY
========================= */
.summaryElements {
    display: block;
    margin-bottom: 8px;
}

/* Definition list (better a11y) */
dl {
    margin: 0;
}

dt {
    font-weight: 600;
}

dd {
    margin-bottom: 10px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .form-row-custom {
        flex-direction: column;
    }

    #regForm {
        padding: 15px;
        margin: 15px;
    }

    /* Let Bootstrap handle buttons */
    #prevBtn, #nextBtn {
        width: 100%;
        margin-top: 10px;
    }

    .step {
        display: block;
        text-align: center;
    }
}

/* =========================
   KEEP EXISTING SITE CSS
========================= */

/* Carousel (unchanged) */
.carousel-caption p {
    font-size: 20px;
}

.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

@media screen and (max-width: 767px) {
    .carousel-caption {
        display: none;
    }
}

#qrCode {
    margin: 15px;
}

/* Footer logo */
.bcfslogofooter {
    float: right;
}

.stepper-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.stepper-item {
    flex: 1;
    text-align: center;
}

.step-counter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    line-height: 30px;
}

.stepper-item.active .step-counter,
.stepper-item.finish .step-counter {
    background: #4CAF50;
    color: white;
}

.btn-custom-primary {
    background: #4CAF50;
    color: white;
}

    .btn-custom-primary:hover {
        background: #3e8e41;
    }

.btn-custom-secondary {
    background: #bbbbbb;
    color: white;
}

:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}