/* ============================================================
   AssureCorp Design Tokens — CSS Variables
   Mirrors AssureCorpBlazor/app.css without Tailwind
   ============================================================ */
:root {
    --background:        #f8fafc;
    --foreground:        #1a202c;
    --border:            #e2e6ed;
    --card:              #ffffff;
    --card-foreground:   #1a202c;
    --primary:           #0b5dc7;
    --primary-light:     #e8f0fd;
    --primary-hover:     #0a52b3;
    --accent:            #35a89c;
    --accent-light:      #e6f6f5;
    --accent-hover:      #2e9690;
    --success:           #22a064;
    --success-light:     #e6f7ef;
    --warning:           #f59e0b;
    --warning-light:     #fef3c7;
    --danger:            #dc2626;
    --danger-light:      #fee2e2;
    --muted:             #f0f4f8;
    --muted-foreground:  #5c6470;
    --input-border:      #cbd5e1;
    --radius:            0.5rem;
    --radius-lg:         0.75rem;
    --shadow-sm:         0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:         0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg:         0 8px 24px rgba(0,0,0,0.12);
    --font-family:       Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family:              var(--font-family);
    background-color:         var(--background);
    color:                    var(--foreground);
    -webkit-font-smoothing:   antialiased;
    -moz-osx-font-smoothing:  grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar-assure {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-assure .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    text-decoration: none;
}

.navbar-assure .navbar-brand .brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(11,93,199,0.06), rgba(53,168,156,0.04));
    border-bottom: 1px solid var(--border);
    padding: 64px 0 48px;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 12px;
}

.hero-section .hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.accent-bar {
    height: 4px;
    width: 56px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    margin: 0 auto 28px;
}

/* ============================================================
   Cards
   ============================================================ */
.card-assure {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
}

.card-assure.card-primary {
    border-left: 4px solid var(--primary);
}

.card-assure.card-accent {
    border-left: 4px solid var(--accent);
}

/* ============================================================
   Form Elements
   ============================================================ */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-family: var(--font-family);
    color: var(--foreground);
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,93,199,0.12);
    outline: none;
}

.form-control.is-valid   { border-color: var(--success); }
.form-control.is-invalid { border-color: var(--danger); }

.form-control.is-valid:focus   { box-shadow: 0 0 0 3px rgba(34,160,100,0.12); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }

.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 4px;
}

/* Subdomain input group */
.subdomain-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.subdomain-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,93,199,0.12);
}

.subdomain-group.is-valid   { border-color: var(--success); }
.subdomain-group.is-invalid { border-color: var(--danger); }

.subdomain-group input {
    border: none;
    outline: none;
    box-shadow: none;
    flex: 1;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-family: var(--font-family);
}

.subdomain-suffix {
    background: var(--muted);
    border-left: 1.5px solid var(--input-border);
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.subdomain-feedback {
    font-size: 0.8125rem;
    margin-top: 5px;
    min-height: 18px;
}

.subdomain-feedback.available   { color: var(--success); }
.subdomain-feedback.unavailable { color: var(--danger); }
.subdomain-feedback.checking    { color: var(--muted-foreground); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary-assure {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-assure:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary-assure:active { transform: translateY(0); }

.btn-primary-assure:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   Highlight / Info Boxes
   ============================================================ */
.highlight-box {
    background: var(--primary-light);
    border: 1px solid rgba(11,93,199,0.15);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.highlight-box-accent {
    background: var(--accent-light);
    border: 1px solid rgba(53,168,156,0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
}

/* ============================================================
   Badges
   ============================================================ */
.badge-primary {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(11,93,199,0.2);
}

.badge-accent {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(53,168,156,0.25);
}

/* ============================================================
   Feature List
   ============================================================ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.feature-list .icon-check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   Thank You Page
   ============================================================ */
.thankyou-icon {
    width: 72px;
    height: 72px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

.step-list li:last-child { border-bottom: none; }

.step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer-assure {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #9ca3af;
    padding: 24px 0;
    margin-top: auto;
    font-size: 0.875rem;
    text-align: center;
}

.footer-assure a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-assure a:hover { color: #ffffff; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.45s ease-out both;
}

/* ============================================================
   Utility Helpers
   ============================================================ */
.text-primary   { color: var(--primary) !important; }
.text-accent    { color: var(--accent) !important; }
.text-success   { color: var(--success) !important; }
.text-muted-fg  { color: var(--muted-foreground) !important; }
.bg-muted       { background-color: var(--muted) !important; }
.border-assure  { border-color: var(--border) !important; }