/* ============================================================
   DOMAIN FOR SALE — Stylesheet v2
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #1a3c6e;
    --blue-mid:   #2563a8;
    --blue-light: #e8f1fb;
    --blue-pale:  #f0f6ff;
    --gold:       #c8960c;
    --gold-light: #fef3c7;
    --green:      #15803d;
    --green-light:#dcfce7;
    --red:        #b91c1c;
    --red-light:  #fee2e2;
    --text:       #111827;
    --text-soft:  #374151;
    --muted:      #6b7280;
    --border:     #d1d5db;
    --border-soft:#e5e7eb;
    --white:      #ffffff;
    --bg:         #f3f7fc;
    --radius:     10px;
    --shadow:     0 4px 20px rgba(26,60,110,.10);
    --shadow-sm:  0 2px 8px rgba(26,60,110,.07);
}

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    min-height: 100vh;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue); }

/* ── Hero header ─────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #0f2448 0%, #1a3c6e 55%, #2563a8 100%);
    padding: 44px 24px 38px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: -90px; left: -50px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
    pointer-events: none;
}
.site-header .domain-badge {
    display: inline-block;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.92);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.site-header h1 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.site-header p {
    color: rgba(255,255,255,.68);
    font-size: .93rem;
    position: relative;
    z-index: 1;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 16px 70px;
}

/* ── Price banner ───────────────────────────────────────── */
.price-banner {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px 26px;
    text-align: center;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--blue);
}
.price-banner .for-sale-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.price-banner .label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 600;
}
.price-banner .amount {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -.02em;
}
.price-banner .sub {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 12px;
}
.price-banner .sub strong { color: var(--blue-mid); }

/* ── Domain info strip ──────────────────────────────────── */
.domain-info {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}
.domain-info-item {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--border-soft);
}
.domain-info-item:last-child { border-right: none; }
.domain-info-item .di-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 5px;
}
.domain-info-item .di-val {
    font-size: .95rem;
    font-weight: 700;
    color: var(--blue);
}

/* ── BIN banner ─────────────────────────────────────────── */
.bin-banner {
    background: linear-gradient(135deg, #78350f, #92400e);
    border-radius: var(--radius);
    padding: 22px 24px;
    text-align: center;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.bin-banner .bin-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.65);
    font-weight: 700;
    margin-bottom: 4px;
}
.bin-banner .bin-price {
    font-size: 2rem;
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.bin-banner .bin-note {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 14px;
    line-height: 1.5;
}
.bin-banner .bin-btn {
    display: inline-block;
    background: #fcd34d;
    color: #78350f;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    border: none;
    font-family: Arial, sans-serif;
    transition: background .15s;
}
.bin-banner .bin-btn:hover { background: #fbbf24; text-decoration: none; }

/* ── Card ───────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px 28px 32px;
    margin-bottom: 20px;
    border: 1px solid var(--border-soft);
}
.card h2 {
    font-size: 1.08rem;
    color: var(--blue);
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-pale);
    font-weight: 700;
}
.card .card-desc {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 22px;
    margin-top: 8px;
    line-height: 1.55;
}

/* ── Revise toggle ──────────────────────────────────────── */
.revise-toggle {
    display: block;
    width: 100%;
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-size: .9rem;
    color: var(--blue-mid);
    font-weight: 700;
    transition: border-color .2s, background .2s;
    font-family: Arial, sans-serif;
    margin-bottom: 0;
}
.revise-toggle:hover { border-color: var(--blue-mid); background: var(--blue-pale); }
.revise-toggle .arrow { float: right; transition: transform .25s; display: inline-block; }
.revise-toggle.open .arrow { transform: rotate(180deg); }
.revise-section { display: none; }
.revise-section.open { display: block; }
.revise-section .card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    margin-top: 0;
    box-shadow: none;
    border: 2px dashed var(--border);
    border-top: none;
}

/* ── Steps progress bar ─────────────────────────────────── */
.steps {
    display: flex;
    margin-bottom: 26px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
}
.step {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    background: #f9fafb;
    padding: 10px 4px;
    border-right: 1px solid var(--border-soft);
    transition: background .2s, color .2s;
}
.step:last-child { border-right: none; }
.step.active { background: var(--blue); color: #fff; }
.step.done   { background: var(--green-light); color: var(--green); }

/* ── CRITICAL: Multi-step form page display ─────────────── */
.form-page          { display: none !important; }
.form-page.active   { display: block !important; }

/* ── Fields ─────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.field .optional { font-weight: 400; color: var(--muted); font-size: .76rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: .97rem;
    font-family: Arial, sans-serif;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    -webkit-appearance: none;
}
.field input:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(37,99,168,.13);
}
.field .hint { font-size: .77rem; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.field .error-msg { font-size: .77rem; color: var(--red); margin-top: 5px; display: none; font-weight: 600; }
.field.has-error input { border-color: var(--red); }
.field.has-error .error-msg { display: block; }

/* ── Offer amount highlight box ─────────────────────────── */
.offer-highlight {
    background: var(--blue-pale);
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.offer-highlight .oh-label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--blue-mid);
    font-weight: 700;
    margin-bottom: 4px;
}
.offer-highlight .oh-amount {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
}
.input-prefix { position: relative; }
.input-prefix .prefix-sym {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
    pointer-events: none;
}
.input-prefix input { padding-left: 28px !important; }

/* ── Checkboxes ─────────────────────────────────────────── */
.check-field {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
}
.check-field input[type="checkbox"] {
    margin-top: 2px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}
.check-field label { font-size: .88rem; color: var(--text-soft); line-height: 1.55; cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-row { display: flex; gap: 10px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.btn {
    padding: 11px 26px;
    border-radius: 6px;
    font-size: .92rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
    cursor: pointer;
    border: none;
    transition: background .15s, opacity .15s;
    line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #0f2448; }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; opacity: .75; }
.btn-secondary { background: none; color: var(--muted); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.btn-submit { background: #15803d; color: #fff; padding: 12px 32px; font-size: .97rem; }
.btn-submit:hover { background: #166534; }

/* ── GDPR box ───────────────────────────────────────────── */
.gdpr-box {
    background: var(--blue-pale);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--blue-mid);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: .85rem;
    color: #1e3a5f;
    line-height: 1.6;
}

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: 7px;
    margin-bottom: 20px;
    font-size: .91rem;
    line-height: 1.55;
    border-left: 4px solid;
}
.alert-success { background: var(--green-light); border-color: var(--green); color: #14532d; }
.alert-error   { background: var(--red-light);   border-color: var(--red);   color: #7f1d1d; }
.alert-info    { background: var(--blue-light);  border-color: var(--blue-mid); color: #1e3a5f; }

/* ── Modal (BIN) ────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open { display: flex !important; }
.modal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 30px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
    text-align: center;
}
.modal-box h3 { color: var(--blue); font-size: 1.2rem; margin-bottom: 10px; }
.modal-box p  { color: var(--text-soft); font-size: .88rem; line-height: 1.65; margin-bottom: 12px; }
.modal-box .modal-price { font-size: 2.2rem; font-weight: 700; color: var(--blue); margin: 14px 0; letter-spacing: -.01em; }
.modal-close {
    margin-top: 10px;
    color: var(--muted);
    font-size: .84rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: Arial, sans-serif;
    text-decoration: underline;
}
.modal-close:hover { color: var(--blue); }

/* ── Policy pages ───────────────────────────────────────── */
.policy-wrap { max-width: 680px; margin: 0 auto; padding: 36px 16px 70px; }
.policy-wrap h1 { color: var(--blue); margin-bottom: 6px; font-size: 1.55rem; }
.policy-wrap h2 { color: var(--blue-mid); margin: 28px 0 8px; font-size: 1rem; font-weight: 700; }
.policy-wrap p  { font-size: .93rem; line-height: 1.75; margin-bottom: 12px; color: var(--text-soft); }
.policy-wrap ul { padding-left: 22px; margin-bottom: 12px; }
.policy-wrap li { font-size: .93rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 5px; }
.policy-wrap .updated { font-size: .8rem; color: var(--muted); margin-bottom: 28px; }
.policy-back { display: inline-block; margin-bottom: 22px; font-size: .88rem; color: var(--blue-mid); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 22px 16px;
    font-size: .8rem;
    color: var(--muted);
    border-top: 1px solid var(--border-soft);
    background: var(--white);
    margin-top: 20px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--blue-mid); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 540px) {
    .site-header h1 { font-size: 1.55rem; }
    .price-banner .amount { font-size: 2.4rem; }
    .card { padding: 20px 16px 24px; }
    .btn-row { flex-direction: column; }
    .btn, .btn-submit { width: 100%; text-align: center; }
    .domain-info { flex-wrap: wrap; }
    .domain-info-item { flex: 1 0 50%; border-bottom: 1px solid var(--border-soft); }
}

/* ── Cookie consent banner ──────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f2448;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 8000;
    box-shadow: 0 -2px 12px rgba(0,0,0,.2);
    flex-wrap: wrap;
}
.cookie-text {
    font-size: .83rem;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
    flex: 1;
}
.cookie-text a { color: #93c5fd; }
.cookie-btn {
    background: #2563a8;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: .85rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.cookie-btn:hover { background: #1a3c6e; }

/* ── Sale status screens (closed / sold) ─────────────────── */
.status-screen {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 52px 32px;
    text-align: center;
    margin: 20px 0;
}
.status-screen .status-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    line-height: 1;
}
.status-screen h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    font-weight: 700;
}
.status-screen p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.65;
}
.sold-screen   { border-top: 5px solid var(--green); }
.sold-screen h2 { color: var(--green); }
.closed-screen  { border-top: 5px solid var(--gold); }
.closed-screen h2 { color: #92400e; }

/* ── Offer highlight box ────────────────────────────────── */
.offer-highlight {
    background: var(--blue-pale);
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.offer-highlight .oh-label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--blue-mid);
    font-weight: 700;
    margin-bottom: 4px;
}
.offer-highlight .oh-amount {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
}
