/* UNSHAKEABLE WITHIN - Quiz Styling */
/* Brand-aligned design using official style guide */

/* Import Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Caveat:wght@400;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* CSS Variables - Brand Colors */
:root {
    --cream: #F0EBE3;
    --cream-dark: #E8E1D8;
    --card-bg: #FDFAF7;
    --terracotta: #C4694A;
    --terracotta-dark: #A8563A;
    --terracotta-light: #F3E4DC;
    --highlight-pink: #F2D8D8;
    --dark: #2A2422;
    --dark-mid: #4A3F3A;
    --mid: #7A6B64;
    --light-text: #9A8A83;
    --sage: #8FA882;
    --sage-light: #E8F0E5;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 40px 80px;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(240, 235, 227, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(42, 36, 34, 0.06);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-cta {
    padding: 11px 24px;
    background: var(--terracotta);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
}

.nav-cta:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
}

/* Header */
header {
    text-align: center;
    padding: 60px 0 50px;
    margin-bottom: 40px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.2;
}

.logo .script {
    font-family: 'Caveat', cursive;
    color: var(--terracotta);
    font-size: 36px;
    display: block;
    font-weight: 500;
}

/* Intro Section */
.intro-section {
    margin-bottom: 60px;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.subhead {
    font-family: 'Caveat', cursive;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--terracotta);
    margin-bottom: 32px;
    font-weight: 500;
}

.intro-text {
    background: white;
    padding: 48px 56px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(42, 36, 34, 0.06);
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark-mid);
}

.intro-text ul {
    margin: 20px 0 20px 30px;
}

.intro-text li {
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--dark-mid);
    line-height: 1.85;
}

.cta-text {
    font-weight: 600;
    font-size: 17px;
    color: var(--terracotta-dark);
    margin-top: 30px !important;
}

/* Form Styles */
.quiz-form {
    background: white;
    padding: 48px 56px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(42, 36, 34, 0.06);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid var(--terracotta);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background: white;
    color: var(--dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 105, 74, 0.08);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--terracotta-dark);
    box-shadow: 0 4px 16px rgba(196, 105, 74, 0.2);
    transform: translateY(-1px);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--terracotta-light);
    border-radius: 100px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    transition: width 0.4s ease;
    width: 0%;
    border-radius: 100px;
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--terracotta-dark);
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Quiz Steps */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Questions */
.question {
    margin: 36px 0;
    padding: 0;
}

.question h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 28px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
}

.option {
    display: block;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: white;
    border: 2px solid rgba(42, 36, 34, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: var(--terracotta-light);
    border-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 105, 74, 0.1);
}

.option input[type="radio"] {
    margin-right: 14px;
    accent-color: var(--terracotta);
}

.option span {
    font-size: 15px;
    color: var(--dark-mid);
    line-height: 1.6;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
}

.nav-btn {
    padding: 16px 36px;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.nav-btn:hover:not(:disabled) {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 105, 74, 0.3);
}

.nav-btn:disabled {
    background: var(--cream-dark);
    color: var(--mid);
    cursor: not-allowed;
}

.back-btn {
    background: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
}

.back-btn:hover:not(:disabled) {
    background: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 105, 74, 0.15);
}

.next-btn {
    flex: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 32px;
}

.submit-btn:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 105, 74, 0.3);
}

/* Results Page Styles */
.results-container {
    background: white;
    padding: 56px 64px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(42, 36, 34, 0.06);
    margin-bottom: 48px;
}

.pattern-badge {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.results-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.3;
}

.results-container h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    margin: 40px 0 18px 0;
    color: var(--terracotta-dark);
    font-weight: 500;
}

.results-container p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark-mid);
}

.results-container ul {
    margin: 20px 0 20px 30px;
}

.results-container li {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark-mid);
}

.practice-box {
    background: var(--sage-light);
    padding: 28px 32px;
    border-radius: 16px;
    margin: 32px 0;
    border-left: 4px solid var(--sage);
}

.practice-box h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 500;
}

/* Upsell Section - Dark Background */
.upsell-section {
    background: var(--dark);
    color: white;
    padding: 60px 48px;
    border-radius: 20px;
    text-align: center;
    margin: 48px 0;
}

.upsell-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    margin-bottom: 24px;
    color: white;
    font-weight: 500;
    line-height: 1.3;
}

.upsell-section p {
    font-size: 17px;
    margin-bottom: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
}

.upsell-section ul {
    text-align: left;
    max-width: 600px;
    margin: 32px auto;
    list-style: none;
}

.upsell-section li {
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.upsell-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
    color: var(--terracotta);
}

.price {
    font-size: 52px;
    font-weight: 700;
    margin: 32px 0;
    color: white;
}

.buy-btn {
    display: inline-block;
    padding: 18px 48px;
    background: var(--terracotta);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.buy-btn:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 105, 74, 0.4);
}

.guarantee {
    font-size: 13px;
    margin-top: 24px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ConvertKit Form */
.kit-form {
    max-width: 500px;
    margin: 48px auto;
    padding: 32px;
    background: var(--terracotta-light);
    border-radius: 16px;
}

.kit-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark);
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 0;
    color: var(--light-text);
    font-size: 13px;
    border-top: 2px solid var(--terracotta-light);
    margin-top: 80px;
}

footer .logo-footer {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 880px) {
    .container {
        padding: 120px 20px 60px;
    }
    
    .quiz-form,
    .results-container {
        padding: 40px 32px;
    }
    
    .intro-text {
        padding: 40px 32px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .back-btn {
        order: 2;
    }
    
    .next-btn {
        order: 1;
    }
    
    header {
        padding: 40px 0 32px;
        margin-bottom: 40px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo .script {
        font-size: 28px;
    }
    
    .results-container h2 {
        font-size: clamp(24px, 4vw, 32px);
    }
    
    .upsell-section {
        padding: 40px 28px;
    }
    
    .upsell-section h2 {
        font-size: 28px;
    }
    
    .price {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 28px;
    }
    
    .quiz-form,
    .results-container {
        padding: 24px 20px;
    }
    
    .upsell-section {
        padding: 32px 20px;
    }
}
