@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary:      #5B2CA0;
    --primary-dark: #4A2080;
    --accent:       #FFC107;
    --accent-dark:  #FFB300;
    --green:        #66BB6A;
    --bg:           #F8F5FC;
    --card-border:  #EDE6F5;
    --text:         #1F1F1F;
    --text-muted:   #8E8E93;
    --white:        #FFFFFF;
    --shadow:       0 2px 16px rgba(91, 44, 160, 0.07);
    --shadow-hover: 0 4px 20px rgba(91, 44, 160, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    overflow-y: scroll;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #D1C4E9;
    border-radius: 4px;
}
html {
    background : #fff;
    min-height: 100vh;
}
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: var(--text);
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Wrapper */
.quiz-wrapper {
    width: 100%;
    max-width: 430px;
    background: var(--white);
    position: relative;
    /*overflow-x: hidden;*/
    box-shadow: 0 0 40px rgba(91,44,160,0.04);
}

/* Pages */
.page {
    display: none;
    padding: 0 20px 80px;
    /*min-height: 100vh;*/
    position: relative;
    animation: fadeIn 0.35s ease;
}

.page.active {
    display: block;
}

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

/* Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 8px;
    position: relative;
    z-index: 20;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-star {
    position: absolute;
    top: -2px;
    right: -20px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress bar */
.progress-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-top: 8px;
}

.step-label {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.step-label span {
    font-size: 13px;
}

.dots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    flex: 1;
    position: relative;
    height: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1C4E9;
    position: relative;
    z-index: 2;
    transition: background 0.3s;
    flex-shrink: 0;
}

.dot.active {
    background: var(--primary);
}

/* Connector lines between dots */
.dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 2px;
    background: #D1C4E9;
    transform: translateY(-50%);
    z-index: 1;
}

/* Active line overlay - done with JS, but here's base */
.dots .line-active {
    position: absolute;
    top: 50%;
    left: 6px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.3s ease;
}

/* Titles */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 17px;
    position: relative;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 27px;
    max-width: 60%;
}

.hero-title .highlight {
    color: var(--accent);
    display: inline;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 23px;
    max-width: 58%;
}

.benefits-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.benefit-list {
    list-style: none;
    margin-bottom: 20px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.benefit-list .check {
    flex-shrink: 0;
}

/* Hero girl image */
.hero-section {
    position: relative;
    margin-bottom: 10px;
    padding-top: 4px;
    min-height: 280px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-girl {
    position: absolute;
    bottom: -6px;
    right: -21px;
    width: 210px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-girl svg {
    width: 100%;
    height: 100%;
}
.hero-girl img {
    width : 100%;
}

/* Decorative elements */
.deco {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.deco-bulb     { top: 5px;  right: 100px; }
.deco-star1    { top: 100px; right: -9px;  }
.deco-star2    { top: 20px;  right: 10px;  }
.deco-bulb-right   { top: 10px;  right: 40px; }
.deco-star-right   { top: 50px;  right: 10px; }
.deco-pencil       { top: 29px;  right: 50px; }
.deco-star-right2  { top: 50px;  right: 15px; }
.deco-star-contact { top: 60px;  right: 20px; }

/* Cards grid - 3 columns for both info and reviews */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.info-card {
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 6px;
    text-align: center;
    background: var(--white);
    transition: box-shadow 0.2s;
}

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

.info-card-icon {
    margin-bottom: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-card-icon svg {
    width: 32px;
    height: 32px;
}

.info-card-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 2px;
}
.info-card-value-3 {
    font-size: 14px;
    font-weight: 600;
    margin-top : 4px;
}

.info-card-label {
    font-size: 11px;
    color: var(--text);
    line-height: 1.25;
    font-weight: 600;
}

/* Reviews */
.review-card {
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    padding: 12px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.stars {
    color: var(--accent);
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: 1px;
    line-height: 1;
}

.review-text {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text);
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.review-role {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-back {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--card-border);
    flex: 1;
}

.btn-back:hover {
    border-color: var(--primary);
    background: #F8F5FC;
}

.btn-back svg {
    stroke: var(--primary);
}

.btn-next {
    background: var(--primary);
    color: var(--white);
    flex: 2;
    box-shadow: 0 4px 12px rgba(91,44,160,0.25);
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91,44,160,0.3);
}

.btn-yellow {
    background: var(--accent);
    color: var(--text);
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(255,193,7,0.3);
    position: relative;
    z-index: 5;
    margin-top: 10px;
}

.btn-yellow:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,193,7,0.4);
}

.btn-full {
    width: 100%;
    margin-top: 4px;
}

/* Options grid (age) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.option-card {
    border: 2px solid var(--card-border);
    border-radius: 18px;
    padding: 10px 8px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
    user-select: none;
}

.option-card:hover {
    border-color: #C5B3E0;
    box-shadow: var(--shadow-hover);
}

.option-card.selected {
    border-color: var(--primary);
    background: #F3EDFF;
    box-shadow: 0 0 0 3px rgba(91,44,160,0.08);
}

.option-img-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-img-wrapper img,
.option-img-wrapper svg {
    width: 100%;
    height: 100%;
}

.bg-yellow { background: #FFF8E1; }
.bg-pink   { background: #FCE4EC; }
.bg-blue   { background: #E3F2FD; }
.bg-purple { background: #F3E5F5; }

.option-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Options list (step 2,3) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
    user-select: none;
}

.option-item:hover {
    border-color: #C5B3E0;
    box-shadow: var(--shadow-hover);
}

.option-item.selected {
    border-color: var(--primary);
    background: #F3EDFF;
    box-shadow: 0 0 0 3px rgba(91,44,160,0.08);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.option-icon svg {
    width: 24px;
    height: 24px;
}

.option-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

/* Inputs */
.input-group {
    margin-bottom: 14px;
}

.input-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
}
.input-with-icon.error input{
    border-color: red;
}
.input-with-icon + span.error {
    display: block;
    color: red;
    padding: 0 14px;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-field {
    width: 100%;
    border: 1.5px solid var(--card-border);
    border-radius: 14px;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91,44,160,0.08);
}

.input-with-icon .input-field {
    padding-left: 44px;
}

.input-with-icon .input-field.select-padded {
    padding-right: 40px;
}

select.input-field {
    cursor: pointer;
    padding-right: 40px;
}

/* Contact grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.contact-card {
    border: 1.5px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 4px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
    user-select: none;
}

.contact-card:hover {
    border-color: #C5B3E0;
    box-shadow: var(--shadow-hover);
}

.contact-card.selected {
    border-color: var(--primary);
    background: #F3EDFF;
    box-shadow: 0 0 0 3px rgba(91,44,160,0.08);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
}

/* Thank you page */
.thank-you-content {
    text-align: center;
    padding-top: 10px;
}

.deco-thanks {
    position: relative;
    height: 30px;
    margin-bottom: 4px;
}

.deco-star-t1 { position: absolute; left: 35%; top: 0; }
.deco-heart   { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); }
.deco-star-t2 { position: absolute; right: 35%; top: 5px; }

.thank-icon {
    width: 72px;
    height: 72px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(102,187,106,0.35);
}

.thank-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.thank-subtitle {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.info-block {
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    text-align: left;
    background: var(--white);
}

.info-block-icon {
    width: 44px;
    height: 44px;
    background: #F3EDFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-block-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.info-block-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.thank-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 18px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.bonus-block {
    background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
    border: 1.5px solid var(--accent);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    text-align: left;
}

.bonus-icon {
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bonus-icon svg {
    width: 44px;
    height: 44px;
}

.bonus-text h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
    font-weight: 700;
}

.bonus-text .amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.bonus-text div {
    font-size: 15px;
    color: var(--text);
    line-height: 1.3;
}

.btn-home {
    margin-top: 0;
        text-decoration: none;
}

/* Bottom cloud decoration */
.bottom-cloud {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 108px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cloud-circle {
    position: absolute;
    bottom: 8px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    z-index: 2;
}

.cloud-plants {
    position: absolute;
    bottom: 4px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
    align-items: flex-end;
}

/* Scroll fix - ensure pages can scroll above fixed bottom cloud */
.page {
    padding-bottom: 90px;
    margin-top : 20px;
    overflow: hidden;
}
#jGrowl {
    display: none !important;
}
.textarea-with-icon {
    
}
.textarea-with-icon svg {
    width: 23px;
    margin-top: -16px;
}
.textarea-with-icon textarea {
    resize: none;
    min-height: 10px;
    height: 80px;
}

/* Responsive */
@media (max-width: 430px) {
    .quiz-wrapper {
        max-width: 100%;
    }
    .bottom-cloud {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .hero-title { font-size: 26px; }
    .page-title { font-size: 24px; }
    .option-text { font-size: 13px; }
    .option-label { font-size: 13px; }
    .cards-grid { gap: 8px; }
    .info-card { padding: 10px 4px; }
    .review-card { padding: 10px; }
    .contact-grid { gap: 8px; }
    .contact-icon { width: 42px; height: 42px; }
    .contact-name { font-size: 10px; }
}
