@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    /* Theme Colors (Original Branding) */
    --color-primary: #27b5e6;
    --color-primary-hover: #159ed0;
    --color-secondary: #ff806b;
    --color-secondary-hover: #e06d59;
    --color-yellow: #f7c35f;
    --color-green: #6fd0ec;
    
    /* Neutral Colors */
    --color-bg: #f2fbff;
    --color-text-dark: #082238;
    --color-text-body: #2c4a5e;
    --color-text-muted: #627d98;
    --color-border: #dcecf4;
    --color-border-hover: #b9d5e6;
    --color-card-bg: #ffffff;
    --color-input-bg: #f8fcff;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(8, 34, 56, 0.04);
    --shadow-md: 0 10px 30px rgba(8, 34, 56, 0.06);
    --shadow-lg: 0 30px 70px rgba(8, 34, 56, 0.12);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Pathway Colors for Results Screen */
    --gold: #b98a2f;
    --green-dark: #1e6f4f;
    --green-light: #eaf4ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Background Gradients */
.gr-assessment-page {
    min-height: 100vh;
    padding: 60px 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(39, 181, 230, 0.18), transparent 32%),
        radial-gradient(circle at 10% 85%, rgba(255, 128, 107, 0.14), transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(111, 208, 236, 0.08), transparent 40%),
        var(--color-bg);
}

.gr-assessment-shell {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Brand Row - Logo Header */
.gr-brand-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 36px;
    padding-left: 8px;
}

.gr-brand-logo {
    display: block;
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.gr-brand-logo:hover {
    transform: scale(1.02);
}

/* Card Container */
.gr-assessment-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 540px;
    padding: 56px;
    background: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

/* Smooth Background Blobs Inside Card */
.gr-assessment-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(39, 181, 230, 0.10);
    pointer-events: none;
    z-index: 1;
}

.gr-assessment-card::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 128, 107, 0.07);
    pointer-events: none;
    z-index: 1;
}

/* Progress Indicator */
.gr-progress-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 36px;
}

.gr-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.gr-progress-info small {
    color: var(--color-text-muted);
    font-weight: 500;
}

.gr-progress-track {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e6f4fa;
    overflow: hidden;
}

.gr-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-green) 100%);
    transition: width var(--transition-normal);
}

/* Form Steps */
.gr-assessment-form {
    position: relative;
    z-index: 2;
}

.gr-form-step {
    position: relative;
    z-index: 2;
    display: none;
    animation: grFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gr-form-step-active {
    display: block;
}

@keyframes grFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kickers / Badges */
.gr-step-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eaf8fd;
    color: var(--color-primary-hover);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Typography Hierarchy */
.gr-hero-title, .gr-step-title {
    margin: 0 0 16px;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.gr-hero-title span, .gr-step-title span {
    color: var(--color-secondary);
}

.gr-lead-text {
    max-width: 650px;
    margin: 0 0 32px;
    color: var(--color-text-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

/* Gateway Cards */
.gr-gateway-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
    margin-bottom: 20px;
}

.gr-gateway-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px;
    border: 2px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-input-bg);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    outline: none;
}

.gr-gateway-card:hover {
    border-color: var(--color-primary);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gr-gateway-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.gr-gateway-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-size: 20px;
    font-weight: 800;
}

.gr-gateway-card p {
    margin: 0;
    color: var(--color-text-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Form Fields */
.gr-field-group {
    margin-bottom: 24px;
}

.gr-field-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-dark);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.gr-field-sublabel {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: -4px;
    margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    display: block;
    width: 100%;
    height: 54px;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    outline: none;
    background: var(--color-input-bg);
    color: var(--color-text-dark);
    padding: 0 18px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus, select:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(39, 181, 230, 0.15);
}

.gr-field-error label {
    color: #ef4444 !important;
}

.gr-field-error .gr-option-card {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

input.gr-field-error, 
select.gr-field-error, 
.gr-field-error input, 
.gr-field-error select {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

/* Card Options (Single Select Auto-Advance) */
.gr-card-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.gr-option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-input-bg);
    padding: 12px 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.gr-option-card:hover {
    border-color: var(--color-primary);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.gr-option-card input[type="radio"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    flex-none: none;
    cursor: pointer;
}

.gr-card-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.gr-option-card.gr-selected, .gr-option-card:has(input:checked) {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #ecf9fd 0%, #f4fbff 100%);
    box-shadow: 0 4px 14px rgba(39, 181, 230, 0.15);
}

/* Toggle Yes/No Cards */
.gr-toggle-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 320px;
}

.gr-toggle-card {
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-input-bg);
    transition: all var(--transition-fast);
}

.gr-toggle-card input {
    accent-color: var(--color-primary);
}

.gr-toggle-card:hover, .gr-toggle-card:has(input:checked) {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Consent Checkbox */
.gr-consent-group {
    background: var(--color-input-bg);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 18px;
}

.gr-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--color-text-body);
    line-height: 1.5;
}

.gr-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    flex-none: none;
}

/* Buttons */
.gr-button-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.gr-button-row-split {
    justify-content: space-between;
}

.gr-primary-button,
.gr-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: none;
    border-radius: 999px;
    padding: 0 34px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gr-primary-button {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(39, 181, 230, 0.25);
}

.gr-primary-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(39, 181, 230, 0.35);
}

.gr-secondary-button {
    background: #edf7fc;
    color: var(--color-text-dark);
}

.gr-secondary-button:hover {
    background: #ddeff7;
    transform: translateY(-2px);
}

/* RESULTS SCREEN DYNAMIC STYLING */
.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.status small {
    color: var(--color-text-muted);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
}

.serif {
    font-family: var(--font-heading) !important;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 32px;
}

.chip {
    background: var(--color-input-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--color-text-dark);
}

.chip b {
    font-weight: 800;
    color: var(--color-primary-hover);
}

.pathway {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media(max-width:640px) {
    .pathway { grid-template-columns: 1fr; }
}

.path {
    border-radius: 20px;
    padding: 24px;
    position: relative;
    border: 2px solid var(--color-border);
}

.path.closed {
    background: #f8fafc;
}

.path.open {
    background: #f0faf7;
    border-color: #bbf7d0;
}

.path .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.closed .tag {
    background: #e2e8f0;
    color: var(--color-text-muted);
}

.open .tag {
    background: var(--green-dark);
    color: #fff;
}

.path h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.path p {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.5;
}

.open .why {
    margin-top: 12px;
    font-size: 13px;
    color: var(--green-dark);
    font-weight: 700;
}

.cta {
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-top: 5px solid var(--color-secondary);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.cta .lead {
    font-size: 15px;
    color: var(--color-text-body);
    margin-bottom: 20px;
    line-height: 1.6;
}

.partner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--color-input-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.pmark {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-text-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner .pname {
    font-weight: 800;
    font-size: 16px;
    color: var(--color-text-dark);
}

.partner .pcred {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.btn {
    display: block;
    width: 100%;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 10px 24px rgba(255, 128, 107, 0.25);
}

.btn:hover {
    background: var(--color-secondary-hover);
    transform: translateY(-2px);
}

.fine {
    margin-top: 14px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

.alt {
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.alt p {
    font-size: 14px;
    color: var(--color-text-body);
    margin: 0;
}

.ghost {
    background: #edf7fc;
    border: 2px solid var(--color-border);
    color: var(--color-text-dark);
    border-radius: 99px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.ghost:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Loading Overlay */
.gr-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 251, 255, 0.82);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gr-loading-overlay.gr-loading-active {
    opacity: 1;
    pointer-events: all;
}

.gr-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 52px 56px;
    background: #ffffff;
    border: 1px solid rgba(39, 181, 230, 0.18);
    border-radius: 32px;
    box-shadow: 0 32px 80px rgba(8, 34, 56, 0.14);
}

.gr-loading-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: grSpin 1s linear infinite;
}

.gr-loading-title {
    margin: 0;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
}

.gr-loading-sub {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
}

@keyframes grSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .gr-assessment-page { padding: 24px 12px; }
    .gr-brand-row { justify-content: center; margin-bottom: 24px; }
    .gr-brand-logo { height: 38px; }
    .gr-assessment-card { padding: 32px 20px; border-radius: 24px; min-height: auto; }
    .gr-hero-title, .gr-step-title { font-size: 30px; }
    .gr-button-row { flex-direction: column-reverse; gap: 12px; }
    .gr-primary-button, .gr-secondary-button { width: 100%; min-height: 52px; }
}
