/* dotNOBLE order pages
   Brand colours live in the variables below – change them here only. */
:root {
    /* dotnoble.online palette */
    --brand: #121254;          /* deep navy – header, body text */
    --brand-contrast: #ffffff;
    --primary: #211efe;        /* royal blue – links, selected states, outline buttons */
    --primary-tint: #eeeeff;
    --noble: #0055ff;          /* Noble blue – the lettering in logo.svg */
    --noble-dark: #0044cc;
    --heading: var(--noble);
    --accent: #ec672d;         /* orange – main action buttons, logo mark */
    --accent-dark: #d4561f;
    --bg: #f4f4f6;
    --card: #ffffff;
    --text: #121254;
    --muted: #5d5d82;
    --border: #dcdce8;
    --success-bg: #e8f6ee; --success: #17663a;
    --error-bg: #fdecec;   --error: #a32020;
    --info-bg: #eeeeff;    --info: #211efe;
    --radius: 20px;            /* cards (site uses 20–25px) */
    --radius-sm: 12px;         /* inputs, small boxes */
    --radius-pill: 20px;       /* buttons */
    --gradient: linear-gradient(135deg, #211efe, #ec672d);
    --shadow: 0 1px 3px rgba(18, 18, 84, .08), 0 1px 2px rgba(18, 18, 84, .04);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); }
h1 { font-size: 1.75rem; font-weight: 700; color: var(--heading); margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header / footer */
/* White header like dotnoble.online. For a dark header, use background: var(--brand) with assets/img/logo-dark-background.png. */
.site-header { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; }
.site-header .wrap { display: flex; align-items: center; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 40px; width: auto; }
.site-footer { color: var(--muted); font-size: .85rem; padding: 32px 0; text-align: center; }
main.wrap { padding-top: 24px; }

/* Progress steps */
.steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted);
            padding-bottom: 8px; border-bottom: 3px solid var(--border); }
.steps .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
              background: var(--border); color: var(--text); font-size: .75rem; font-weight: 600; flex: none; }
.steps li.done { border-color: var(--accent); }
.steps li.done .num { background: var(--accent); color: #fff; }
.steps li.current { border-color: var(--noble); color: var(--noble); font-weight: 600; }
.steps li.current .num { background: var(--noble); color: #fff; }
@media (max-width: 600px) { .steps .label { display: none; } .steps li { justify-content: center; } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.lead { color: var(--muted); margin-top: 0; }

/* Alerts */
.alert, .notice { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error   { background: var(--error-bg);   color: var(--error); }
.alert-info, .notice { background: var(--info-bg); color: var(--info); }

/* Forms */
.field { margin: 16px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
    font: inherit; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

.type-choice { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .type-choice { grid-template-columns: 1fr; } }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm);
              padding: 14px; cursor: pointer; background: #fff; }
.radio-card input { margin-top: 4px; accent-color: var(--primary); }
.radio-card small { display: block; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: var(--primary-tint); }

/* Name + extension behave as one field: the frame and focus ring go around both. */
.domain-input { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.domain-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.domain-input input, .domain-input select { border: 0; border-radius: 0; font-size: 1.1rem; }
.domain-input input:focus, .domain-input select:focus { outline: none; }
.domain-input select { width: auto; min-width: 120px; border-left: 1px solid var(--border); }
.cf-turnstile { margin: 16px 0; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 12px 26px; border-radius: var(--radius-pill); border: 2px solid var(--primary);
       background: #fff; color: var(--primary); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--primary-tint); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; margin-top: 16px; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { padding: 6px 16px; font-size: .9rem; }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* Results */
.result-taken, .result-not_registered, .result-not_offered, .result-error, .result-rate_limited { border-left: 4px solid var(--error); }
.alternatives { list-style: none; padding: 0; margin: 12px 0; }
.alternatives li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.alternatives form { margin-left: auto; }
.alt-name { font-weight: 600; }
.alt-price { color: var(--muted); }

.plain-list { padding-left: 18px; }
.plain-list .selected { font-weight: 600; }
.debug { white-space: pre-wrap; background: #f0f0f0; padding: 12px; border-radius: 6px; }

/* Shared */
.muted { color: var(--muted); }
.summary-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.summary-strip strong { margin: 0 4px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.form-actions .btn-primary { margin-top: 0; }
.back-link { color: var(--muted); }

/* Step 2 – packages */
.package-form h1 { margin-top: 8px; }
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
@media (max-width: 640px) { .packages { grid-template-columns: 1fr; } }
/* Same gradient frame as the price cards on dotnoble.online */
.package { position: relative; border: 2px solid transparent; border-radius: 25px;
           background: linear-gradient(var(--card), var(--card)) padding-box, var(--gradient) border-box;
           box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; }
.package.featured { box-shadow: 0 6px 18px rgba(33, 30, 254, .12); }
.package:has(input:checked) { border-width: 3px; padding: 21px; box-shadow: 0 6px 18px rgba(33, 30, 254, .18); }
.package h2 { font-size: 1.25rem; margin-bottom: 8px; }
.badge { position: absolute; top: -11px; right: 18px; background: var(--accent); color: #fff; font-size: .75rem;
         font-weight: 700; padding: 3px 10px; border-radius: 999px; }
/* Package description from WHMCS. Lists get green ticks instead of bullets. */
.package-desc { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.package-desc p { margin: 0 0 8px; }
.package-desc ul, .package-desc ol { list-style: none; padding: 0; margin: 0 0 8px; }
.package-desc li { padding: 3px 0 3px 22px; position: relative; }
.package-desc li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.package-desc strong, .package-desc b { color: var(--text); }
.price-options { display: grid; gap: 8px; margin-top: auto; }
.price-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm);
                padding: 10px 12px; cursor: pointer; }
.price-option input { margin-top: 5px; accent-color: var(--primary); }
.price-option:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.price-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-body .cycle { width: 100%; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.price-body .amount { font-size: 1.25rem; font-weight: 700; }
.price-body .per { color: var(--muted); font-size: .9rem; }
.price-body .save { background: var(--success-bg); color: var(--success); font-size: .8rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.price-body .setup { width: 100%; font-size: .85rem; color: var(--muted); }

/* Step 3 – details / sign in */
.tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.tabs a { padding: 12px 18px; border: 1px solid var(--noble); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
          background: var(--noble); color: #fff; text-decoration: none; font-weight: 600; }
.tabs a:hover { background: var(--noble-dark); border-color: var(--noble-dark); }
.tabs a.active { background: var(--card); color: var(--noble); border-color: var(--border); position: relative; z-index: 1; }
@media (max-width: 520px) { .tabs a { flex: 1; text-align: center; padding: 10px 8px; font-size: .9rem; } }
.tab-card { border-top-left-radius: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; font-size: 1.05rem; margin: 12px 0 4px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-2 .field { margin: 10px 0; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field-error { color: var(--error); font-size: .9rem; margin: 4px 0 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.narrow-form { max-width: 440px; }
.account-box { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 8px 0 16px; }
.account-choices { display: grid; gap: 10px; margin: 12px 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--info); text-decoration: underline; cursor: pointer; }

/* Step 4 – summary / Step 5 – placed */
.page-title { margin: 4px 0 16px; }
.summary-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
@media (max-width: 700px) { .summary-layout { grid-template-columns: 1fr; } }
.summary-layout .card { margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lines { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.lines th, .lines td { padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.lines th { text-align: left; font-weight: 600; }
.lines th small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.lines td { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines tfoot th, .lines tfoot td { border-bottom: 0; font-size: 1.15rem; font-weight: 700; padding-top: 14px; }
.edit-links { margin: 12px 0 0; font-size: .9rem; }
.client-block { margin: 8px 0; line-height: 1.6; }
.place-form { margin-top: 16px; }
.promo-field { max-width: 320px; margin-top: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }
.center { text-align: center; }
.new-order { margin-top: 16px; }
