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

:root {
    --primary:      #6741d0;
    --primary-dark: #45227d;
    --primary-light:#7C4DFF;
    --accent:       #FFC107;
    --accent-dark:  #FFB300;
    --green:        #66BB6A;
    --bg:           #F8F5FC;
    --card-border:  #EDE6F5;
    --text:         #1a1a3e;
    --text-muted:   #6b6b8d;
    --white:        #FFFFFF;
    --shadow:       0 4px 20px rgba(91, 44, 160, 0.10);
    --shadow-hover: 0 6px 24px rgba(91, 44, 160, 0.16);
}

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

html {
    font-size: 16px;
    min-height: 100dvh;
    background: #F5F0FA;
    overflow-y: scroll;
    scrollbar-width: thin;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    background: #efe8ef;
}

/* Wrapper */
.quiz-wrapper {
    width: 100%;
    max-width: 430px;
    background: #efe8ef;
    position: relative;
    min-height: 100dvh;
    box-shadow: 0 0 40px rgba(91, 44, 160, 0.06);
}

/* Pages */
.page {
    display: none;
    width: 100%;
    min-height: 100dvh;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
    animation: fadeIn 0.35s ease;
}
.page#page-home {
    background-size: cover;
}

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

.page-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px 24px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

/* Progress pill */
.progress-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(91, 44, 160, 0.25);
    position: relative;
    margin-left: auto;
    margin-right: auto;
}
.progress-pill-h svg {
    display: none;
}
.progress-pill-h:before {
    content: '';
    display: inline-block;
    background: url("../img-steps/icon-2.png") center/cover;
    width: 30px;
    height : 30px;
}

.pill-hat {
    flex-shrink: 0;
}

/* Titles */
.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height:1.1;
    margin-bottom: 13px;
    max-width: 75%;
}

.hero-title .highlight {
    color: var(--primary);
}

.page-title {
    font-size: 29px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 36px;
    text-align: center;
    position: relative;
}

.page-title span {
    color: var(--primary);
}
.page-title:after {
    content: '';
    display: inline-block;
    width : 80px;
    height : 3px;
    background : var(--accent);
    border-radius: 50px;
    position: absolute;
    bottom : -15px;
    left: 50%;
    margin-left : -40px;
}

.contact-title {
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 17px;
    /*color: var(--text-muted);*/
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 85%;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 28px;
    max-width: 78%;
    font-weight: 600;
}
.img-4-q {
    display: inline-block;
    width: 46px;
}

/* Home page */
.hero-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(91, 44, 160, 0.10);
    backdrop-filter: blur(4px);
}

.start-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    align-self: flex-start;
}

.start-badge-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.start-badge-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 18px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    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), var(--shadow-hover);
}

.option-icon-star {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F3EDFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.option-icon-star img {
    width : 50px;
}

.option-icon-check {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F3EDFF;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F3EDFF;
}
.img-avatar {
    width : 50px;
}

.option-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    flex: 1;
    margin-left : 5px;
}

.option-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #D1C4E9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.numbered-list__step-2 .option-label{
    font-size: 15px;
    line-height: 1.2;
}

.option-radio span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.option-card.selected .option-radio {
    border-color: var(--primary);
}

.option-card.selected .option-radio span {
    opacity: 1;
    transform: scale(1);
}

/* Contact grid */
.contact-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

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

.contact-card {
    background: var(--white);
    border: 1.5px solid var(--white);
    border-radius: 14px;
    padding: 12px 4px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    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 2px rgba(91, 44, 160, 0.08), var(--shadow-hover);
}

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

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

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

.input-with-icon {
    position: relative;
}

.input-with-icon.error input {
    border-color: #E53935;
}

.input-icon {
    position: absolute;
    left: 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 15px 46px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

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

.input-field::placeholder {
    color: #A5A5B8;
}

/* Trust list */
.trust-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 10px 12px;
    backdrop-filter: blur(4px);
}

.trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(243, 237, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 999px;
    padding: 14px 22px 16px;
    font-family: inherit;
    font-size: 19px;
    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: auto;
    padding-top: 8px;
    flex-direction: column-reverse;
    align-items: center;
}

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

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

.btn-primary {
    background: url("../img-steps/btn-bg.png") center/cover;
    color: var(--white);
    flex: 2;
    box-shadow: 0 4px 14px rgba(91, 44, 160, 0.30);
    height: 48px;
    max-height: 48px;
    width: auto;
    align-self: center;
    min-width: 292px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #351a5e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(91, 44, 160, 0.38);
}

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

.btn-start {
    /*width: 100%;*/
    margin-top: auto;
    padding: 14px 22px 18px;
    font-size: 19px;
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* Thank you page */
.thank-you-content {
    text-align: center;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.thank-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.thank-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}
.thank-you-content .thank-title {}
.thank-you-content .thank-subtitle span {
    color: var(--primary);
}

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

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

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

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

.thank-desc {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 24px;
}

.thank-desc strong {
    color: var(--primary);
    font-weight: 800;
}

.btn-home {
    width: 100%;
    margin-top: auto;
}

/* Hide jGrowl */
#jGrowl {
    display: none !important;
}

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

@media (max-width: 360px) {
    .hero-title { font-size: 30px; }
    .btn { font-size: 19px; padding: 14px 18px; }
}
