﻿.p-extra-small {
    font-size: 0.85rem; /* smaller than Bootstrap's .small (0.875rem) */
    line-height: 1.3;
}

.bg-gradient-orange {
    background: linear-gradient(175deg, #EF9237, var(--bs-primary)) !important;
    color: var(--bs-white) !important;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table {
    border-radius: 0.4rem;
    overflow: hidden;
    background-color: var( --bs-light);
    box-shadow: 6px 6px 6px rgba(0,0,0,.1);
    width:99%;
}

    .table thead th {
        background: var(--bs-orange) !important;
        color: var(--bs-white) !important;
        padding: 15px;
    }

.bg-yellow {
    background-color: var(--bs-yellow);
    color: var(--bs-black);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-indicator .badge {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.border-orange {
    border: 2px solid var(--bs-orange); /* Use your JOIC brand orange */
}

.form-check-input:checked {
    background-color: var(--bs-orange);
    border-color: var(--bs-orange);
}

.collapsible {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

    .collapsible.show {
        display: block;
        overflow: hidden;
    }

.form-label {
    margin-bottom: 0.2rem;
/*    background-color: var( --bs-white);
    padding: .375rem .75rem;
    font-weight: 500;*/
}

.form-control, .form-select{
    height:50px;
}

textarea.form-control {
    height: auto;
}

.form-row-equal {
    display: flex;
    align-items: stretch;
    gap: 0.5rem; /* matches Bootstrap gap-2 */
}

.form-col-equal {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .form-col-equal .mb-3 {
        display: flex;
        flex-direction: column;
        flex: 1; /* Fill column height */
    }

    .form-col-equal .d-flex.flex-column {
        flex-shrink: 0; /* Labels & helper text take only needed space */
    }

    .form-col-equal .form-control {
        margin-top: auto; /* Push input down to align with other column */
    }

/* Disclosure: pill right, content full width below */
.joic-disclosure {
    display: grid;
    width: 100%;
}

    .joic-disclosure > summary {
        list-style: none;
        cursor: pointer;
        justify-self: end; /* <-- pin the pill to the right */
    }

        .joic-disclosure > summary::-webkit-details-marker {
            display: none;
        }

    .joic-disclosure .disclosure-content {
        grid-column: 1 / -1; /* span full width */
        overflow: hidden;
        height: 0;
        transition: height 240ms ease;
    }



/* (existing) cleanup + slide styles if you haven’t added them yet */
.joic-disclosure > summary::-webkit-details-marker {
    display: none;
}

.joic-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.joic-disclosure .disclosure-content {
    overflow: hidden;
    height: 0;
    transition: height 240ms ease;
}

.bg-section-gray {
    background-color: #f8f9fa;
    color: #343a40;
    padding: 1rem;
}

#administeredPayment {
    display: none;
}

#administeredPayment.force-show {
    display: block !important; 
}



/* Optional: tighten the gap between buttons */
.actions-compact {
    gap: .4rem !important;
}



#page-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* translucent dark layer */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* above everything, including modals */
}

/*
  This rule fixes the display of validation errors for Bootstrap radio buttons and checkboxes.
  It shows the .invalid-feedback message when its sibling .form-check container
  has an invalid input inside it.
*/
.form-check:has(.is-invalid) ~ .invalid-feedback {
    display: block;
}

/* Smooth, non-janky slide using height */
.joic-radio-desc {
    overflow: hidden;
    height: 0;
    display: none; /* hidden when closed */
    transition: height 250ms ease;
    will-change: height;
}

#surveyContainer {
    height:500px;
}

#surveyModalHeader {
    overflow: hidden;
}

    #surveyModalHeader .survey-banner-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0;
    }


/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .joic-radio-desc {
        transition-duration: 0ms;
    }
}





















