/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Scalp Carolinas Brand Colors */
    --primary-color: #ad322f;
    --primary-dark: #8a2825;
    --primary-light: #c54340;

    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #7a7a7a;
    --border-color: #C3CAD8;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f1f2f4;

    /* Status Colors */
    --success-color: #627D47;
    --error-color: #d32f2f;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-input: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 40px 0 60px;
    text-align: center;
    color: var(--bg-white);
}

.logo {
    margin-bottom: 15px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--bg-white);
    text-align: center;
    margin: 0;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--bg-white);
    white-space: nowrap;
}

.hero-subheadline {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.5;
}

/* ===== SURVEY CONTAINER ===== */
.survey-container {
    padding: 40px 0 60px;
}

/* ===== PROGRESS BAR ===== */
.progress-wrapper {
    margin-bottom: 40px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
}

#progressPercent {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== QUESTION CARDS ===== */
.survey-form {
    position: relative;
}

.question-card {
    display: none;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    animation: slideOut 0.3s ease-out;
}

.question-card.active {
    display: block;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.question-number {
    font-family: var(--font-input);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.question-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.question-description {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* ===== INFO CALLOUT ===== */
.info-callout {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.info-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
    padding-left: 0;
}

/* ===== OPTIONS CONTAINER ===== */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* ===== OPTION BUTTONS ===== */
.option-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}

.option-button:hover {
    border-color: var(--primary-light);
    background: #fff8f8;
    transform: translateY(-1px);
}

.option-button input[type="radio"],
.option-button input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-label {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Radio Dot */
.radio-dot {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.option-button input[type="radio"]:checked ~ .radio-dot {
    border-color: var(--primary-color);
}

.option-button input[type="radio"]:checked ~ .radio-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Checkbox */
.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--bg-white);
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.option-button input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.option-button input[type="checkbox"]:checked ~ .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Selected State */
.option-button:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(173, 50, 47, 0.03) 0%, rgba(173, 50, 47, 0.08) 100%);
}

.option-button:has(input:checked) .option-label {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== SCALE RATING ===== */
.scale-container {
    margin-bottom: 30px;
}

.scale-numbers {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.scale-option {
    flex: 1;
    cursor: pointer;
}

.scale-option input {
    display: none;
}

.scale-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-medium);
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.scale-option:hover .scale-number {
    border-color: var(--primary-light);
    background: #fff8f8;
}

.scale-option input:checked ~ .scale-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== FORM INPUTS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-wrapper.full-width {
    grid-column: 1 / -1;
}

.input-label {
    font-family: var(--font-input);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.text-input {
    font-family: var(--font-input);
    font-size: 16px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(173, 50, 47, 0.1);
}

.text-input::placeholder {
    color: var(--text-light);
}

.text-input.error {
    border-color: var(--error-color);
}

/* ===== CONSENT CHECKBOX ===== */
.consent-wrapper {
    margin-bottom: 25px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.consent-text {
    font-size: 12px;
    color: var(--text-medium);
    line-height: 1.6;
}

.consent-links {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

.consent-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.consent-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== NAVIGATION BUTTONS ===== */
.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-back,
.btn-next,
.btn-submit,
.btn-website {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-back {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 14px 28px;
}

.btn-back:hover {
    border-color: var(--text-dark);
    background: var(--bg-light);
}

.btn-next,
.btn-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(173, 50, 47, 0.25);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 50, 47, 0.35);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success-color) 0%, #4f6338 100%);
    box-shadow: 0 4px 14px rgba(98, 125, 71, 0.25);
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(98, 125, 71, 0.35);
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-next:hover .arrow,
.btn-submit:hover .arrow {
    transform: translateX(3px);
}

.btn-back:hover .arrow {
    transform: translateX(-3px);
}

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===== ERROR MESSAGES ===== */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ===== BOOKING PAGE ===== */
.booking-page {
    max-width: 100% !important;
    padding: 0 !important;
}

.booking-container {
    width: 100%;
}

.booking-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: var(--bg-white);
}

.booking-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.booking-subtitle {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
}

.booking-iframe-wrapper {
    width: 100%;
    min-height: 800px;
    background: var(--bg-white);
    border-radius: 0;
}

.booking-iframe-wrapper iframe {
    display: block;
    border: none;
    width: 100%;
    min-height: 800px;
}

.booking-footer {
    text-align: center;
    padding: 30px 40px 40px;
    background: var(--bg-white);
}

.booking-footer-text {
    font-size: 14px;
    color: var(--text-medium);
}

.booking-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.booking-footer-text a:hover {
    text-decoration: underline;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--bg-white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-medium);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .hero-headline {
        font-size: 24px;
        white-space: normal;
    }

    .hero-subheadline {
        font-size: 16px;
    }

    .question-card {
        padding: 30px 25px;
    }

    .question-title {
        font-size: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .navigation-buttons {
        flex-direction: column-reverse;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }

    .scale-numbers {
        gap: 4px;
    }

    .scale-number {
        height: 45px;
        font-size: 16px;
    }

    .info-callout {
        flex-direction: column;
        padding: 20px;
    }

    .faq-question {
        font-size: 16px;
    }

    .booking-header {
        padding: 30px 25px 25px;
    }

    .booking-title {
        font-size: 26px;
    }

    .booking-footer {
        padding: 25px 25px 30px;
    }
}

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

    .hero-section {
        padding: 30px 0 45px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-headline {
        font-size: 20px;
        white-space: normal;
    }

    .question-card {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .question-title {
        font-size: 20px;
    }

    .option-button {
        padding: 15px 16px;
    }

    .option-label {
        font-size: 15px;
    }

    .scale-numbers {
        gap: 3px;
    }

    .scale-number {
        height: 40px;
        font-size: 14px;
    }

    .scale-labels {
        font-size: 11px;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 14px 24px;
        font-size: 15px;
    }

    .faq-title {
        font-size: 26px;
    }

    .booking-header {
        padding: 25px 20px 20px;
    }

    .booking-title {
        font-size: 24px;
    }

    .booking-subtitle {
        font-size: 14px;
    }

    .booking-footer {
        padding: 20px;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
