/* ═══════════════════════════════════════════════════════
   Wayona Warranty Registration
   Brand: #000000 (black) · #082223 (dark teal) · #b5ce34 (lime-green)
   ═══════════════════════════════════════════════════════ */

:root {
    --wr-black:    #000000;
    --wr-teal:     #082223;
    --wr-teal-mid: #0d3436;
    --wr-green:    #b5ce34;
    --wr-green-dk: #96ac25;
    --wr-green-lt: #f4f8d8;
    --wr-white:    #ffffff;
    --wr-border:   #e0e0e0;
    --wr-text:     #111111;
    --wr-muted:    #666666;
    --wr-error:    #e53e3e;
}

/* ── Wrapper ─────────────────────────────────────────── */
.wr-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: inherit;
    box-sizing: border-box;
}
.wr-wrap *, .wr-wrap *::before, .wr-wrap *::after { box-sizing: inherit; }

/* ── Card ────────────────────────────────────────────── */
.wr-card {
    background: var(--wr-white);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
    overflow: hidden;
    border-top: 5px solid var(--wr-green);
}

/* ── Header ──────────────────────────────────────────── */
.wr-card__header {
    background: var(--wr-teal);
    padding: 34px 36px 28px;
    text-align: center;
}
.wr-card__title {
    color: var(--wr-white) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.2;
}
.wr-card__sub {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ── Progress bar ────────────────────────────────────── */
.wr-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 36px;
    background: #f5f9e4;
    border-bottom: 1px solid #dce8a0;
}
.wr-prog__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.wr-prog__circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #ddd;
    border: 2.5px solid #ddd;
    color: #aaa;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}
.wr-prog__label {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    white-space: nowrap;
    transition: color .3s;
}
.wr-prog__line {
    flex: 1; height: 3px; min-width: 60px;
    background: #ddd; border-radius: 2px;
    margin: 0 12px 24px;
    transition: background .4s;
}

/* Active */
.wr-prog__item--active .wr-prog__circle {
    background: var(--wr-green);
    border-color: var(--wr-green);
    color: var(--wr-black);
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(181,206,52,.22);
}
.wr-prog__item--active .wr-prog__label { color: var(--wr-teal); font-weight: 700; }

/* Done */
.wr-prog__item--done .wr-prog__circle {
    background: var(--wr-teal);
    border-color: var(--wr-teal);
    font-size: 0; color: transparent;
}
.wr-prog__item--done .wr-prog__circle::after {
    content: '✓'; font-size: 18px; font-weight: 800; color: var(--wr-green);
}
.wr-prog__item--done .wr-prog__label { color: var(--wr-teal); font-weight: 700; }
.wr-prog__item--done + .wr-prog__line { background: var(--wr-green); }

/* ── Alerts ──────────────────────────────────────────── */
.wr-alerts, #wr-alerts { margin: 0 36px; }
.wr-alerts:empty, #wr-alerts:empty { display: none; }
.wr-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 16px; border-radius: 8px;
    font-size: 14px; line-height: 1.55; margin: 16px 0 0;
}
.wr-alert--error { background: #fff0f0; color: #9b1c1c; border: 1px solid #f8b4b4; }

/* ── Step panels ─────────────────────────────────────── */
.wr-step { padding: 28px 36px 24px; }
.wr-step__head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}
.wr-step__pill {
    background: var(--wr-teal);
    color: var(--wr-green);
    font-size: 11px; font-weight: 800;
    padding: 4px 11px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .8px;
    flex-shrink: 0; border: 1.5px solid var(--wr-green);
}
.wr-step__title {
    margin: 0 !important; font-size: 17px !important;
    font-weight: 800 !important; color: var(--wr-teal) !important;
    border: none !important; padding: 0 !important;
}

@keyframes wr-in  { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:none; } }
@keyframes wr-out { from { opacity:1; transform:none; }             to { opacity:0; transform:translateX(-24px); } }
.wr-step--in  { animation: wr-in  .28s ease forwards; }
.wr-step--out { animation: wr-out .2s  ease forwards; }

/* ── Fields ──────────────────────────────────────────── */
.wr-field { margin-bottom: 20px; }
.wr-label { display: block; font-size: 14px; font-weight: 700; color: var(--wr-teal); margin-bottom: 7px; }
.wr-req { color: var(--wr-green-dk); margin-left: 2px; }

.wr-input, .wr-field select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--wr-border); border-radius: 8px;
    font-size: 15px; color: var(--wr-text); background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
.wr-select-wrap { position: relative; }
.wr-arr {
    position: absolute; right: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--wr-muted); pointer-events: none; font-size: 13px;
}
.wr-field select { padding-right: 36px; cursor: pointer; }

.wr-input:focus, .wr-field select:focus {
    outline: none;
    border-color: var(--wr-green);
    box-shadow: 0 0 0 3px rgba(181,206,52,.20);
    background: var(--wr-white);
}
.wr-input--error,
.wr-field--error .wr-input,
.wr-field--error select { border-color: var(--wr-error) !important; background: #fff5f5 !important; }
.wr-input--ok { border-color: var(--wr-green) !important; background: #f9fce8 !important; }

/* Warranty badge */
.wr-warranty-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--wr-teal); border: 1.5px solid var(--wr-green);
    color: var(--wr-green); font-size: 13px; font-weight: 700;
    padding: 6px 14px; border-radius: 20px; margin-top: 8px;
}

/* Phone row */
.wr-phone-row { display: flex; align-items: stretch; }
.wr-phone-pfx {
    background: var(--wr-teal); color: var(--wr-green);
    font-size: 14px; font-weight: 800;
    padding: 11px 13px; border-radius: 8px 0 0 8px;
    border: 1.5px solid var(--wr-teal); border-right: none;
    white-space: nowrap; display: flex; align-items: center; flex-shrink: 0;
}
.wr-input--phone { border-radius: 0 8px 8px 0 !important; }

.wr-err { display: block; font-size: 12px; color: var(--wr-error); font-weight: 600; margin-top: 5px; min-height: 16px; }
.wr-hint { display: block; font-size: 12px; color: var(--wr-muted); margin-top: 5px; line-height: 1.5; }

/* ── Buttons ─────────────────────────────────────────── */
.wr-actions { margin-top: 26px; }
.wr-actions--split { display: flex; gap: 12px; align-items: center; }
.wr-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 13px 24px; border-radius: 8px;
    font-size: 15px; font-weight: 800; cursor: pointer; border: none;
    line-height: 1; transition: background .2s, box-shadow .2s, transform .1s;
    text-decoration: none; letter-spacing: .3px;
}
.wr-btn:active { transform: translateY(1px); }
.wr-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Primary — dark teal #082223, white text */
.wr-btn--primary {
    background: #082223; color: #ffffff !important;
    width: 100%; padding: 15px; font-size: 16px;
    box-shadow: 0 3px 12px rgba(8,34,35,.45);
    text-transform: uppercase; letter-spacing: .6px;
}
.wr-btn--primary:hover:not(:disabled) {
    background: #0d3436;
    box-shadow: 0 5px 18px rgba(8,34,35,.55);
    color: #ffffff !important;
}

/* Ghost — teal border, teal text */
.wr-btn--ghost {
    background: transparent; color: var(--wr-teal);
    border: 2px solid var(--wr-teal);
    flex-shrink: 0; padding: 12px 18px; width: auto; font-weight: 700;
}
.wr-btn--ghost:hover { background: var(--wr-teal); color: var(--wr-green) !important; }

.wr-privacy { text-align: center; font-size: 12px; color: #aaa; margin: 14px 0 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 560px) {
    .wr-card__header  { padding: 26px 20px 22px; }
    .wr-card__title   { font-size: 20px !important; }
    .wr-progress      { padding: 18px 20px; }
    .wr-prog__line    { min-width: 32px; }
    .wr-step          { padding: 24px 20px 18px; }
    .wr-alerts, #wr-alerts { margin: 0 20px; }
    .wr-actions--split { flex-direction: column-reverse; }
    .wr-btn--ghost    { width: 100%; }
}
