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

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

.quiz-container {
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Slides */
.slide {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.slide.active {
    display: flex;
    flex-direction: column;
}

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

/* Hero Section - Start Slide */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px;
    padding-top: 12vh;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: 60px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: #0F3D3E;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #0F3D3E;
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn {
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #5A8F3D;
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 16px;
}

.btn-primary:hover {
    background: #4a7a32;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 143, 61, 0.4);
}

.btn-start {
    display: inline-block;
    margin-bottom: 16px;
}

.discount-badge {
    display: inline-block;
    background: #FCE4C4;
    color: #333;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.discount-badge.small {
    padding: 8px 20px;
    font-size: 13px;
}

/* Typing Effect */
.typing-badge {
    display: inline-block;
    background: #FCE4C4;
    color: #333;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 600px;
}

.typing-badge .cursor {
    display: inline-block;
    color: #5A8F3D;
    font-weight: 400;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-features {
    position: absolute;
    bottom: 200px;
    left: 60px;
    right: 60px;
    display: flex;
    gap: 24px;
    z-index: 1;
}

.feature {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.95);
    padding: 24px 28px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: #E8F5E0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.feature-text span {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Quiz Slides */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    border-bottom: 1px solid #eee;
}

.quiz-tagline {
    font-size: 14px;
    color: #555;
}

.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px;
    background: white;
}

.quiz-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #222;
    margin-bottom: 40px;
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 20px;
}

.options-grid.options-3 {
    grid-template-columns: repeat(2, 1fr);
}

.options-grid.options-3 .option-card:last-child {
    grid-column: 1;
}

.options-grid.options-4 {
    grid-template-columns: repeat(2, 1fr);
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card .option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover .option-content {
    border-color: #5A8F3D;
}

.option-card input:checked + .option-content {
    border-color: #5A8F3D;
    background: #F5FAF2;
}

.option-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.option-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Simple option cards (radio style) */
.option-card.simple .option-content {
    gap: 12px;
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.option-card.simple input:checked + .option-content .radio-circle {
    border-color: #5A8F3D;
}

.option-card.simple input:checked + .option-content .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #5A8F3D;
    border-radius: 50%;
}

.option-card.other .option-content {
    background: #F5F5F5;
}

/* Location Cards */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.location-card {
    position: relative;
    cursor: pointer;
}

.location-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.location-card .location-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.location-card .location-text {
    padding: 16px;
    border: 2px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: white;
    transition: all 0.3s ease;
}

.location-card:hover .location-text {
    border-color: #5A8F3D;
}

.location-card input:checked ~ .location-image {
    box-shadow: 0 0 0 3px #5A8F3D;
    border-radius: 12px 12px 0 0;
}

.location-card input:checked ~ .location-text {
    border-color: #5A8F3D;
    background: #F5FAF2;
}

.location-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.location-text span {
    font-size: 13px;
    color: #666;
}

/* Messenger Cards */
.messenger-grid {
    max-width: 700px;
}

.option-card.messenger .option-content {
    padding: 16px 24px;
}

.messenger-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Budget Slider */
.budget-section {
    max-width: 800px;
}

.budget-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #F5FAF2 0%, #E8F5E0 100%);
    border: 2px solid #5A8F3D;
    border-radius: 12px;
    margin-bottom: 24px;
}

.budget-currency {
    font-size: 24px;
    font-weight: 700;
    color: #5A8F3D;
}

#budgetValue {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.budget-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.preset-btn {
    padding: 10px 18px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.preset-btn:hover {
    border-color: #5A8F3D;
    color: #5A8F3D;
    background: #F5FAF2;
}

.preset-btn.active {
    background: #5A8F3D;
    border-color: #5A8F3D;
    color: white;
}

.slider-wrapper {
    position: relative;
    padding-top: 40px;
}

.slider-tooltip {
    position: absolute;
    top: 0;
    left: 17%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: left 0.1s ease;
}

.slider-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.slider-container {
    position: relative;
    height: 24px;
    margin-bottom: 12px;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 24px;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6BA344 0%, #5A8F3D 100%);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 4px 12px rgba(90, 143, 61, 0.4);
    border: 3px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(90, 143, 61, 0.5);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6BA344 0%, #5A8F3D 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(90, 143, 61, 0.4);
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 12px;
    background: #E8E8E8;
    border-radius: 6px;
    transform: translateY(-50%);
    overflow: hidden;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, #6BA344 0%, #5A8F3D 100%);
    border-radius: 6px 0 0 6px;
    width: 17%;
    transition: width 0.1s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

@media (max-width: 768px) {
    .budget-display {
        padding: 12px 20px;
    }

    .budget-currency {
        font-size: 20px;
    }

    #budgetValue {
        font-size: 22px;
    }

    .budget-presets {
        gap: 8px;
    }

    .preset-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .slider-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Quiz Footer */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    border-top: 1px solid #eee;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-info span {
    font-size: 14px;
    color: #666;
}

.progress-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: background 0.3s ease;
}

.dot.active {
    background: #5A8F3D;
}

.nav-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-back {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.btn-back:hover {
    background: #f5f5f5;
}

.btn-next {
    padding: 14px 48px;
}

/* Form Slide */
.form-slide {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 80px;
}

.form-slide h2 {
    text-align: center;
    font-size: 28px;
}

.form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #5A8F3D;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.input-wrapper input::placeholder {
    color: #999;
}

.phone-input {
    gap: 0;
}

.country-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    border-right: 1px solid #E0E0E0;
    margin-right: 12px;
    cursor: pointer;
    user-select: none;
}

.country-select .flag {
    font-size: 18px;
}

.country-select .code {
    font-weight: 500;
}

.country-select svg {
    transition: transform 0.3s ease;
}

.country-select.open svg {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 280px;
    max-height: 350px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.country-search {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    border-radius: 12px 12px 0 0;
}

.country-search::placeholder {
    color: #999;
}

.country-list {
    overflow-y: auto;
    flex: 1;
}

.country-select.open .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.country-option:first-child {
    border-radius: 12px 12px 0 0;
}

.country-option:last-child {
    border-radius: 0 0 12px 12px;
}

.country-option:hover {
    background: #F5FAF2;
}

.country-option .flag {
    font-size: 20px;
}

.country-option .country-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.country-option .country-code {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    background: #5A8F3D;
    color: white;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background: #4a7a32;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #5A8F3D;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    background: #5A8F3D;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:not(:checked) + .checkmark {
    background: white;
}

.checkbox-wrapper input:not(:checked) + .checkmark::after {
    display: none;
}

.checkbox-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Thank You Slide */
.thank-you-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px;
    background: white;
}

.thank-you-slide h2 {
    font-size: 42px;
    font-weight: 800;
    color: #222;
    margin: 24px 0 16px;
}

.thank-you-slide p {
    font-size: 16px;
    color: #555;
    max-width: 500px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        margin-left: 40px;
    }

    .hero-features {
        left: 40px;
        right: 40px;
        flex-wrap: wrap;
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-content {
        margin: 0;
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn-start {
        padding: 14px 36px;
        font-size: 15px;
        margin-bottom: 12px;
    }

    .discount-badge {
        padding: 8px 18px;
        font-size: 12px;
    }

    .hero-features {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        flex-direction: column;
        gap: 12px;
        padding: 0;
        margin-top: auto;
        padding-bottom: 20px;
    }

    .feature {
        flex: none;
        width: 100%;
        padding: 14px 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-text strong {
        font-size: 14px;
    }

    .feature-text span {
        font-size: 12px;
    }

    .quiz-header {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .quiz-content {
        padding: 30px 20px;
    }

    .quiz-content h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .quiz-footer {
        padding: 16px 20px;
    }

    .options-grid.options-3,
    .options-grid.options-4 {
        grid-template-columns: 1fr;
    }

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

    .form-slide {
        padding-top: 40px;
    }

    .btn-next {
        padding: 14px 32px;
    }
}
