html,
body {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

* {
    box-sizing: border-box;
}



.error-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    max-width: 90%;
    background: #fee2e2;
    color: #7f1d1d;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 9999;
}

.error-box.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #e0f2fe, #f0f9ff);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

}

input:hover,
select:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(59, 130, 246, .35);
    border-color: #3b82f6;
    background-color: #f9fbff;
}

input:focus,
select:focus {
    transform: scale(1.05);
    border-color: #2563eb;
    box-shadow: 0 0 14px rgba(37, 99, 235, .45);
    background-color: #ffffff;
}

@keyframes inputBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1.05);
    }
}



.card,
.form-card,
.footer-card {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding: 44px 40px;
    border-radius: 24px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 20px 60px rgba(59, 130, 246, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFloat 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #a3c6f3, transparent 60%),
        radial-gradient(circle at bottom right, #98bce8, transparent 60%),
        linear-gradient(135deg, #b5c4ec, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    overflow-x: hidden;
    position: relative;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(164, 199, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(144, 227, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}


.form-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    overflow: visible;
    min-height: 500px;
}

.form-card {
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    visibility: hidden;
}

.form-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

.form-card.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.form-card.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.form-card.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.form-card.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}


.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.form-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}


.question-container {
    animation: fadeUp 0.6s ease forwards;
}

.question-section {
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease forwards;
}

.question-header {
    font-size: 22px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
}

.question-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.option-btn {
    padding: 16px 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.option-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.option-text {
    display: block;
    font-size: 16px;
    font-weight: 700;
}


.completion-screen {
    width: 100%;
    text-align: center;
    padding: 0;

}

.completion-screen h2 {
    font-size: 28px;
    color: #10b981;
    margin-bottom: 16px;
}

.completion-screen p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
}

.answers-summary {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;

}

.summary-section {
    width: 100%;
    margin-bottom: 32px;

    padding-bottom: 20px;

    border-bottom: 2px solid #e2e8f0;

}

.summary-section h3 {
    color: #1e40af;
    margin-bottom: 12px;
    font-size: 18px;
}

.summary-section,
.upload-section,
.answers-details {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}


.summary-item .answer-text {
    display: block;
    font-weight: 600;
    margin-top: 4px;
}

.summary-item:last-child {
    border-bottom: none;
}

.answers-section {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #f9fafb;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
    background-color: #e2e8f0;
    transition: background 0.2s;
}

.section-header:hover {
    background-color: #d1d5db;
}

.section-header .check-icon {
    font-weight: bold;
    color: #10b981;

    margin-right: 8px;
    transition: transform 0.2s;
}

.section-header.active .check-icon {
    transform: rotate(90deg);

}

.section-content {
    padding: 8px 16px;
    display: none;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 16px;

}

.section-header.active+.section-content {
    max-height: 1000px;

    padding: 8px 16px;
}

.answer-item {
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
}

.answer-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.answer-value {
    font-weight: bold;
    margin-right: 8px;
}

.answer-reason {
    font-style: italic;
    margin-top: 2px;
    margin-left: 16px;
    color: #374151;
}


@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}


.card {
    width: 100%;
    max-width: 960px;
    padding: 34px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .45));
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .45);
    animation: cardEnter .9s cubic-bezier(.22, .61, .36, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(.96);
    transition: transform .45s ease, box-shadow .45s ease;
}

.card:hover,
.form-card:hover {
    transform: translateY(-8px) scale(1.005);
    box-shadow:
        0 30px 80px rgba(59, 130, 246, 0.15),
        0 12px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes cardFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.header-card {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    animation: slideDown 0.8s ease forwards;
    margin-bottom: 12px;
}

.header-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}


.banner {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #3b82f6, #72a7e4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 4px 14px rgba(59, 130, 246, .45);
    animation: fadeSlide 1.2s ease forwards;
    transition: transform .4s ease, text-shadow .4s ease;

    font-size: clamp(16px, 4vw, 50px);
}

.banner h1 {
    margin: 0;
    font-size: 0.9em;

    line-height: 1.2;
}

.banner span {
    display: block;
    font-size: 0.8em;

    line-height: 1.1;
    margin-top: 4px;
}

.banner:hover {
    transform: scale(1.12);
    text-shadow: 0 8px 28px rgba(59, 130, 246, 0.6);
}


@media (max-width: 680px) {
    .banner {
        font-size: clamp(16px, 6vw, 32px);

    }

    .banner span {
        font-size: 0.45em;
    }
}


.form-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeUp .9s ease forwards;
}


.field {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}


input,
select {
    height: 52px;
    padding: 0 18px;
    border-radius: 7px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 15px;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background-color .25s ease;
}

.input-wrap {
    position: relative;
    display: inline-block;

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;
}

.input-wrap .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;

    transition: opacity 0.3s ease, transform 0.3s ease;

}

.input-wrap input {
    padding-left: 40px;

    height: 46px;
    width: 100%;

    max-width: 535px;

    border: 1px solid #688e9d;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.input-wrap input:hover~.icon {
    transform: translateX(-40%) translateY(-50%) scale(1.1);
    opacity: 0;
}

.input-wrap input:focus~.icon {
    transform: translateX(-20%) translateY(-50%) scale(1.12);
    opacity: 1;
    color: #007bff;
}


.input-wrap input:focus~.icon {
    color: #007bff;
}

.combo-list {
    margin-top: 8px;
    border-radius: 8px;

    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow-y: auto;
    max-height: 0;
    overflow-x: hidden;

    transition: none !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}

.input-wrap .combo-list,
.input-wrap .date-picker {
    transition: none !important;
    animation: none !important;
}

.combo-list.open {
    max-height: 220px;
}

.combo-item {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    padding: 12px 16px;
    cursor: pointer;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.combo-item:hover {
    transform: translateX(8px) scale(1.02);
    background: linear-gradient(90deg, #e0f2fe, #f0f9ff);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}


.date-wrapper {
    position: relative;
}

.date-picker {
    margin-top: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .18);
    display: none;
    animation: fadeUp .4s ease;
}

.date-picker.open {
    display: block;
}

.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dp-header button {
    border: none;
    background: linear-gradient(135deg, #bfdbfe, #60a5fa);
    color: #1e3a8a;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.dp-header button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.dp-day {
    padding: 12px 0;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .25s ease, transform .2s ease;
}

.dp-day:hover {
    background: #dbeafe;
    transform: scale(1.12);
}

.time-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    justify-content: flex-start;
}

.time-grid select {
    flex: 1;

    min-width: 120px;

    max-width: 180px;

}


.footer-card {
    font-size: 14px;
    color: #334155;
    background: #f1f5f9;
    animation: slideUp .8s ease forwards;
}



.question-warning.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.drop-area {
    margin-top: 16px;
    margin-bottom: 16px;
    border: 2px dashed #a1a1aa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.drop-area.dragover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    margin-top: 5px;
    margin-bottom: 5px;

}

#answersDetailsContainer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.preview-container .preview-item {
    position: relative;
}

.preview-container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.preview-container .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-weight: bold;
}


.answers-details summary {
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    background: #e5e7eb;
    border-radius: 6px;
    margin-bottom: 4px;
}

.answers-details details {
    margin-bottom: 10px;
}


.question-item {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    margin: 3px 0;
    cursor: pointer;
}


.edit-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.edit-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s ease forwards;
}

.edit-option-btn.selected.bad {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.edit-option-btn.selected.medium {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.edit-option-btn.selected.good {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.edit-modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    opacity: 0;
    animation: modalPopIn 0.35s ease forwards;
    position: relative;
}


.edit-modal .close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    color: #ef4444;
    transform: translate(20px, -20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.edit-modal.active .close-modal {
    transform: translate(0, 0);
    opacity: 1;
}

.edit-modal .close-modal:hover {
    transform: scale(1.2);
}


.edit-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.edit-options button {
    flex: 1;
    padding: 14px 0;
    font-size: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #f3f4f6;
    color: #374151;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.edit-options button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.edit-options button.bad.active {
    background: #fea2a2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.edit-options button.medium.active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.edit-options button.good.active {
    background: #b3f8cb;
    border-color: #22c55e;
    color: #166534;
}


#editReason {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    padding: 14px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    resize: vertical;
    background: #f9fafb;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#editReason:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.25);
}


.save-edit-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.save-edit-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}


.edit-warning {
    background: #fee2e2;
    color: #7f1d1d;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: fadeUp 0.3s ease forwards;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.edit-option-btn.selected {
    border: 2px solid #3b82f6;

    background-color: #bfdbfe;

}

.edit-option-btn {
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
}


.finish-btn-container {
    margin-top: 20px;
    text-align: center;
}

#finishBtn {
    padding: 10px 20px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.answer-btn.good.active {
    background: #e6f4ea;
    color: #256029;
}

.answer-btn.medium.active {
    background: #fdecea;
    color: #7a1c1c;
}

.answer-btn.bad.active {
    background: #fdecea;
    color: #7a1c1c;
}

.form-step.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}


.form-step.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}


.form-step.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}


.form-step.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}


.form-step.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.btn {
    padding: 16px 36px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        background 0.4s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    position: relative;
    overflow: visible;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 130px;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    outline: none;
    border: 1px solid transparent;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;

}

.btn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


.btn:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease-out;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.25);
    transition:
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        background 0.4s ease;

}




.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);

    box-shadow:
        0 20px 45px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
}


.btn {
    position: relative;
}


.btn::before {
    content: '';
    position: absolute;
    top: -10px;

    left: -10px;

    right: -10px;

    bottom: -15px;

    background: transparent;
    z-index: -1;
    pointer-events: none;
}


.btn-container {
    display: inline-block;
    position: relative;
    padding-bottom: 5px;

}


.btn {
    transition:
        transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28),

        box-shadow 0.3s ease-out,
        background 0.5s ease;

}


.btn:hover {
    transform: translateY(-4px) scale(1.02);

    z-index: 10;

}


.btn-secondary {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #4b5563;
    border: 1px solid #e5e7eb;
    transition:
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        background 0.5s ease,
        color 0.5s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);

    color: #374151;
    box-shadow:
        0 16px 40px rgba(148, 163, 184, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #d1d5db;
    transform: translateY(-4px) scale(1.02);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: 1px solid rgba(5, 150, 105, 0.25);
    transition:
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        background 0.5s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);

    box-shadow:
        0 20px 45px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(5, 150, 105, 0.35);
    transform: translateY(-4px) scale(1.02);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid rgba(59, 130, 246, 0.5);
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    color: white;
    box-shadow:
        0 16px 40px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.7);
    transform: translateY(-4px) scale(1.02);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.25);
    transition:
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        background 0.5s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);

    box-shadow:
        0 20px 45px rgba(239, 68, 68, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(220, 38, 38, 0.35);
    transform: translateY(-4px) scale(1.02);
}


.btn::after {
    content: '';
    position: absolute;
    bottom: -8px;

    left: 0;
    width: 100%;
    height: 8px;

    background: transparent;
    z-index: -1;
}

.btn {
    transition-delay: 0s;
}

.btn:hover {
    transition-delay: 0s;
}


.btn {
    transition:
        transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.05s,

        box-shadow 0.3s ease-out 0.05s,
        background 0.5s ease 0.05s,
        border-color 0.5s ease 0.05s,
        color 0.5s ease 0.05s;
}


.btn:hover {
    transition-delay: 0s;
}

.btn {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.btn:hover {
    transform: translate3d(0, -4px, 0) scale(1.02);
}



.btn-sm {
    padding: 12px 28px;
    font-size: 14px;
    min-width: 110px;
    border-radius: 14px;
}

.btn-sm:hover {
    transform: translate3d(0, -3px, 0) scale(1.01);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 16px;
    min-width: 150px;
    border-radius: 18px;
    font-weight: 600;
}

.btn-lg:hover {
    transform: translate3d(0, -5px, 0) scale(1.03);
}




.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translate3d(0, 0, 0) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #9ca3af;
    border-color: #d1d5db;
}


.btn-no-bug {
    transition: none !important;
}

.btn-no-bug:hover {
    transition: none !important;
}


.btn-simple-hover:hover {
    background: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.progress-text {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.btn,
.option-btn,
.card {
    will-change: transform;
}

.question-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff7ed;
    border: 1.5px solid #fb923c;
    color: #9a3412;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-width: 90%;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.reason-box textarea {
    width: 100%;
    height: 140px;

    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;

    overflow-y: auto;

    overflow-x: hidden;

    border-radius: 10px;
    border: 1.5px solid #d0d7ff;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #fafbff;

}

.reason-box textarea:focus {
    border-color: #4d8cf1;
    background: #fff;
}

.reason-box {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: none !important;
}

.reason-box.active {
    max-height: 220px;
    opacity: 1;
    margin-top: 12px;
}


.option-btn.good.selected {
    background: #dcfce7;

    border-color: #22c55e;
    color: #166534;
}


.option-btn.medium.selected {
    background: #fee2e2;

    border-color: #ef4444;
    color: #7f1d1d;
}


.option-btn.bad.selected {
    background: #fee2e2;

    border-color: #ef4444;
    color: #7f1d1d;
}


.option-btn .option-text {
    font-size: 20px;
}


@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-120px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(120px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(40px) scale(.95);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.progress-container {
    margin-bottom: 24px;
    padding: 0 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(170, 219, 255, 0.4), transparent);
    animation: progressShine 4s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.date-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
    display: none;
}

.date-overlay.active {
    display: block;
}


.answer-value[style*="color:green"],
.answer-value.green {
    color: #7fefa8 !important;
    font-weight: bold;
}

.answer-value[style*="color:red"],
.answer-value.red {
    color: #d55d5d !important;
    font-weight: bold;
}

#form-step-3.active {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px !important;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}




.card-hover,
.header-card,
.footer-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0) scale(1);

}


.card-hover:hover,
.header-card:hover,
.footer-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 50px 90px rgba(59, 130, 246, 0.25),
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 25px 50px rgba(169, 202, 255, 0.3));
    border-color: rgba(59, 130, 246, 0.3);
    border-radius: 12px;
}



@keyframes msgBoxPop {
    0% {
        transform: translateX(-50%) translateY(-10px) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}



.combo-list,
.date-picker {
    display: none;
}

.combo-list.open,
.date-picker.open {
    display: block;
}


@media (max-width: 768px) {
    .form-navigation {
        margin-top: 30px;
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .form-navigation .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 16px !important;

        font-size: 14px !important;

        line-height: 1.3;
        height: 42px;

        border-radius: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: normal;
    }


    .btn i,
    .btn .icon {
        font-size: 15px !important;
        width: 16px !important;
        height: 16px !important;
        margin-right: 6px !important;
    }


    .form-navigation .btn:first-child {
        margin-right: 6px;
    }

    .form-navigation .btn:last-child {
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .form-navigation {
        margin-top: 24px;
        gap: 8px;
    }

    .form-navigation .btn {
        padding: 8px 12px !important;

        font-size: 13px !important;

        height: 38px;

        border-radius: 8px;
        letter-spacing: normal;
    }


    .btn i,
    .btn .icon {
        font-size: 13px !important;
        width: 14px !important;
        height: 14px !important;
        margin-right: 4px !important;
    }

    .btn span {
        display: inline-block;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 375px) {
    .form-navigation {
        gap: 6px;
    }

    .form-navigation .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        height: 36px;
        border-radius: 8px;
    }


    .btn i,
    .btn .icon {
        font-size: 12px !important;
        margin-right: 3px !important;
    }

    .btn span {
        max-width: 75px;
    }
}


@media (max-width: 768px) {
    .question-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 12px;
    }

    .option-btn {
        padding: 12px 8px !important;

        min-height: 70px;

        border-radius: 10px;
        border-width: 1.5px;
    }

    .option-label {
        font-size: 11px !important;
        margin-bottom: 3px;
    }

    .option-text {
        font-size: 15px !important;

        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .question-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 11px;
    }

    .option-btn {
        padding: 11px 6px !important;

        min-height: 60px;

        border-radius: 8px;
        border-width: 1px;
    }

    .option-label {
        font-size: 11px !important;

        margin-bottom: 2px;
        letter-spacing: normal;
    }

    .option-text {
        font-size: 13px !important;

        font-weight: 700;
        letter-spacing: normal;
    }


    .option-label[data-short]::after {
        content: attr(data-short);
        display: block;
    }

    .option-label:not([data-short]) {
        font-size: 11px !important;
    }
}


@media (hover: none) and (pointer: coarse) {
    .option-btn {
        min-height: 65px;

    }

    .btn {
        min-height: 40px;

    }

    input,
    select {
        min-height: 44px;

    }
}


@media (max-height: 500px) and (orientation: landscape) {
    .question-options {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }

    .option-btn {
        min-height: 55px !important;
        padding: 6px 4px !important;
    }

    .option-label {
        font-size: 11px !important;
        margin-bottom: 1px;
    }

    .option-text {
        font-size: 11px !important;
    }

    .form-navigation {
        margin-top: 20px !important;
    }

    .form-navigation .btn {
        height: 34px !important;

        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}