:root {
    --primary: #0041B3;
    /* Blue as seen in the screenshot */
    --primary-light: #f0f3ff;
    --primary-hover: #003699;
    --bg-color: #FFFFFF;
    --text-main: #000000;
    --text-muted: #666666;
    --border-color: #e0e6ed;
    --error-color: #EF4444;
    --success-color: #10B981;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
}

/* Typography - Matching screenshot */
h1,
h2 {
    font-weight: 400;
    /* Lighter font weight for titles */
    line-height: 1.4;
}

.welcome-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

@media(min-width: 768px) {
    .welcome-title {
        font-size: 1.8rem;
    }
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 4px;
}

.question-number i {
    display: none;
    /* Hide arrow to match screenshot */
}

.question-title {
    font-size: 1.5rem;
    color: var(--text-main);
}

.required {
    color: var(--text-main);
    /* Required star is black in screenshot */
}

.subtitle-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
}

/* Buttons - "Tamam" button style */
.btn {
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Options Grid - Responsive & Centered */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 480px;
    /* Increased for better desktop presence */
}

@media(max-width: 480px) {
    .options-grid {
        max-width: 100%;
    }
}

.option-btn {
    display: flex;
    align-items: center;
    background: #f4f6fb;
    border: 1px solid rgba(0, 65, 179, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    min-height: 48px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--primary);
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    background: #ebf0f8;
}

.option-btn.selected {
    background: #fff;
    border: 2px solid var(--primary);
    /* Thick blue border for selected */
    color: var(--primary);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 1px solid rgba(0, 65, 179, 0.2);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.option-btn.selected .option-letter {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.option-text {
    flex-grow: 1;
}

/* Rating Grid (1-5) */
.rating-grid {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
}

.rating-btn {
    width: 50px;
    height: 50px;
    background: #f4f6fb;
    border: 1px solid rgba(0, 65, 179, 0.1);
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
}

.rating-btn.selected {
    background: #fff;
    border: 2px solid var(--primary);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    font-size: 2rem;
    color: #e0e6ed;
}

.star-btn.selected,
.star-btn.hovered {
    color: var(--primary);
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.4s ease-out;
}

/* Steps Transition - Improved Centering */
.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top so tall content is never cut off */
    align-items: center;
    padding: 0 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
    overflow-y: auto;
}

.step--active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s;
}

.step--prev {
    transform: translateY(-30px);
}

.step--next {
    transform: translateY(30px);
}

/* Content Areas - Max Width & Centering */
.step-content {
    width: 100%;
    max-width: 720px;
    margin: auto 0;
    /* Vertically center if short, stick to top if tall */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 120px;
    /* Ensure content clears the absolute positioned footer */
}

@media(max-width: 768px) {
    .question-title {
        font-size: 1.3rem;
    }

    .option-btn {
        font-size: 1.05rem;
        min-height: 52px;
        /* Better touch target for mobile */
    }

    .navigation-footer {
        right: 15px;
        /* Adjust footer positioning on mobile */
        bottom: 15px;
    }
}

/* Multi Checkbox styles */
.check-icon {
    display: none;
    /* Hide as per screenshot style */
}

/* Inputs */
.text-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-size: 1.5rem;
    padding: 10px 0;
    color: var(--primary);
    outline: none;
}

.text-input:focus {
    border-bottom-color: var(--primary);
}

/* Footer Navigation */
.navigation-footer {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-buttons {
    display: flex;
    background: var(--primary);
    border-radius: 4px;
    overflow: hidden;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.powered-by {
    font-size: 0.8rem;
    color: #999;
}

/* Error Msg */
.error-msg {
    margin-top: 1rem;
    color: #fff;
    background: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.error-msg.show {
    opacity: 1;
    visibility: visible;
}

/* NPS Grid Styles (0-10) */
.nps-grid {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.nps-numbers {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.nps-btn {
    flex: 1;
    aspect-ratio: 1;
    background: #f4f6fb;
    border: 1px solid rgba(0, 65, 179, 0.1);
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(max-width: 600px) {
    .nps-btn {
        font-size: 0.9rem;
    }
}

.nps-btn:hover {
    background: #ebf0f8;
}

.nps-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 4px;
}