/* Abomate Register – Styles (aligned with abomate.io website) */

/* ── Inter Font (self-hosted, DSGVO) ─────────────────────── */
@font-face {
    font-family: 'Inter';
    src: url('https://www.abomate.io/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* ── Variables (matching website palette) ────────────────── */
:root {
    --reg-primary: #066fd1;
    --reg-primary-dark: #0c2d5a;
    --reg-accent: #4263eb;
    --reg-text: #1a1a2e;
    --reg-text-secondary: #636e82;
    --reg-text-muted: #8e99a9;
    --reg-bg: #f8f9fc;
    --reg-border: #e8ecf1;
    --reg-radius-md: 12px;
    --reg-radius-lg: 16px;
    --reg-radius-xl: 24px;
    --reg-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --reg-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --reg-shadow-lg: 0 8px 30px rgba(0,0,0,.10);
    --reg-shadow-primary: 0 8px 30px rgba(6,111,209,.3);
    --reg-gradient: linear-gradient(135deg, #066fd1 0%, #4263eb 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--reg-bg);
    color: var(--reg-text);
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--reg-text);
}
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }

/* ── Header (website-style navbar) ───────────────────────── */
.reg-header {
    background: #fff;
    border-bottom: 1px solid var(--reg-border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.reg-header .logo img {
    height: 30px;
    width: auto;
}

/* Header buttons – pill shape, good touch targets */
.reg-header .btn {
    border-radius: 9999px;
    font-weight: 500;
    font-size: .875rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reg-header .btn-sm {
    padding: 6px 14px;
}
/* Language switcher active state */
.reg-header .btn-primary {
    background: var(--reg-primary);
    border-color: var(--reg-primary);
}
/* Login button */
.reg-header .btn-outline-primary {
    color: var(--reg-primary);
    border-color: var(--reg-border);
}
.reg-header .btn-outline-primary:hover {
    background: var(--reg-primary);
    border-color: var(--reg-primary);
    color: #fff;
}

/* ── Section Title (Step 1) ──────────────────────────────── */
.reg-step h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}
.reg-step > p.text-muted {
    color: var(--reg-text-secondary) !important;
    font-size: 1.0625rem;
}

/* ── Billing Toggle (website-style) ──────────────────────── */
.billing-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: 9999px;
    padding: 4px;
    gap: 0;
}
.billing-toggle .btn {
    border: none;
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--reg-text-secondary);
    transition: all .2s ease;
    background: transparent;
}
.billing-toggle .btn.active {
    background: var(--reg-primary);
    color: #fff;
    box-shadow: var(--reg-shadow-sm);
}
.billing-toggle .btn:not(.active):hover {
    color: var(--reg-text);
}
.billing-toggle .badge {
    font-size: .7rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(255,255,255,.25) !important;
    color: inherit !important;
}
.billing-toggle .btn:not(.active) .badge {
    background: #0ea5e9 !important;
    color: #fff !important;
}

/* ── Plan Cards (website pricing style) ──────────────────── */
.plan-card {
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-xl);
    transition: all .3s ease;
    position: relative;
    opacity: 0;
    animation: planCardIn .5s ease both;
    box-shadow: none;
    overflow: visible;
}
.plan-card:nth-child(1) { animation-delay: .1s; }
.plan-card:nth-child(2) { animation-delay: .2s; }
.plan-card:nth-child(3) { animation-delay: .3s; }
.plan-card:nth-child(4) { animation-delay: .4s; }
@keyframes planCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.plan-card:hover {
    border-color: var(--reg-border);
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    transform: translateY(-4px);
}
.plan-card.selected {
    border-color: var(--reg-primary);
    box-shadow: var(--reg-shadow-primary);
}

/* Featured card (Business = popular) */
.plan-card.plan-featured {
    border: 2px solid var(--reg-primary);
    box-shadow: var(--reg-shadow-primary);
}
.plan-card.plan-featured:hover {
    box-shadow: 0 12px 40px rgba(6,111,209,.35);
}

/* Popular badge – gradient pill above card */
.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.plan-badge .badge {
    background: var(--reg-gradient) !important;
    color: #fff !important;
    font-size: .8125rem;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Card body padding */
.plan-card .card-body {
    padding: 32px 24px;
}

/* Plan name */
.plan-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--reg-text);
    margin-bottom: 20px;
}

/* Price */
.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--reg-text);
    line-height: 1;
}
.plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: super;
}
.plan-price .period {
    font-size: .9375rem;
    font-weight: 400;
    color: var(--reg-text-muted);
}
.plan-price .price-original {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: line-through;
    color: var(--reg-text-muted);
    margin-right: .25rem;
}

/* Separator */
.plan-card hr {
    border-color: var(--reg-border);
    opacity: 1;
    margin: 24px 0;
}

/* Feature list */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.plan-features li {
    padding: 6px 0;
    font-size: .9375rem;
    color: var(--reg-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.plan-features li .ti {
    font-size: .85rem;
    flex-shrink: 0;
    line-height: 1.5;
    font-weight: 700;
}
.plan-features li .ti-check {
    color: var(--reg-primary);
}
.plan-features li .ti-x {
    color: var(--reg-text-muted);
}

/* CTA Buttons in cards */
.plan-card .btn-primary {
    background: var(--reg-gradient);
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: .9375rem;
    box-shadow: var(--reg-shadow-primary);
    transition: all .3s ease;
}
.plan-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(6,111,209,.35);
}
.plan-card .btn-outline-primary {
    border: 2px solid var(--reg-border);
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--reg-primary);
    background: #fff;
    transition: all .3s ease;
}
.plan-card .btn-outline-primary:hover {
    border-color: var(--reg-primary);
    background: #e8f4fd;
    color: var(--reg-primary);
    transform: translateY(-2px);
}
.plan-card .btn-success {
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: .9375rem;
    transition: all .3s ease;
}
.plan-card .btn-success:hover {
    transform: translateY(-2px);
}

/* ── Step Slide Transition ──────────────────────────────── */
.reg-step {
    animation: stepSlideIn .4s ease both;
}
@keyframes stepSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Progress Bar ──────────────────────────────────────── */
.reg-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}
.reg-progress-step {
    display: flex;
    align-items: center;
}
.reg-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--reg-border);
    color: var(--reg-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    transition: all .3s ease;
}
.reg-progress-dot.active {
    background: var(--reg-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(6,111,209,.15);
}
.reg-progress-dot.completed {
    background: #2fb344;
    color: #fff;
}
.reg-progress-line {
    width: 60px;
    height: 2px;
    background: var(--reg-border);
    transition: background .3s ease;
}
.reg-progress-line.completed {
    background: #2fb344;
}

/* ── Form Container (Step 2) ─────────────────────────────── */
.reg-form-container {
    max-width: 580px;
    margin: 0 auto;
}
.reg-form-container .card {
    border-radius: var(--reg-radius-xl);
    border: 1px solid var(--reg-border);
    box-shadow: var(--reg-shadow-sm);
}
.reg-form-container .card-header {
    border-radius: var(--reg-radius-xl) var(--reg-radius-xl) 0 0;
    border-bottom-color: var(--reg-border);
}

/* Form Field Focus */
.reg-form-container .form-control:focus,
.reg-form-container .form-select:focus {
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px rgba(6,111,209,.12), 0 1px 2px rgba(0,0,0,.04);
}
.reg-form-container .mb-3:focus-within > .form-label {
    color: var(--reg-primary);
}

/* Step 2 submit buttons */
.reg-form-container .btn-primary {
    background: var(--reg-gradient);
    border: none;
    border-radius: var(--reg-radius-md);
    font-weight: 600;
    padding: 12px 24px;
}
.reg-form-container .btn-success {
    border-radius: var(--reg-radius-md);
    font-weight: 600;
    padding: 12px 24px;
}

/* ── Success Checkmark (SVG Stroke) ─────────────────────── */
.success-checkmark-circle {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
}
.success-checkmark-circle svg { width: 96px; height: 96px; }
.success-checkmark-circle .circle {
    fill: none; stroke: #2fb344; stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: checkCircle .6s .2s ease forwards;
}
.success-checkmark-circle .check {
    fill: none; stroke: #2fb344; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: checkStroke .35s .65s ease forwards;
}
@keyframes checkCircle { to { stroke-dashoffset: 0; } }
@keyframes checkStroke { to { stroke-dashoffset: 0; } }

/* ── Confetti ──────────────────────────────────────────── */
.confetti-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: hidden; z-index: 9999;
}
.confetti-piece {
    position: absolute; width: 8px; height: 8px; top: -10px; border-radius: 2px;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(.3); opacity: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
.reg-footer {
    padding: 2.5rem 0 2rem;
    color: var(--reg-text-muted);
    font-size: .8rem;
    border-top: 1px solid var(--reg-border);
    margin-top: 3rem;
}
.reg-footer a {
    color: var(--reg-text-muted);
    text-decoration: none;
    transition: color .2s;
}
.reg-footer a:hover {
    color: var(--reg-text);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .plan-price { font-size: 2.2rem; }
    .plan-card .card-body { padding: 24px 16px; }
    .reg-header .container { padding-left: 12px; padding-right: 12px; }
    .billing-toggle .btn { padding: 6px 14px; font-size: .85rem; }
}

/* ── Form Inputs (min 16px to prevent iOS auto-zoom) ───── */
.reg-form-container .form-control,
.reg-form-container .form-select {
    font-size: 1rem;
}
.reg-form-container .form-control::placeholder {
    font-size: .875rem;
}

/* ── Password Strength Indicator ─────────────────────────── */
.pw-strength-bar {
    height: 4px;
    background: var(--reg-border);
    border-radius: 2px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s ease, background .3s ease;
}
.pw-strength-label {
    font-size: .75rem;
    min-height: 1.1em;
}
