/* ── MySuncoast Scholarship — Public Form Styles ───────────────── */

:root {
    --brand-primary:    #005DA6;
    --brand-dark:       #1a2e4a;
    --brand-gray:       #6A737B;
    --brand-dark-gray:  #333E48;
    --brand-light-gray: #C1C5C9;
}

::selection {
    color: #fff;
    background-color: var(--brand-primary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f9;
}

/* ----- Public Header ----- */
.public-header {
    background: linear-gradient(to right, #0d1b2e 0%, #163560 50%, #1e5299 100%);
}

/* ----- Buttons ----- */
.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004a85 !important;
    border-color: #004a85 !important;
}

/* ----- Intro Section ----- */
.ojt-intro-section {
    padding-top: .5rem;
}

.ojt-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0, 93, 166, .12);
    color: var(--brand-primary);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .3rem .85rem;
    border-radius: 999px;
}

.ojt-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
    flex-shrink: 0;
}

.ojt-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-dark-gray);
    line-height: 1.2;
}

.ojt-intro-text {
    font-size: 1rem;
    color: var(--brand-dark-gray);
    max-width: 72ch;
}

.ojt-resources-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-gray);
    margin-bottom: .75rem;
}

.ojt-resource-tile {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    padding: 1.1rem 1.1rem 1rem;
    color: var(--brand-dark-gray);
    transition: box-shadow .15s, border-color .15s, color .15s;
    height: 100%;
}

.ojt-resource-tile:hover {
    box-shadow: 0 4px 14px rgba(0, 93, 166, .12);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.ojt-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 93, 166, .1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ojt-tile-title {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.3;
    color: var(--brand-dark-gray);
}

.ojt-resource-tile:hover .ojt-tile-title {
    color: var(--brand-primary);
}

.ojt-tile-sub {
    font-size: .8rem;
    color: var(--brand-gray);
    margin-top: .2rem;
}

.ojt-resource-tile:hover .ojt-tile-sub {
    color: var(--brand-primary);
    opacity: .8;
}

/* ----- Info toggle chevron ----- */
.info-chevron {
    transition: transform 0.2s ease;
}

[aria-expanded="true"] .info-chevron {
    transform: rotate(180deg);
}

/* ----- Scholarship Info Accordion ----- */
.accordion-info-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #fff;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ----- Inline Video Section ----- */
#intro-video-section {
    background: var(--brand-dark);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

#intro-video-section p.video-label {
    color: #fff;
    font-size: .95rem;
    margin-bottom: .75rem;
}

#intro-video-section video {
    width: 100%;
    border-radius: 4px;
    display: block;
}

/* ----- Form Lock ----- */
#form-wrapper {
    transition: opacity 0.4s ease;
}

#form-wrapper.form-locked {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

#lock-notice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: #664d03;
}

#lock-notice.hidden {
    display: none;
}

/* ----- Cards ----- */
.card {
    border: 1px solid #e0e4e8;
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .85rem 1.25rem;
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

.card-body {
    padding: 1.5rem 1.25rem;
}

/* ----- Form controls ----- */
.form-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--brand-dark-gray);
    margin-bottom: .35rem;
}

.form-control,
.form-select {
    font-size: .95rem;
    color: var(--brand-dark-gray);
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(0, 93, 166, .15);
    outline: none;
}

.text-primary {
    color: var(--brand-primary) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.alert-danger {
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    color: var(--brand-dark-gray);
}

/* ─────────────────────────────────────────────────────────────────
   Orientation Stepper
   ───────────────────────────────────────────────────────────────── */

/* Progress bar */
.stepper-progress-bar {
    padding: .75rem 0 .5rem;
}

.stepper-progress-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--brand-dark-gray);
}

.stepper-progress-counter {
    font-size: .82rem;
    color: var(--brand-gray);
    white-space: nowrap;
}

.progress-track {
    height: 6px;
    background: #dde2e8;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Step cards */
.step-card {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    transition: opacity .25s ease, border-color .25s ease;
}

.step-card.step-locked {
    opacity: .5;
    pointer-events: none;
}

.step-card.step-active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(0, 93, 166, .08);
}

.step-card.step-complete {
    border-color: #198754;
    background: #f6fff9;
}

/* Step number dot */
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .25s, color .25s;
}

.step-dot.locked   { background: #f0f0f0; color: #999; }
.step-dot.active   { background: rgba(0, 93, 166, .15); color: var(--brand-primary); }
.step-dot.complete { background: rgba(25, 135, 84, .15); color: #198754; }

.step-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand-dark-gray);
    line-height: 1.3;
}

.step-status {
    font-size: .82rem;
    margin-top: .1rem;
}

.step-right-icon {
    flex-shrink: 0;
    margin-left: .75rem;
}

/* PDF viewer */
.pdf-viewer-wrap {
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.pdf-viewer {
    max-height: 520px;
    overflow-y: auto;
    background: #525659;
    padding: 8px;
    scroll-behavior: smooth;
}

.pdf-viewer .pdf-page-wrap {
    margin-bottom: 4px;
}

.pdf-viewer canvas {
    border-radius: 2px;
    display: block;
    width: 100%;
}

/* PDF controls */
.pdf-controls {
    padding: .6rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e4e8;
}

/* ─────────────────────────────────────────────────────────────────
   Choices.js overrides
   ───────────────────────────────────────────────────────────────── */

/* ----- Choices.js overrides ----- */
.choices__inner {
    border-radius: 6px !important;
    border-color: #dee2e6 !important;
    font-size: .95rem !important;
    min-height: 38px !important;
    background-color: #fff !important;
}

.choices__list--multiple .choices__item {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.choices[data-type*="select-multiple"] .choices__button,
.choices[data-type*="text"] .choices__button {
    border-left-color: rgba(255,255,255,.5) !important;
}
