/* Starbucks Luxury & GenZ Dynamic Design System */

:root {
    --primary: #00704A;
    --primary-dark: #1E3932;
    --accent: #D4AE7D;
    --bg-cream: #F4F2EC;
    --white: #FFFFFF;
    --text-main: #2D2D2D;
    --text-muted: #6B6B6B;
    --border-light: #E6E2DA;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 10px 30px rgba(30, 57, 50, 0.08);
    --shadow-hover: 0 15px 35px rgba(30, 57, 50, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Decorative Elements */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 350px;
    height: 350px;
    background-color: var(--accent);
    bottom: -100px;
    left: -100px;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 650px;
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

/* Header styling */
.app-header {
    text-align: center;
    margin-bottom: 25px;
}

.starbucks-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 112, 74, 0.2));
    transition: var(--transition);
}

.starbucks-logo:hover {
    transform: rotate(10deg) scale(1.05);
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.app-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.app-header .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress bar */
.progress-container {
    background-color: var(--border-light);
    height: 6px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    border-radius: 10px;
    transition: var(--transition);
}

.progress-steps {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: absolute;
    pointer-events: none;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--border-light);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-cream);
    transition: var(--transition);
    transform: translateY(-2px);
}

.step-dot.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 112, 74, 0.2);
}

.step-dot.completed {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Survey Card */
.survey-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px);
    transition: var(--transition);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.survey-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Step Section Visibility */
.step-section {
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.step-section.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

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

.step-section h2 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.step-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Welcome Box */
.welcome-box {
    margin-bottom: 25px;
    background-color: rgba(0, 112, 74, 0.05);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 16px 16px 0;
}

.welcome-box h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.intro-text {
    font-size: 14.5px;
    color: var(--text-main);
    text-align: justify;
}

/* Question elements */
.question-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.screener-item, .select-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    padding: 16px;
    border-radius: 16px;
    transition: var(--transition);
}

.screener-item:hover, .select-item:hover {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.8);
}

.screener-label, .select-label {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary-dark);
}

/* Choice Option buttons (Yes/No, Demographics) */
.option-buttons {
    display: flex;
    gap: 10px;
}

.option-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.btn-opt, .btn-opt-demo {
    flex-grow: 1;
    background-color: var(--white);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    text-align: center;
}

.btn-opt:hover, .btn-opt-demo:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(0, 112, 74, 0.02);
}

.btn-opt.active, .btn-opt-demo.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 112, 74, 0.2);
    transform: translateY(-1px);
}

/* Likert Questions Container */
.likert-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.likert-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    padding: 16px 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.likert-item:hover {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.85);
}

.likert-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.likert-badge {
    background-color: rgba(212, 174, 125, 0.2);
    color: #b58d53;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.likert-text {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--primary-dark);
}

/* Likert Anchors and Segmented Control Scale */
.likert-anchors {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 4px;
    margin-top: 4px;
    margin-bottom: 2px;
    font-weight: 500;
}

.likert-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: #EAE8E2;
    border-radius: 12px;
    padding: 3px;
    border: 1px solid var(--border-light);
}

.scale-node {
    padding: 9px 0;
    border-radius: 9px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scale-circle {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.scale-node:hover {
    background-color: rgba(0, 112, 74, 0.08);
}

.scale-node.active {
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 112, 74, 0.15);
}

.scale-node.active .scale-circle {
    color: var(--white);
}

/* Navigation buttons */
.navigation-group {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.split-nav {
    justify-content: space-between;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 112, 74, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 74, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--white);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background-color: rgba(30, 57, 50, 0.02);
    transform: translateY(-2px);
}

/* Results / Screen out Page */
.result-section {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.result-title {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.result-desc {
    font-size: 15px;
    color: var(--text-main);
    max-width: 450px;
    line-height: 1.6;
}

/* Footer text */
.app-footer-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 25px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #323232;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile Responsiveness tweaks */
@media (max-width: 500px) {
    body {
        padding: 10px 5px;
    }
    .app-container {
        padding: 8px;
    }
    .app-header {
        margin-bottom: 12px;
    }
    .starbucks-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 6px;
    }
    .app-header h1 {
        font-size: 18px;
    }
    .app-header .subtitle {
        font-size: 11px;
    }
    .progress-container {
        margin-bottom: 15px;
    }
    .survey-card {
        padding: 15px;
        border-radius: 18px;
    }
    .step-section h2 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .step-desc {
        font-size: 12.5px;
        margin-bottom: 12px;
    }
    .screener-item, .select-item {
        padding: 12px;
        border-radius: 12px;
    }
    .likert-item {
        padding: 12px;
        border-radius: 14px;
        gap: 6px;
    }
    .likert-text {
        font-size: 13.5px;
    }
    .scale-node {
        padding: 8px 0;
    }
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 13.5px;
        border-radius: 10px;
    }
}
