/* ==========================================================================
   Supplier onboarding: the become-a-supplier wizard + the shared register
   form it reuses (modules/Layout/auth/register-form.blade.php, also used by
   the site-wide login/register modal). Consolidated out of inline <style>
   blocks - this file is the single source for all of it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared auth form (register-form.blade.php / login-form.blade.php)
   -------------------------------------------------------------------------- */
.bc-form-register .form-group,
.bc-form-login .form-group {
    position: relative;
    margin-bottom: 16px;
}
.bc-form-register .form-control,
.bc-form-login .form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px 12px 48px;
    font-size: 14px;
    background: #fafbfc;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    height: auto;
    width: 100%;
}
.bc-form-register .form-control:focus,
.bc-form-login .form-control:focus {
    background: #fff;
    border-color: #038a52;
    box-shadow: 0 0 0 3px rgba(3,138,82,0.08);
    outline: none;
}
.bc-form-register .form-control::placeholder,
.bc-form-login .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Question-style label above each field */
.bc-form-register .bc-form-label,
.bc-form-login .bc-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

/* Positioned wrapper for icon-badge + input + toggle button - kept separate from
   .form-group so the badge/toggle center on the input alone, not the label above it */
.bc-form-register .bc-input-wrap,
.bc-form-login .bc-input-wrap {
    position: relative;
}

/* Round icon badge */
.bc-form-register .input-icon-badge,
.bc-form-login .input-icon-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f5f3;
    border: 1px solid #e0e8e4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    color: #64748b;
    font-size: 14px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.bc-form-register .bc-input-wrap:focus-within .input-icon-badge,
.bc-form-login .bc-input-wrap:focus-within .input-icon-badge {
    color: #038a52;
    background: rgba(3,138,82,0.08);
    border-color: rgba(3,138,82,0.2);
}

/* Phone input - prevent text hidden under flag */
.bc-form-register .phone-field-wrap {
    position: relative;
}
.bc-form-register .phone-field-wrap .iti {
    width: 100%;
    display: block;
}
.bc-form-register .phone-field-wrap .iti .iti__selected-flag {
    background: #f0f5f3;
    border-right: 1.5px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    padding: 0 8px 0 12px;
    height: 100%;
}
.bc-form-register .phone-field-wrap .iti input.form-control,
.bc-form-register .phone-field-wrap .iti--separate-dial-code input.form-control {
    padding-left: 98px !important;
    border-radius: 8px;
}

/* Password toggle button */
.bc-form-register .pwd-toggle-btn,
.bc-form-login .pwd-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 3;
    color: #64748b;
    font-size: 15px;
    line-height: 1;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.bc-form-register .pwd-toggle-btn:hover,
.bc-form-login .pwd-toggle-btn:hover {
    color: #1e293b;
    background: #f0f0f0;
}
.bc-form-register .form-group.has-pwd-toggle .form-control,
.bc-form-login .form-group.has-pwd-toggle .form-control {
    padding-right: 46px;
}

/* Terms checkbox */
.bc-form-register .terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
    font-family: 'Poppins', sans-serif;
}
.bc-form-register .terms-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #038a52;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.bc-form-register .terms-row a {
    color: #f47c04;
    font-weight: 500;
    text-decoration: none;
}
.bc-form-register .terms-row a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   become-a-supplier: 3-step tracker (partials/steps.blade.php)
   -------------------------------------------------------------------------- */
.auth-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 0 0 28px; padding: 0 4px; }
.auth-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; min-width: 80px; position: relative; }
.auth-step-dot {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; border: 2px solid #e5e7eb; background: #fff; color: #9ca3af;
    transition: all .25s; position: relative; z-index: 1;
}
.auth-step.done  .auth-step-dot { background: #038a52; border-color: #038a52; color: #fff; }
.auth-step.active .auth-step-dot { background: #f47c04; border-color: #f47c04; color: #fff; box-shadow: 0 0 0 4px rgba(244,124,4,.15); }
.auth-step.pending .auth-step-dot { background: #f9fafb; border-color: #e5e7eb; color: #d1d5db; }
.auth-step-label { font-size: 10.5px; font-weight: 600; text-align: center; white-space: nowrap; color: #9ca3af; letter-spacing: .2px; line-height: 1.2; }
.auth-step.done  .auth-step-label { color: #038a52; }
.auth-step.active .auth-step-label { color: #f47c04; }
.auth-step-line { flex: 1; height: 2px; background: #e5e7eb; margin-top: 17px; min-width: 20px; transition: background .25s; }
.auth-step-line.done { background: #038a52; }
@media (max-width: 400px) { .auth-step-label { display: none; } .auth-step { min-width: 40px; } }

/* --------------------------------------------------------------------------
   become-a-supplier: Business Type / Service Type choice cards
   (business-type.blade.php, service-type.blade.php)
   -------------------------------------------------------------------------- */
.sup-choice-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sup-choice {
    display: flex; align-items: flex-start; gap: 12px;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    padding: 14px 16px; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.sup-choice:hover { border-color: #038a52; }
.sup-choice.is-selected { border-color: #038a52; background: rgba(3,138,82,.05); }
.sup-choice input[type="radio"] { margin-top: 3px; accent-color: #038a52; flex-shrink: 0; }
.sup-choice-icon {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    background: #f0fdf6; color: #038a52;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.sup-choice-body { display: flex; flex-direction: column; gap: 2px; }
.sup-choice-label-row { display: flex; align-items: center; gap: 6px; }
.sup-choice-label { font-size: 14px; font-weight: 600; color: #111827; }
.sup-choice-desc { font-size: 12.5px; color: #6b7280; line-height: 1.4; }

/* Info-icon tooltip on each option */
.sup-tip {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; color: #9ca3af; cursor: help; flex-shrink: 0;
}
.sup-tip:hover, .sup-tip:focus { color: #038a52; outline: none; }
.sup-tip i { font-size: 13px; }
.sup-tip-bubble {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
    width: 240px; max-width: 70vw; background: #111827; color: #fff; font-size: 12px; font-weight: 400;
    line-height: 1.5; padding: 10px 12px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s;
    z-index: 20; text-align: left;
}
.sup-tip-bubble::after {
    content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #111827;
}
.sup-tip:hover .sup-tip-bubble, .sup-tip:focus .sup-tip-bubble, .sup-tip:focus-within .sup-tip-bubble {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) {
    .sup-tip-bubble { left: auto; right: -8px; transform: translateY(4px); }
    .sup-tip:hover .sup-tip-bubble, .sup-tip:focus .sup-tip-bubble, .sup-tip:focus-within .sup-tip-bubble { transform: translateY(0); }
    .sup-tip-bubble::after { left: auto; right: 12px; transform: none; }
}

/* --------------------------------------------------------------------------
   become-a-supplier: Create Account step extras (create-account.blade.php)
   -------------------------------------------------------------------------- */
.sup-social { display: flex; gap: 10px; justify-content: center; }
.sup-social .btn { flex: 1; text-align: center; padding: 12px 0; border-radius: 8px; }
.sup-social-divider { margin: 14px 0; }

/* Business Type / Service Type validation error (was an inline style="") */
.sup-field-error { display: block; margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   become-a-supplier: welcome/landing page (welcome.blade.php)
   -------------------------------------------------------------------------- */
.bas-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.bas-page { --bas-ink: #111827; --bas-muted: #6b7280; --bas-green: #038a52; --bas-orange: #f47c04; --bas-line: #e5e7eb; }

.bas-hero { background: #0f172a; color: #fff; padding: 72px 0; text-align: center; }
.bas-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #86efac; margin: 0 0 14px; }
.bas-hero h1 { font-size: 34px; line-height: 1.25; font-weight: 700; max-width: 760px; margin: 0 auto 16px; }
.bas-hero-dek { font-size: 16px; color: #cbd5e1; max-width: 560px; margin: 0 auto 28px; }

.bas-btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.bas-btn-primary { background: var(--bas-green); color: #fff; }
.bas-btn-primary:hover { background: #027041; color: #fff; }

.bas-section { padding: 56px 0; }
.bas-section-alt { background: #f9fafb; }
.bas-section-title { font-size: 24px; font-weight: 700; color: var(--bas-ink); text-align: center; margin: 0 0 8px; }
.bas-section-sub { font-size: 14px; color: var(--bas-muted); text-align: center; max-width: 620px; margin: 0 auto 32px; }

.bas-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bas-card { border: 1px solid var(--bas-line); border-radius: 12px; padding: 28px 20px; text-align: center; }
.bas-card i { font-size: 26px; color: var(--bas-green); margin-bottom: 12px; }
.bas-card h3 { font-size: 16px; font-weight: 700; color: var(--bas-ink); margin: 0 0 6px; }
.bas-card p { font-size: 13px; color: var(--bas-muted); margin: 0; }

.bas-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin-top: 32px; }
.bas-benefit { display: flex; gap: 14px; align-items: flex-start; }
.bas-benefit i { font-size: 18px; color: var(--bas-green); margin-top: 3px; flex-shrink: 0; }
.bas-benefit h4 { font-size: 14px; font-weight: 700; color: var(--bas-ink); margin: 0 0 3px; }
.bas-benefit p { font-size: 13px; color: var(--bas-muted); margin: 0; line-height: 1.5; }

.bas-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.bas-gs-step { text-align: center; }
.bas-gs-num { width: 32px; height: 32px; border-radius: 50%; background: var(--bas-green); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.bas-gs-step h4 { font-size: 14px; font-weight: 700; color: var(--bas-ink); margin: 0 0 4px; }
.bas-gs-time { display: inline-block; font-size: 11px; font-weight: 600; color: var(--bas-orange); margin-bottom: 6px; }
.bas-gs-step p { font-size: 12.5px; color: var(--bas-muted); margin: 0; line-height: 1.5; }

.bas-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.bas-tab { border: 1px solid var(--bas-line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--bas-muted); cursor: pointer; }
.bas-tab.is-active { background: var(--bas-ink); border-color: var(--bas-ink); color: #fff; }
.bas-tab-panel { display: none; }
.bas-tab-panel.is-active { display: block; }
.bas-doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 760px; margin: 0 auto; }
.bas-doc-cols h4 { font-size: 13px; font-weight: 700; color: var(--bas-ink); margin: 0 0 10px; }
.bas-doc-cols ul { margin: 0; padding-left: 18px; }
.bas-doc-cols li { font-size: 13px; color: var(--bas-muted); margin-bottom: 6px; line-height: 1.5; }
.bas-doc-note { text-align: center; font-size: 12px; color: var(--bas-muted); margin: 24px 0 0; }

.bas-standards { list-style: none; margin: 32px auto 0; padding: 0; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.bas-standards li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bas-ink); }
.bas-standards i { color: var(--bas-green); font-size: 13px; }

.bas-faq { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 10px; }
.bas-faq-item { border: 1px solid var(--bas-line); border-radius: 10px; padding: 14px 18px; background: #fff; }
.bas-faq-item summary { font-size: 14px; font-weight: 600; color: var(--bas-ink); cursor: pointer; }
.bas-faq-item p { font-size: 13px; color: var(--bas-muted); margin: 10px 0 0; line-height: 1.6; }

.bas-cta { background: var(--bas-green); padding: 48px 0; text-align: center; }
.bas-cta h2 { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.bas-cta .bas-btn-primary { background: #fff; color: var(--bas-green); }
.bas-cta .bas-btn-primary:hover { background: #f0fdf6; color: var(--bas-green); }

@media (max-width: 860px) {
    .bas-cards, .bas-benefits { grid-template-columns: 1fr; }
    .bas-steps-row { grid-template-columns: 1fr 1fr; }
    .bas-doc-cols { grid-template-columns: 1fr; }
    .bas-hero h1 { font-size: 26px; }
}
