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

:root {
    --primary: #0046ba;
    --success: #10b981;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}


.survey-header-top {
    background: var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.8rem 0;
}

.survey-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.survey-header-main {
    background: var(--primary);
    padding: 1.2rem 0;
    color: var(--white);
    text-align: center;
}

.survey-header-main h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.survey-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.survey-form {
    background: var(--white);
    width: 100%;
    max-width: 720px;
    padding: 2.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}


.survey-progress {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 1.8rem 0 2.5rem;
    width: 100%;
    max-width: 720px;
    padding: 0 1rem;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    position: relative;
    z-index: 3;
}

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

.step-dot.completed {
    background: var(--success);
    color: var(--white);
}

.progress-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    transform: translateY(-50%);
    z-index: 1;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.steps-slider {
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100%;
}

.steps-wrapper {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
}

.step {
    min-width: 100%;
    padding: 0 4px;
}

.step-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.options-grid {
    display: grid;
    gap: 0.9rem;
}

.option-card {
    padding: 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.option-card:hover {
    background: var(--gray-100);
}

.option-card.selected {
    border-color: var(--primary);
    background: #f0f5ff;
    box-shadow: 0 2px 6px rgba(0, 70, 186, 0.15);
}

.step-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

.step-thanks h2 {
    font-size: 1.75rem;
    color: var(--gray-900);
}

.step-thanks p {
    color: var(--gray-600);
    max-width: 500px;
    font-size: 1.05rem;
}

.confirmation-gif {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
}

.gif-animation {
    width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
}


.survey-footer {
    display: flex;
    justify-content: center;
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev {
    background: var(--gray-200);
    color: var(--gray-800);
}

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

.btn:hover:not(:disabled) {
    opacity: 0.92;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .survey-form {
        padding: 1.75rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .steps-indicator {
        gap: 0.6rem;
        max-width: 300px;
    }

    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .option-card {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .survey-logo {
        height: 40px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.modal-content h3 {
    font-size: 1.375rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.signature-pad {
    width: 100%;
    height: 180px;
    border: 2px dashed #000;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    background: #fafafa;
    position: relative;
}

.signature-pad canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (max-width: 500px) {
    .modal-content {
        width: 95%;
        padding: 1.25rem;
    }

    .signature-pad {
        height: 150px;
    }
}