html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

html { position: relative; min-height: 100%; }
body { margin-bottom: 60px; background: #f5f7fb; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3b82f6;
}

/* ── Navbar ── */
.navbar-brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -.5px; color: #1e3a5f !important; }

/* ═══════════════════════════════════════
   FLOW — shared card shell
═══════════════════════════════════════ */
.flow-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(30,58,95,.08);
    padding: 2rem 2.25rem;
    max-width: 700px;
    margin: 1.5rem auto 2rem;
}
@media (max-width: 575px) {
    .flow-card { padding: 1.4rem 1.1rem; border-radius: 14px; margin: .75rem auto 1.5rem; }
}

/* back link */
.flow-back {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .88rem;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.flow-back:hover { text-decoration: underline; }

/* page heading */
.flow-heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 .25rem;
}
.flow-sub {
    font-size: .9rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

.flow-pay-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.flow-pay-header .flow-sub { margin-bottom: 0; }
.flow-bank-info {
    flex: 0 0 250px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
    padding: .75rem .9rem;
    color: #1e3a5f;
    font-size: .83rem;
    line-height: 1.55;
}
.flow-bank-info-title {
    margin-bottom: .25rem;
    color: #2563eb;
    font-size: .88rem;
    font-weight: 700;
}
.flow-bank-info-lines { font-weight: 600; }
@media (max-width: 575px) {
    .flow-pay-header {
        display: block;
    }
    .flow-bank-info {
        margin-top: .9rem;
    }
}

/* ── Steps indicator ── */
.flow-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}
.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    flex: 1;
    position: relative;
}
.flow-step::before {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(-50% + 14px);
    right: calc(50% + 14px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.flow-step:first-child::before { display: none; }
.flow-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background .2s, color .2s;
}
.flow-step.is-done .flow-step-dot { background: #2563eb; color: #fff; }
.flow-step.is-active .flow-step-dot { background: #2563eb; color: #fff; box-shadow: 0 0 0 4px #dbeafe; }
.flow-step.is-done::before { background: #2563eb; }
.flow-step-label {
    font-size: .72rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}
.flow-step.is-active .flow-step-label { color: #2563eb; font-weight: 600; }
.flow-step.is-done .flow-step-label  { color: #2563eb; }

/* ── Order summary bar ── */
.flow-summary {
    background: #f0f6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: .85rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: .92rem;
    color: #1e3a5f;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
}
.flow-summary strong { color: #2563eb; }

/* ── Section divider ── */
.flow-section {
    border-left: 3px solid #2563eb;
    padding-left: .85rem;
    margin: 1.75rem 0 1rem;
    font-size: .98rem;
    font-weight: 700;
    color: #1e3a5f;
}
.flow-section.optional { border-color: #9ca3af; color: #6b7280; }

/* ── Form labels ── */
.flow-label { font-size: .88rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.flow-label .opt { font-weight: 400; color: #9ca3af; font-size: .8rem; margin-left: .3rem; }

/* ── Inputs ── */
.flow-card .form-control,
.flow-card .form-select {
    border-radius: 10px;
    border-color: #d1d5db;
    padding: .55rem .85rem;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.flow-card .form-control:focus,
.flow-card .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ── Radio option cards ── */
.flow-radio-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.flow-radio-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}
.flow-radio-card input { margin-right: .5rem; }

/* ── Submit button ── */
.flow-submit {
    margin-top: 1.5rem;
    padding: .7rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
}
@media (min-width: 480px) { .flow-submit { width: auto; } }

/* ── Total/commission card ── */
.flow-calc {
    border-radius: 12px;
    border: 1.5px solid #bfdbfe;
    background: #f0f6ff;
    padding: .85rem 1.1rem;
    margin: .75rem 0 1.25rem;
}
.flow-calc-total { font-size: 1.25rem; font-weight: 700; color: #2563eb; }
.flow-calc-commission { font-size: .9rem; color: #16a34a; font-weight: 600; }

/* ── Done / success page ── */
.flow-done-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.flow-done-no {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: .5px;
}

/* ── Validation error ── */
.flow-card .text-danger { font-size: .88rem; }

/* ── Brand sample ── */
.brand-sample {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}
.brand-sample-title {
    color: #1e3a5f;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .75rem;
    text-align: left;
}
.brand-sample img {
    display: block;
    width: min(100%, 360px);
    max-height: 520px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(15,23,42,.12);
}

/* ── Index page ── */
.home-banner { border-radius: 16px; overflow: hidden; }
.home-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(30,58,95,.07);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}
.home-section h2 { font-size: 1.05rem; font-weight: 700; color: #1e3a5f; margin-bottom: .75rem; }
.home-video-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 60px rgba(15,23,42,.35);
}
.home-video-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 3;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,.9);
    opacity: 1;
}
.home-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}
.home-video-intro,
.home-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.home-video-intro {
    z-index: 2;
    transition: opacity .2s ease, visibility .2s ease;
}
.home-video-intro.is-hidden {
    visibility: hidden;
    opacity: 0;
}
.home-video-intro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-video-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.58), rgba(15,23,42,.12) 42%, rgba(15,23,42,.18));
}
.home-video-intro h2 {
    position: absolute;
    top: clamp(1.2rem, 5vw, 3rem);
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    width: min(90%, 720px);
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: .03em;
    text-align: center;
    text-shadow: 0 3px 16px rgba(0,0,0,.45);
}
.home-video-frame iframe {
    border: 0;
}

/* ── Lookup ── */
.lookup-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(30,58,95,.08);
    padding: 2rem 2.25rem;
    max-width: 540px;
    margin: 1.5rem auto;
}
.lookup-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    font-size: .95rem;
}
.lookup-result div { padding: .2rem 0; border-bottom: 1px solid #f1f5f9; }
.lookup-result div:last-child { border-bottom: none; }
.lookup-result strong { color: #1e3a5f; min-width: 9rem; display: inline-block; }
