:root {
    --bg: #FAF8F5;
    --surface: #ffffff;
    --surface-soft: #F3EFE9;
    --ink: #2A3331;
    --muted: #687672;
    --line: #E6DFD5;
    --primary: #567365;
    --primary-dark: #3A5247;
    --primary-light: #EEF3F0;
    --accent: #C58B64;
    --accent-soft: #F7EFE9;
    --danger: #C0645A;
    --danger-soft: #FDF2F0;
    --warning: #DF9B41;
    --warning-soft: #FCF5EC;
    --info: #5C728E;
    --shadow: 0 12px 36px rgba(78, 68, 56, 0.06);
    --shadow-hover: 0 20px 48px rgba(78, 68, 56, 0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[hidden] {
    display: none !important;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header & Navigation */
.site-header {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 8px 0;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary-dark);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.appointment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(86, 115, 101, 0.15);
}

.appointment-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(86, 115, 101, 0.25);
    color: #fff;
}

/* Subpage Hero */
.hero-subpage {
    background: linear-gradient(180deg, var(--surface-soft) 0%, var(--bg) 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--line);
}

.hero-subpage h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 8px 0 16px;
    line-height: 1.15;
}

.hero-subpage .lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 800px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

/* Landing Page (Home) Styles */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FAF8F5 0%, #F3ECE3 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid-home {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.12;
    color: var(--primary-dark);
    margin: 12px 0 20px;
}

.hero-lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions-row {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(86, 115, 101, 0.2);
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(86, 115, 101, 0.3);
}

.action-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: var(--transition);
}

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

.hero-badge-decoration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.decoration-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-soft) 100%);
    z-index: 1;
}

.badge-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 24px 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(8px);
}

.badge-content strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.badge-content span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-expert-img {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--surface);
    box-shadow: var(--shadow);
    animation: floatImg 6s ease-in-out infinite;
}

@keyframes floatImg {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Services */
.services-section {
    padding: 100px 0;
    background: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 38px);
    color: var(--primary-dark);
    margin: 8px 0 16px;
}

.section-lead {
    font-size: 16px;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
}

/* About Teaser */
.about-teaser-section {
    padding: 100px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.teaser-image-box {
    display: flex;
    justify-content: center;
}

.teaser-fallback-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    text-align: center;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 8px solid var(--surface);
}

.teaser-expert-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--surface);
    box-shadow: var(--shadow);
}

.teaser-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    color: var(--primary-dark);
    margin: 8px 0 20px;
}

.teaser-content p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Test Teaser Section */
.test-teaser-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.test-teaser-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.teaser-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 20px;
}

.test-teaser-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    margin-bottom: 16px;
}

.test-teaser-card p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 36px;
}

.test-teaser-card .action-btn {
    background: var(--surface);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.test-teaser-card .action-btn:hover {
    background: var(--surface-soft);
    transform: translateY(-2px);
}

/* Quick Contact Section */
.quick-contact-section {
    padding: 100px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.contact-grid-teaser {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.contact-details-teaser h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    color: var(--primary-dark);
    margin: 8px 0 20px;
}

.contact-list-items {
    margin: 30px 0;
    display: grid;
    gap: 20px;
}

.contact-item {
    font-size: 15px;
}

.contact-item strong {
    display: block;
    color: var(--ink);
    margin-bottom: 4px;
}

.contact-item span {
    color: var(--muted);
}

.social-links-teaser {
    display: flex;
    gap: 12px;
}

.social-badge {
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 13px;
}

.social-badge.whatsapp {
    background: #E8F5E9;
    color: #2E7D32;
}

.social-badge.instagram {
    background: #FCE4EC;
    color: #C2185B;
}

.teaser-box-wrapper {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.teaser-box-wrapper h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.teaser-box-wrapper p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.teaser-box-wrapper input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-family: inherit;
}

.block-btn {
    width: 100%;
}

/* User Site Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 22px;
    margin-bottom: 6px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.admin-panel-link {
    color: rgba(255,255,255,0.4);
}

.admin-panel-link:hover {
    color: #fff;
}

/* Subpage & Layout Forms and Tests */
.test-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.test-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-card-badge {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
}

.test-card-badge.disabled {
    background: var(--surface-soft);
    color: var(--muted);
}

.test-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 12px;
}

.test-card-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
}

.icon-meta {
    font-style: normal;
}

.placeholder-card {
    opacity: 0.75;
    background: rgba(255,255,255,0.5);
    border-style: dashed;
}

.action-btn.disabled {
    background: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* SCL-90-R Subpage Setup */
.test-container-box {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.test-sidebar-info {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.test-sidebar-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.test-sidebar-info p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.info-alert {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 16px;
    border-radius: 4px;
    font-size: 13px;
}

.info-alert strong {
    display: block;
    color: var(--ink);
    margin-bottom: 4px;
}

.info-alert p {
    margin-bottom: 0;
    color: var(--muted);
}

.test-main-flow {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* About Page Styles */
.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.about-image-fallback {
    width: 100%;
    aspect-ratio: 1;
    max-width: 360px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-expert-img {
    width: 100%;
    aspect-ratio: 1;
    max-width: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 8px solid var(--surface);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    font-size: 32px;
    margin-bottom: 16px;
}

.about-text-body p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-credentials {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.about-credentials h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 14px;
}

.credentials-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.credentials-list li {
    font-size: 14px;
    color: var(--ink);
    padding-left: 20px;
    position: relative;
    font-weight: 500;
}

.credentials-list li::before {
    content: '•';
    color: var(--accent);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -4px;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-card-premium {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
    align-items: center;
}

.contact-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--surface-soft);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.contact-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow);
}

.social-button.whatsapp {
    background: #25D366;
}

.social-button.whatsapp:hover {
    background: #1ebd57;
    transform: translateY(-2px);
}

.social-button.instagram {
    background: #E1306C;
}

.social-button.instagram:hover {
    background: #c9245c;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.social-button strong {
    font-size: 13px;
}

.contact-appointment-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-appointment-form h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-appointment-form p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
}

.appointment-form-element {
    display: grid;
    gap: 20px;
}

.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.appointment-form-element label span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.appointment-form-element input,
.appointment-form-element select,
.appointment-form-element textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
}

.appointment-form-element textarea {
    height: 100px;
    resize: none;
}

.appointment-form-element input:focus,
.appointment-form-element select:focus,
.appointment-form-element textarea:focus {
    outline: 3px solid rgba(86, 115, 101, 0.15);
    border-color: var(--primary);
}

.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Original SCL-90-R Wizard Updates */
.wizard-step {
    scroll-margin-top: 170px;
}

.wizard-step:not(.is-active) {
    display: none !important;
}


.identity-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    align-items: start;
    margin-bottom: 24px;
}

.finish-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}



.step-head {
    margin-bottom: 24px;
}

.step-head h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
}

.step-head p {
    font-size: 14px;
    color: var(--muted);
}

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

.field-grid label span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.field-grid input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
}

.field-grid input:focus {
    outline: 3px solid rgba(86, 115, 101, 0.15);
    border-color: var(--primary);
}

.identity-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inline-error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.scale-guide {
    margin-bottom: 24px;
    background: var(--surface-soft);
    padding: 16px;
    border-radius: var(--radius);
}

.guide-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.guide-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    text-align: center;
}

.guide-grid strong {
    font-size: 15px;
    color: var(--primary);
}

.guide-grid span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.sticky-progress {
    position: sticky;
    top: 90px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.progress-info {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

progress {
    width: 100%;
    height: 8px;
    accent-color: var(--primary);
}

/* Question Cards */
.question-card {
    border: 0;
    display: flex;
    flex-direction: column;
}

.question-card legend {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    width: 100%;
}

.question-card legend span {
    background: var(--primary-light);
    color: var(--primary-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.question-card legend strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 3vw, 24px);
    color: var(--ink);
    line-height: 1.25;
}

.question-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    padding-left: 48px;
}

.radio-row {
    display: grid;
    gap: 10px;
}

.radio-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.radio-pill input {
    position: absolute;
    opacity: 0;
}

.radio-pill > span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    border: 1px solid var(--line);
}

.radio-pill small {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
}

.radio-pill:hover {
    background: var(--bg);
}

.radio-pill:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-pill input:checked + span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.radio-pill input:checked ~ small {
    color: var(--primary-dark);
    font-weight: 600;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.q-progress {
    font-weight: 700;
    color: var(--muted);
    font-size: 14px;
}

.secondary-button {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.secondary-button:hover {
    background: var(--surface-soft);
}

.finish-panel h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.finish-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.consent {
    display: flex;
    gap: 12px;
    background: var(--surface-soft);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    cursor: pointer;
}

.consent input {
    margin-top: 4px;
}

.consent span {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5;
}

.submit-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.finish-warning {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Notices and Alerts */
.notice {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.notice.success {
    border-color: #A3C5B5;
    background: #E8F5E9;
    color: #2E7D32;
}

.notice.error {
    border-color: #E2B3B0;
    background: var(--danger-soft);
    color: var(--danger);
}

.notice h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.notice ul {
    list-style-position: inside;
}

/* ==========================================================================
   Admin Dashboard Styling
   ========================================================================== */
.admin-body {
    background: #F4F6F8;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Login Page Styling */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface-soft) 100%);
}

.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-width: 420px;
    width: 100%;
}

.login-head {
    text-align: center;
    margin-bottom: 28px;
}

.login-head h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.login-head p {
    font-size: 13px;
    color: var(--muted);
}

.login-panel label {
    display: block;
    margin-bottom: 20px;
}

.login-panel label span {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.login-panel input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
}

.login-footer-info {
    text-align: center;
    margin-top: 24px;
}

.login-footer-info a {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.login-footer-info a:hover {
    color: var(--primary);
}

/* Admin Dashboard Header */
.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 15px 30px;
    flex-shrink: 0;
}

.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.admin-logo-area h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.admin-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.admin-header-actions {
    display: flex;
    gap: 12px;
}

.view-site-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
}

.view-site-btn:hover {
    background: var(--primary-light);
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--danger);
    padding: 8px 16px;
    border-radius: 6px;
}

.logout-btn:hover {
    background: #a95249;
}

/* Dashboard Layout */
.admin-dashboard-layout {
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
}

/* Sidebar styling */
.admin-sidebar {
    width: 440px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-shrink: 0;
}

/* Sidebar split: Left for Tabs, Right for Submissions list */
.admin-tabs-nav {
    width: 70px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    background: #FAFBFD;
}

.tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0; /* Hide text, only show icon */
    position: relative;
    transition: var(--transition);
}

.tab-link .icon {
    font-size: 22px;
}

.tab-link:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.tab-link.active {
    background: var(--primary);
    color: #fff;
}



/* Custom visual layout for tabs in sidebar */
.admin-tabs-nav {
    width: 180px;
    background: #FAFBFD;
    padding: 20px 10px;
    gap: 6px;
}

.tab-link {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 8px;
    gap: 12px;
    color: var(--muted);
}

.tab-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Sidebar Submissions list */
.sidebar-submissions-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-list-header {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    background: #FCFDFE;
}

.submissions-list-scroll {
    flex: 1;
    overflow-y: auto;
}

.empty-submissions {
    padding: 20px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.submission-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
    gap: 12px;
}

.submission-list-item:hover {
    background: var(--bg);
}

.submission-list-item.active {
    background: #EEF3F0;
    border-left: 4px solid var(--primary);
}

.sub-item-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sub-item-meta strong {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
}

.sub-item-meta span {
    font-size: 11px;
    color: var(--muted);
}

.sub-item-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.sub-item-badge.low {
    background: #E8F5E9;
    color: #2E7D32;
}

.sub-item-badge.mid {
    background: #FFF3E0;
    color: #E65100;
}

.sub-item-badge.high {
    background: #FFEBEE;
    color: #C62828;
}

/* Dashboard main area scroll */
.admin-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #F4F6F8;
}

/* Dashboard Overview and Summary Cards */
.dashboard-overview h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.admin-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-info h3 {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
}

.summary-info strong {
    font-size: 22px;
    color: var(--primary-dark);
}

/* Submissions Table Box */
.submissions-table-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.submissions-table-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.custom-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-admin-table th,
.custom-admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

.custom-admin-table th {
    background: #FAFBFD;
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.low {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.mid {
    background: #FFF3E0;
    color: #E65100;
}

.status-badge.high {
    background: #FFEBEE;
    color: #C62828;
}

.btn-detail-action {
    display: inline-flex;
    padding: 6px 12px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.btn-detail-action:hover {
    background: var(--primary-dark);
}

.text-right {
    text-align: right !important;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.result-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.result-panel h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}


/* Reverted Submission Details Styling */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.detail-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-top: 4px;
    margin-bottom: 6px;
}

.detail-header p {
    font-size: 13px;
    color: var(--muted);
}

.back-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: inline-block;
}

.back-link:hover {
    color: var(--primary-dark);
}

.score-badge {
    min-width: 170px;
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
}

.score-badge span,
.score-badge em {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.score-badge strong {
    display: block;
    font-size: 36px;
    line-height: 1.1;
    margin: 4px 0;
}

.score-badge.low {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.score-badge.mid {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFE0B2;
}

.score-badge.high {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.meta-list dt {
    color: var(--muted);
    font-size: 14px;
}

.meta-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    font-size: 14px;
    color: var(--ink);
}

.scale-results {
    display: grid;
    gap: 10px;
}

.scale-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.scale-result:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.scale-result strong {
    display: block;
    font-size: 14px;
    color: var(--primary-dark);
}

.scale-result span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.scale-result b {
    display: block;
    font-size: 20px;
    text-align: right;
    color: var(--ink);
    line-height: 1.1;
}

.scale-result small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    margin-top: 4px;
}

.answer-list {
    display: grid;
    gap: 8px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 8px;
}

.answer-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.answer-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.answer-row p {
    margin-bottom: 0;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.4;
    padding-top: 2px;
}

.answer-row strong {
    white-space: nowrap;
    font-size: 13px;
    color: var(--ink);
    padding-top: 2px;
}


/* Settings Form Editors */
.settings-edit-container {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

.settings-edit-container h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.settings-form-block {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.form-field {
    display: block;
}

.form-field span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(86, 115, 101, 0.15);
    border-color: var(--primary);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-help {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.form-actions-footer {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    text-align: right;
}

/* Logo Visual Manager Layout */
.logo-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

.current-logo-preview-box h3 {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 12px;
}

.logo-preview-bg {
    background: #F4F6F8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

.preview-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.no-logo-text-placeholder {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.preview-status.text-success {
    color: #2E7D32;
}

.file-upload-wrapper {
    height: 100%;
}

.file-drop-area {
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-drop-area input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.upload-desc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
}

.upload-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 12px;
}

/* Animations */
.fade-in-message {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Styling (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid-home,
    .teaser-grid,
    .contact-grid-teaser,
    .about-container,
    .contact-grid,
    .test-container-box,
    .logo-control-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .teaser-fallback-avatar {
        width: 240px;
        height: 240px;
        font-size: 18px;
    }

    .admin-dashboard-layout {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: column;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-tabs-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        background: #fff;
    }

    .tab-link {
        flex-shrink: 0;
        padding: 8px 12px;
        white-space: nowrap;
        width: auto;
    }

    .sidebar-submissions-list {
        max-height: 250px;
        border-top: 1px solid var(--line);
    }

    .admin-main-content {
        overflow-y: visible;
        padding: 20px;
    }

    .admin-body {
        overflow-y: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
        position: relative;
    }

    .sticky-progress {
        top: 0;
    }

    .wizard-step {
        scroll-margin-top: 80px;
    }

    .header-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .site-nav {
        justify-content: space-between;
        gap: 12px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .appointment-btn {
        width: 100%;
    }

    .hero-actions-row {
        flex-direction: column;
    }

    .hero-actions-row .action-btn,
    .hero-actions-row .action-btn-secondary {
        width: 100%;
    }

    .form-row-double,
    .form-row-grid,
    .field-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .submit-row {
        flex-direction: column;
        gap: 12px;
    }

    .submit-row button {
        width: 100%;
    }

    .guide-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .radio-pill {
        padding: 12px 14px;
        gap: 10px;
    }

    .radio-pill small {
        font-size: 13px;
    }

    .contact-social-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

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