/* ========== CSS Variables ========== */
:root {
    --primary-color: #8B4513;
    --accent-color: #D2691E;
    --background-color: #FFF8DC;
    --text-main: #2B2B2B;
    --text-secondary: #6F6F6F;
    --card-bg: #FFFFFF;
    --progress-bg: #E2E2E2;
    --border-color: #CFCFCF;
    --hover-bg: #FFF5E6;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--background-color);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #FFFFFF;
    border: none;
}

.btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

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

.btn--secondary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn--large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
    }
}

/* ========== Intro Section ========== */
.intro-section {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.intro-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 64px 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 40px 0;
        min-height: 60vh;
    }
    
    .intro-card {
        padding: 40px 24px;
    }
    
    .intro-title {
        font-size: 32px;
    }
    
    .intro-subtitle {
        font-size: 16px;
    }
}

/* ========== Questionnaire ========== */
.questionnaire {
    padding: 60px 0 80px;
}

.questionnaire__card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.questionnaire__progress {
    margin-bottom: 40px;
}

.progress__text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.progress__current {
    font-weight: 600;
    color: var(--primary-color);
}

.progress__bar {
    height: 8px;
    background: var(--progress-bg);
    border-radius: 999px;
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 0.4s ease;
}

.questionnaire__content {
    margin-bottom: 40px;
}

.questionnaire__question {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-main);
    line-height: 1.4;
}

.questionnaire__scale {
    margin-top: 40px;
}

.scale__labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.scale__label-min {
    color: var(--text-secondary);
}

.scale__label-max {
    color: var(--primary-color);
}

.scale__inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.scale__option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.scale__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.scale__value {
    width: 56px;
    height: 56px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.scale__option:hover .scale__value {
    border-color: var(--primary-color);
    background: var(--hover-bg);
    transform: scale(1.1);
}

.scale__option input:checked + .scale__value {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #FFFFFF;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.questionnaire__navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 768px) {
    .questionnaire {
        padding: 30px 0 40px;
    }
    
    .questionnaire__card {
        padding: 24px 20px;
    }
    
    .questionnaire__question {
        font-size: 20px;
    }
    
    .scale__inputs {
        gap: 6px;
    }
    
    .scale__value {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .questionnaire__navigation {
        flex-direction: column-reverse;
    }
}

/* ========== Results Screen ========== */
.results-screen {
    padding: 60px 0 80px;
}

.results-screen__card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.results-screen__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 16px;
}

.results-screen__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.constitution-type {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(210, 105, 30, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 40px;
}

.constitution-type__name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.constitution-bars {
    margin-bottom: 48px;
}

.constitution-bar {
    margin-bottom: 28px;
}

.constitution-bar__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.constitution-bar__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.constitution-bar__percent {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.constitution-bar__fill-wrapper {
    height: 16px;
    background: var(--progress-bg);
    border-radius: 999px;
    overflow: hidden;
}

.constitution-bar__fill {
    height: 100%;
    transition: width 1s ease-out;
    border-radius: 999px;
}

.constitution-bar__fill.vata {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
}

.constitution-bar__fill.pitta {
    background: linear-gradient(135deg, #FF6347 0%, #DC143C 100%);
}

.constitution-bar__fill.kapha {
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
}

.recommendations {
    margin-bottom: 32px;
}

.recommendations h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 24px;
    margin-bottom: 16px;
}

.recommendations h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 12px;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    font-size: 16px;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
}

.recommendations li:before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.recommendations p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.recommendations strong {
    color: var(--text-main);
    font-weight: 600;
}

.results-cta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--progress-bg);
    text-align: center;
}

@media (max-width: 768px) {
    .results-screen {
        padding: 30px 0 40px;
    }
    
    .results-screen__card {
        padding: 32px 20px;
    }
    
    .results-screen__title {
        font-size: 28px;
    }
    
    .constitution-type__name {
        font-size: 24px;
    }
}

/* ========== Email Capture ========== */
.email-capture {
    padding: 60px 0 80px;
}

.email-capture__card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
}

.email-capture__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 16px;
}

.email-capture__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.email-capture__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-main);
    background: var(--card-bg);
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.form-checkbox span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-privacy {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .email-capture {
        padding: 30px 0 40px;
    }
    
    .email-capture__card {
        padding: 32px 20px;
    }
    
    .email-capture__title {
        font-size: 26px;
    }
}

/* ========== Thank You Screen ========== */
.thank-you-screen {
    padding: 60px 0 80px;
}

.thank-you-screen__card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 64px 40px;
    text-align: center;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.thank-you-screen__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.thank-you-screen__text {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.6;
}

.thank-you-screen__subtext {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .thank-you-screen {
        padding: 30px 0 40px;
    }
    
    .thank-you-screen__card {
        padding: 48px 20px;
    }
    
    .thank-you-screen__title {
        font-size: 28px;
    }
    
    .thank-you-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }
}