@font-face {
    font-family: 'Gustavo';
    src: url('../nespresso/fonts/Gustavo-Regular.woff2') format('woff2'),
        url('../nespresso/fonts/Gustavo-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gustavo';
    src: url('../nespresso/fonts/Gustavo-Bold.woff2') format('woff2'),
        url('../nespresso/fonts/Gustavo-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #3d2622;
    /* Dark brown from image */
    --bg-pink: #e6a5a1;
    /* Soft pink from image */
    --bg-blue: #adc3d9;
    /* Light blue from image */
    --btn-navy: #1f3162;
    /* Dark blue for START button */
    --text-white: #ffffff;
    --text-dark: #000000;
}

body {
    font-family: 'Gustavo', sans-serif;
    background-color: var(--bg-pink);
    /* Default to pink for the quiz */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-blue);
    width: 100%;
}

.logo-section {
    padding: 30px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-section img {
    height: 60px;
    width: 60px;
    filter: invert(1);
    /* Invert black logo on white background to white logo on black */
    background-color: #000;
    /* Ensure the entire 60x60 area is black */
    display: block;
    margin: 0 auto;
    object-fit: contain;
    /* Keep the 'N' centered and un-stretched inside the black square */
    padding: 10px;
    /* Space around the 'N' for a centered sharp square look */
}

.hero-image-section {
    width: 100%;
    display: block;
    overflow: hidden;
}

.hero-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.content-section {
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
}

.start-btn {
    background-color: var(--btn-navy);
    color: white;
    border: none;
    padding: 10px 40px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 30px;
    font-family: 'Gustavo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.landing-title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.landing-text {
    font-size: clamp(14px, 2vw, 16px);
    margin-bottom: 20px;
}

.landing-cta {
    font-size: clamp(14px, 2vw, 16px);
    opacity: 0.8;
}

.quiz-container {
    display: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    background: transparent;
    text-align: center;
}

.progress-bar {
    display: none;
    /* Hide old progress bar */
}

.question-step {
    display: none;
    animation: fadeIn 0.6s ease;
}

.question-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-text {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    padding: 0 1rem;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.option-card {
    padding: 1.125rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 2.5vw, 16px);
    text-align: center;
    line-height: 1.4;
}

.option-card:hover {
    background-color: #2a1a17;
    transform: scale(1.02);
}

.option-card.selected {
    background-color: #2a1a17;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.option-card input {
    display: none;
}

.option-card span {
    width: 100%;
}

.nav-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Steps Bottom Progress */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3.75rem;
    position: relative;
    padding: 1.25rem 0;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.step-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1.5px;
    background: #000;
    z-index: 1;
    transform: translateY(-50%);
}

.step-line-fill {
    display: none;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    margin: 0 5px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-pink);
    border: 1.5px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: #fff;
    font-size: 14px;
    transition: all 0.4s ease;
}

.step.active .step-circle {
    background: #000;
    border-color: #000;
    color: #fff;
}

.step.completed .step-circle {
    background: #000;
    border-color: #000;
    color: #fff;
}

.step-label {
    display: none;
}

/* Form Styles */
.user-info-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Result Page Specifics (Migrated from result.blade.php) */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    background-color: var(--bg-blue);
    min-height: 100vh;
}

.machine-image-wrapper {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.machine-image {
    max-width: 100%;
    width: 250px;
    height: auto;
}

.machine-name {
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 1.25rem 0 0.3125rem 0;
    letter-spacing: 1px;
    font-family: 'Gustavo', sans-serif;
}

.price-plan {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.badge-text {
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 700;
    margin-bottom: 0.625rem;
    padding: 0 1rem;
    line-height: 1.3;
}

.description {
    font-size: clamp(13px, 2.5vw, 14px);
    line-height: 1.6;
    color: #333;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.tasting-section {
    margin-top: 1.25rem;
    padding: 0 1rem;
    width: 100%;
    text-align: left;
}

.tasting-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3125rem;
}

.tasting-name {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tasting-details {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.5;
}

.actions {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

/* Tablet & Desktop Adjustments */
@media screen and (min-width: 768px) {
    .landing-title {
        margin-bottom: 30px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .quiz-container,
    .result-container {
        padding: 4rem 2rem;
    }
}

@media screen and (min-width: 1024px) {

    .quiz-container,
    .result-container {
        max-width: 550px;
    }
}