/* ==========================================================================
   Register Wizard — Styles from signup.html design
   Only page-specific CSS that isn't covered by design-system.css / Tailwind
   ========================================================================== */

/* ── floating-select base (missing from design-system.css, present in ip-b2b output.css) ── */
.floating-select {
    width: 100%;
    border-radius: 0.5rem;
    border-width: 1px;
    border-color: rgb(224 219 231);
    padding: 1rem;
    padding-right: 2.5rem;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    color: transparent;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23827c90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}
.floating-select.has-value {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: rgb(26 16 44);
}
.floating-select:focus {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: rgb(26 16 44);
    border-color: transparent;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgb(59 60 232);
}

/* ── Step panel fade-in ── */
.step-panel { animation: stepFadeIn 0.28s ease-out; }
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── OTP boxes ── */
.otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    background: white;
    color: #1f2937;
    caret-color: #6366f1;
}
.otp-box:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.otp-box.otp-filled {
    border-color: #6366f1;
    background: #eef2ff;
}

/* ── Tooltip ── */
.tip-wrap {
    position: relative;
    display: inline-flex;
}
.tip-box {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #f9fafb;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 10px;
    width: 270px;
    white-space: normal;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.tip-wrap:hover .tip-box { opacity: 1; pointer-events: auto; }
.tip-box::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #1f2937;
}

/* ── Brand suggestion dropdown ── */
#brandSuggestions { animation: stepFadeIn 0.15s ease-out; }

/* ── Attestation bottom sheet (matches app pattern) ── */
.bottom-sheet-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 88vh;
    background-color: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    animation: sheetSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0);    }
}
.bottom-sheet-handle {
    padding: 16px;
    display: flex;
    justify-content: center;
}
.handle-bar {
    width: 40px; height: 4px;
    background-color: #d1d5db;
    border-radius: 2px;
}
.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}
.bottom-sheet-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}
.bottom-sheet-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9999px;
    border: none;
    background-color: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bottom-sheet-close:hover { background-color: #f3f4f6; }
.bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.bottom-sheet-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e5e7eb;
}

/* ── Stepper connector ── */
.connector { flex: 1; height: 2px; margin-bottom: 28px; transition: background 0.3s; }

/* ── Secondary ID tab active/inactive ── */
.sid-tab-active   { background: #eef2ff; color: #4338ca; font-weight: 600; border-bottom: 2px solid #6366f1; }
.sid-tab-inactive { background: white;   color: #6b7280; font-weight: 500; border-bottom: 2px solid #e5e7eb; }

.field-hint { font-size: 12px; color: #9ca3af; }

/* ── Error banner ── */
.err-banner { padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; color: #b91c1c; margin-bottom: 16px; }

/* ── Mobile-only layout overrides ── */
@media (max-width: 600px) {
    .sso-grid        { grid-template-columns: 1fr !important; }
    .email-phone-grid { grid-template-columns: 1fr !important; }
    .entity-ein-grid  { grid-template-columns: 1fr !important; }
    .admin-role-row  { flex-direction: column !important; }
}

/* ── Food background ── */
#food-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease;
}
#food-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.38) 0%,
        rgba(240,242,245,0.32) 100%
    );
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
