/* Open Sans is self-hosted — see wwwroot/lib/open-sans/, linked from _Layout.cshtml before this file. */

:root {
    /* Quilter Brand Colors */
    --quilter-green: #0F7B3F;
    --quilter-mid-green: #159847;
    --quilter-light-green: #169F50;
    --quilter-btn-green: #008A10;
    --quilter-indigo: #2C1A4E;
    --quilter-blue: #1B3D6D;
    --quilter-turquoise: #00857C;

    /* Semantic aliases */
    --primary: var(--quilter-mid-green);
    --primary-dark: var(--quilter-green);
    --primary-light: var(--quilter-light-green);
}

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background-color: #f7f8fa;
    color: #333;
    min-height: 100vh;
}

/* Quilter Top Bar */
.quilter-top-bar {
    background-color: #fff;
    border-bottom: 1px solid #D9D9D9;
    padding: 0.75rem 0;
}

.quilter-logo {
    color: var(--quilter-green);
    display: inline-flex;
    text-decoration: none;
}

.quilter-logo:hover {
    opacity: 0.85;
}

.quilter-app-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--quilter-green);
    letter-spacing: 0.02em;
}

/* Quilter Footer */
.quilter-footer {
    background-color: var(--quilter-green);
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.quilter-footer-logo {
    color: #fff;
    margin-bottom: 0.5rem;
}

.quilter-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quilter-footer-links li {
    margin-bottom: 0.4rem;
}

.quilter-footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
}

.quilter-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.quilter-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.quilter-footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-primary {
    background-color: var(--quilter-btn-green);
    border-color: var(--quilter-btn-green);
}

.btn-primary:hover {
    background-color: var(--quilter-green);
    border-color: var(--quilter-green);
}

.btn-outline-primary {
    color: var(--quilter-mid-green);
    border-color: var(--quilter-mid-green);
}

.btn-outline-primary:hover {
    background-color: var(--quilter-mid-green);
    border-color: var(--quilter-mid-green);
    color: #fff;
}

.text-primary {
    color: var(--quilter-mid-green) !important;
}

/* Form Header Card */
.form-header-card {
    border: none;
    border-top: 4px solid var(--quilter-green);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Question Cards */
.question-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.question-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-card.has-error {
    border-left: 3px solid #dc3545;
}

/* Rating Buttons */
.rating-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-weight: 600;
}

.rating-btn.active {
    background-color: var(--quilter-mid-green);
    border-color: var(--quilter-mid-green);
    color: #fff;
}

/* Hidden Questions (Go-to logic) */
.question-card.hidden-by-goto {
    display: none;
}

/* ===== Landing Page Styles ===== */

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, var(--quilter-green) 0%, var(--quilter-indigo) 100%);
    color: #fff;
    padding: 4rem 0;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.landing-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.landing-hero .lead {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.landing-hero .btn-light {
    color: var(--quilter-green);
    font-weight: 600;
}

.landing-hero .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

.landing-hero-illustration svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    opacity: 0.93;
}

.landing-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
}

.landing-section-subtitle {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* Register Section */
.landing-register {
    padding: 4rem 0;
    background: #fff;
}

.landing-register-card {
    border: none;
    border-top: 4px solid var(--quilter-green);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.landing-success-card {
    background: var(--quilter-green);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.landing-success-card h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-success-card p {
    opacity: 0.92;
    font-size: 1.05rem;
}

/* Scroll Animations */
.landing-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
    .landing-hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .landing-hero h1 {
        font-size: 2.25rem;
    }

    .landing-hero-illustration {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .landing-hero h1 {
        font-size: 1.85rem;
    }

    .landing-section-title {
        font-size: 1.65rem;
    }

    .landing-register {
        padding: 3rem 0;
    }
}

@media (max-width: 575.98px) {
    .landing-hero {
        padding: 2rem 0;
    }

    .landing-hero h1 {
        font-size: 1.5rem;
    }
}

/* M5 post-submit "loading your next form" interstitial (form-fill.js) */
.next-form-interstitial {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.94);
}

.next-form-interstitial .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--quilter-green);
}

.next-form-interstitial__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--quilter-green);
    margin: 0;
}

/* The magic-link wait panel is an <output> (a11y: implicit status semantics); <output> is
   display:inline by UA default, so restore the block layout the old <div> had. While the d-none
   class is present the panel stays hidden because Bootstrap declares it display:none !important
   (importance, not load order, is what beats this id selector); this rule takes effect only once
   the script removes that class. */
#magic-link-wait {
    display: block;
}
