/* Signup-style focused pages: /signup and /agency/setup (moved out of signup.html). */

/* The app tokens from base.html, so shared components (segmented control, stepper) render here too. */
:root {
    --bg-elevated:        hsl(210, 11%, 14%);
    --bg-surface-hover:   hsl(210, 4%, 19%);
    --text-primary:       hsl(0, 0%, 98%);
    --text-secondary:     #bec1c3;
    --text-muted:         hsl(0, 0%, 42%);
    --border-color:       hsl(210, 6%, 19%);
    --border-color-light: hsl(210, 6%, 22%);
}
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 2rem 1rem;
    background: #0e0e0e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Card ── */
.auth-card {
    background-image: linear-gradient(to bottom, #0e0e0e, rgba(75, 85, 99, 0.1));
    border: 1px solid hsl(210, 6%, 19%);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 580px;
    margin: 0 0 2rem;
}

/* ── Typography ── */
.auth-card h2 { color: hsl(0, 0%, 98%); font-size: 1.4rem; font-weight: 500; margin-bottom: 0.25rem; }
.subtitle { color: hsl(0, 0%, 60%); font-size: 0.875rem; margin-bottom: 1.75rem; }
.field-label { color: hsl(0, 0%, 80%); font-size: 0.85rem; font-weight: 400; margin-bottom: 0.35rem; display: block; }

/* ── Text inputs ── */
.form-control {
    background: none;
    border: 1px solid hsl(210, 6%, 19%);
    color: hsl(0, 0%, 98%);
    border-radius: 7px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    width: 100%;
}
.form-control:focus {
    background: hsl(210, 11%, 5%);
    border-color: #4CD4A9;
    color: hsl(0, 0%, 98%);
    box-shadow: 0 0 0 2px rgba(76, 212, 169, 0.15);
    outline: none;
}
.form-control::placeholder { color: hsl(0, 0%, 40%); }
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #191919 inset;
    -webkit-text-fill-color: whitesmoke;
    box-shadow: 0 0 0 1000px #191919 inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: whitesmoke;
}

/* ── Field group ── */
.field-group { margin-bottom: 1.1rem; }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── Primary button ── */
.btn-outline-light {
    --bs-btn-color: #1a1a1a;
    --bs-btn-bg: #e5e5e5;
    --bs-btn-border-color: #e5e5e5;
    --bs-btn-hover-color: #ededed;
    --bs-btn-hover-bg: rgba(30, 30, 30, 0.7);
    --bs-btn-hover-border-color: #ededed;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1d1d1d;
    height: 45px;
    font-size: 0.9rem;
}

/* ── Google button ── */
.google-btn {
    display: flex;
    align-items: center;
    height: 45px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid hsl(210, 6%, 22%);
    text-decoration: none;
    color: hsl(0, 0%, 80%);
    background: hsl(210, 11%, 8%);
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 0.5rem;
}
.google-btn:hover { border-color: hsl(210, 6%, 35%); background: hsl(210, 11%, 11%); color: hsl(0, 0%, 98%); }
.google-icon-wrap {
    flex: 0 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    height: 100%;
    border-radius: 6px 0 0 6px;
}
.google-btn span { flex: 1; text-align: center; padding-right: 3rem; }

/* ── Footer link ── */
.footer-link { color: hsl(0, 0%, 50%); font-size: 0.85rem; margin-top: 1rem; margin-bottom: 0; }
.footer-link a { color: #4CD4A9; text-decoration: none; }
.footer-link a:hover { text-decoration: underline; }

/* ── Home button ── */
.upper-left-corner { position: fixed; top: 10px; left: 25px; z-index: 100; }
.home-button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #919198;
    text-decoration: none;
    background-color: #1a1a1e;
    border: 1px solid #2a2a2e;
    border-radius: 6px;
    max-width: 70px;
    padding: 2px 5px;
    justify-content: center;
}
.home-button .icon { width: 15px; height: 15px; stroke: #919198; transition: stroke 0.3s ease; }
.home-button:hover { background-color: #2a2a2e; color: whitesmoke; }
.home-button:hover .icon { stroke: whitesmoke; }
@media (min-width: 769px) { .home-button { margin-top: 20px; } }
@media (min-width: 480px) { .home-button { margin-top: 10px; } }

/* ── Logo ── */
.image-container { width: 100%; max-width: 420px; }
.center-image { display: block; margin: 0 auto 1.25rem; }

/* ── Progress badge ── */
.progress-badge { color: hsl(0,0%,40%); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 0.6rem; }

/* ── Section divider ── */
.section-divider { border-top: 1px solid hsl(210,6%,15%); margin: 1.25rem 0; }

/* ── Pill wrap ── */
.pill-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Role pills ── */
.role-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    white-space: nowrap; padding: 0.45rem 1rem;
    border: 1px solid hsl(210,6%,19%); border-radius: 50rem;
    background: transparent; color: hsl(0,0%,60%);
    font-size: 0.82rem; cursor: pointer; transition: all 0.2s; user-select: none;
}
.role-btn:hover  { border-color: hsl(210,6%,35%); color: hsl(0,0%,85%); }
.role-btn.active { border-color: #4CD4A9; color: #4CD4A9; background: rgba(76,212,169,0.08); }

/* ── Challenge checkboxes ── */
.challenge-checkbox { position: relative; }
.challenge-checkbox input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.challenge-checkbox label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem; border: 1px solid hsl(210,6%,19%);
    border-radius: 50rem; font-size: 0.82rem; color: hsl(0,0%,60%);
    cursor: pointer; transition: all 0.2s; white-space: nowrap; user-select: none;
}
.challenge-checkbox label:hover { border-color: hsl(210,6%,35%); color: hsl(0,0%,85%); }
.challenge-checkbox input:checked + label { background: rgba(76,212,169,0.08); border-color: #4CD4A9; color: hsl(0,0%,98%); }
.challenge-checkbox .icon-unchecked { font-size: 0.82rem; color: hsl(0,0%,45%); }
.challenge-checkbox .icon-checked   { font-size: 0.82rem; color: #4CD4A9; display: none; }
.challenge-checkbox input:checked + label .icon-unchecked { display: none; }
.challenge-checkbox input:checked + label .icon-checked   { display: inline; }

/* ── Slider ── */
.single-slider       { position: relative; height: 6px; background: rgba(213,219,225,0.1); border-radius: 10px; cursor: pointer; }
.single-slider-track { position: absolute; height: 100%; background: rgb(213,219,225); border-radius: 10px; left: 0; pointer-events: none; }
.single-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: rgb(213, 219, 225);
    border: 2px solid hsl(210, 11%, 8%);
    border-radius: 50%;
    cursor: grab;
    /* Only animate visual effects, NOT left, animating left causes drag lag */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.single-slider-thumb:hover  { transform: translate(-50%, -50%) scale(1.1);  box-shadow: 0 2px 12px rgba(213, 219, 225, 0.4); }
.single-slider-thumb:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 2px 12px rgba(213, 219, 225, 0.4); }
.volume-slider-wrapper  { position: relative; margin-bottom: 2.5rem; }
.volume-output          { position: absolute; right: 0; bottom: -2.5rem; min-width: 55px; text-align: center; color: hsl(0,0%,98%); cursor: default; font-size: 0.82rem; }
.timing-range-container { padding: 0.5rem 0; }

/* ── Inline error ── */
.inline-error { color: #f87171; font-size: 0.8rem; margin-top: 0.35rem; display: none; }

/* ── Form select (for billing country dropdown) ── */
.form-select {
    background: none;
    border: 1px solid hsl(210, 6%, 19%);
    color: hsl(0, 0%, 98%);
    border-radius: 7px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    width: 100%;
}
.form-select:hover { border-color: hsl(210, 5%, 23%); cursor: pointer; background: hsla(200, 12%, 5%, 0.239); }
.form-select:focus { background: hsl(210, 11%, 5%); border-color: #4CD4A9; color: hsl(0, 0%, 98%); box-shadow: 0 0 0 2px rgba(76, 212, 169, 0.15); outline: none; }
.form-select option { background: #1a1a1a; }

/* ── Billing type toggle ── */
.type-toggle { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.type-btn {
    flex: 1; padding: 0.55rem 1rem;
    border: 1px solid hsl(210, 6%, 19%); border-radius: 50rem;
    background: transparent; color: hsl(0, 0%, 60%);
    cursor: pointer; font-size: 0.87rem; transition: all 0.2s;
    text-align: center; user-select: none;
    display: flex; align-items: center; justify-content: center;
    min-height: 2.5rem;
}
.type-btn:hover { border-color: hsl(210, 6%, 35%); color: hsl(0, 0%, 85%); background: hsla(200, 12%, 5%, 0.239); }
.type-btn.active { border-color: #4CD4A9; color: #4CD4A9; background: rgba(76, 212, 169, 0.08); }

/* ── Billing helpers ── */
.helper-text { color: hsl(0, 0%, 45%); font-size: 0.78rem; margin-top: 0.3rem; }
.or-divider { display: flex; align-items: center; gap: 0.75rem; color: hsl(0, 0%, 40%); font-size: 0.8rem; margin: 0.75rem 0; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-top: 1px solid hsl(210, 6%, 19%); }
.fixed-height { height: 45px !important; }

/* ── Verify step feedback ── */
.su-feedback {
    display: none; font-size: 0.85rem; margin-bottom: 1rem;
    padding: 0.6rem 0.85rem; border-radius: 7px;
}
.su-feedback.error { background: rgba(229,85,85,0.1); border: 1px solid rgba(229,85,85,0.3); color: #e55; }
.su-feedback.success { background: rgba(76,212,169,0.1); border: 1px solid rgba(76,212,169,0.3); color: #4CD4A9; }

.btn-secondary {
  --bs-btn-color: #ededed;
  --bs-btn-bg: rgba(123, 123, 123, 0.1);
  --bs-btn-border-color: rgba(123, 123, 123, 0.4);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(123, 123, 123, 0.5);
  --bs-btn-hover-border-color: #6f6f6f;
  --bs-btn-focus-shadow-rgb: 130, 138, 145;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #565e64;
  --bs-btn-active-border-color: #51585e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6c757d;
  --bs-btn-disabled-border-color: #6c757d;

}
