.quiz-wrapper {
    border-bottom: #FFFFFF solid 1px;
    width: 100%;
    max-height: 650px;
    background: #000000;
    overflow: hidden;
}

.start-screen, .quiz-screen {
    min-height: 620px;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* СТАРТОВЫЙ ЭКРАН */
.start-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 620px;
}

.start-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.start-text {
    flex: 1;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 32px;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease;
}

.start-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.start-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 40px;
}

/* ГРАДИЕНТНЫЕ КНОПКИ С ПЕРЕЛИВОМ */
.btn-red, .nav-btn.primary, .submit-form-btn {
    background: linear-gradient(135deg, #ee0000, #cc0000, #ff1a1a);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(238, 0, 0, 0.5);
    animation: gradientShift 2.5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-red:hover, .nav-btn.primary:hover, .submit-form-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(238, 0, 0, 0.8);
    filter: brightness(1.05);
}

.btn-red {
    font-size: 1.3rem;
    padding: 16px 36px;
    border-radius: 10px;
    cursor: pointer;
}

/* Анимация ухода стартового экрана */
.animate-left {
    transform: translateX(-120%) scale(0.95);
    opacity: 0;
}
.animate-right {
    transform: translateX(120%) scale(0.95);
    opacity: 0;
}

.quiz-wrapper {
    width: 100%;
    background: #000000;
    overflow: hidden;
}

.start-screen, .quiz-screen {
    min-height: 620px;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* СТАРТОВЫЙ ЭКРАН */
.start-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 620px;
}

.start-image {
    flex: 2;
    background: url(/wp-content/uploads/2026/05/Jws2M56uNL-scaled.webp) no-repeat 0 40%;
    background-size: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease;
}

.start-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.start-text {
    flex: 1;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 32px;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease;
}

.start-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.start-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 40px;
}

/* ГРАДИЕНТНЫЕ КНОПКИ С ПЕРЕЛИВОМ */
.btn-red, .nav-btn.primary, .submit-form-btn {
    background: linear-gradient(135deg, #ee0000, #cc0000, #ff1a1a);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(238, 0, 0, 0.5);
    animation: gradientShift 2.5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-red:hover, .nav-btn.primary:hover, .submit-form-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(238, 0, 0, 0.8);
    filter: brightness(1.05);
}

.btn-red {
    font-size: 1.3rem;
    padding: 16px 36px;
    border-radius: 10px;
    cursor: pointer;
}

/* Анимация ухода стартового экрана */
.animate-left {
    transform: translateX(-120%) scale(0.95);
    opacity: 0;
}
.animate-right {
    transform: translateX(120%) scale(0.95);
    opacity: 0;
}

/* ОСНОВНОЙ КВИЗ */
.quiz-screen {
    padding: 28px 32px 32px 32px;
}

.quiz-content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}
.quiz-content-area.fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.question-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.3;
}

.input-field {
    width: 100%;
    padding: 18px 22px;
    font-size: 1.1rem;
    border: 2px solid #333333;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s;
    background: #1e1e1e;
    color: #ffffff;
}
.input-field:focus {
    border-color: #ee0000;
    box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.2);
}
.input-field::placeholder {
    color: #888888;
}

.radio-group.quiz-4 .radio-option:last-child span {
    font-weight: 800;
    font-size: 17px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}
.radio-option {
    flex: 1 1 200px;
    background: #1e1e1e;
    border: 2px solid #333333;
    border-radius: 4px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    color: #dddddd;
}
.radio-option.selected {
    background: #ee0000;
    border-color: #ee0000;
    color: white;
    box-shadow: 0 6px 12px rgba(238, 0, 0, 0.2);
}
input[type="radio"] {
    display: none;
}

/* Стили для чекбоксов (мультивыбор) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}
.checkbox-option {
    flex: 1 1 200px;
    background: #1e1e1e;
    border: 2px solid #333333;
    border-radius: 4px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    color: #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.checkbox-option.selected {
    background: #ee0000;
    border-color: #ee0000;
    color: white;
    box-shadow: 0 6px 12px rgba(238, 0, 0, 0.2);
}
.checkbox-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ee0000;
    margin: 0;
    pointer-events: none;
}

/* ФОРМА СВЯЗИ */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 550px;
    width: 100%;
    margin-top: 20px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-field label {
    font-weight: 500;
    color: #dddddd;
    font-size: 1rem;
}
.input-icon-group {
    display: flex;
    align-items: stretch;
    background: #1e1e1e;
    border: 2px solid #333333;
    border-radius: 4px;
    transition: all 0.2s;
}
.input-icon-group:focus-within {
    border-color: #ee0000;
    box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.2);
}
.input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #2a2a2a;
    color: #ffffff;
    font-weight: 500;
    border-right: 2px solid #444;
    border-radius: 4px 0 0 4px;
    gap: 6px;
    white-space: nowrap;
}
.input-prefix span {
    font-size: 1rem;
}
.input-icon-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 14px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    border-radius: 0 4px 4px 0;
}
.input-icon-group input::placeholder {
    color: #888888;
}
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}
.checkbox-field input {
    width: 40px;
    height: 40px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ee0000;
}
.checkbox-field label {
    font-size: 0.85rem;
    color: #bbbbbb;
    line-height: 1.4;
    cursor: pointer;
}
.checkbox-field a {
    color: #ee0000;
    text-decoration: none;
}
.checkbox-field a:hover {
    text-decoration: underline;
}
.submit-form-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    border: none;
}

/* БЛОК СПАСИБО */
.thankyou-message {
    text-align: center;
    padding: 50px 30px;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}
.thankyou-message h2 {
    font-size: 2.5rem;
    color: #ee0000;
    margin-bottom: 20px;
}
.thankyou-message p {
    font-size: 1.2rem;
    color: #dddddd;
    margin-bottom: 20px;
    line-height: 1.5;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* НИЖНЯЯ ПАНЕЛЬ */
.quiz-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}
.progress-section {
    margin-bottom: 20px;
}
.progress-bar-container {
    background-color: #2a2a2a;
    border-radius: 10px;
    height: 8px;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
}
.progress-fill {
    background: linear-gradient(90deg, #ee0000, #ff4444);
    width: 0%;
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.step-number {
    font-size: 1rem;
    font-weight: 600;
    background: #1e1e1e;
    padding: 8px 20px;
    border-radius: 10px;
    color: #dddddd;
}
.action-buttons {
    display: flex;
    gap: 16px;
}
.nav-btn {
    background: #1e1e1e;
    border: 2px solid #444444;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    color: #ffffff;
}
.nav-btn.primary {
    background: linear-gradient(135deg, #ee0000, #cc0000);
    background-size: 200% 200%;
    animation: gradientShift 2.5s ease infinite;
    border: none;
}
.nav-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    background: #cc0000;
}
.nav-btn:not(:disabled):hover {
    transform: translateY(-2px);
}
.nav-btn .icon svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}
@keyframes slideInRight {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 780px) {
    .start-content { flex-direction: column; }
    .start-image {    flex: auto; max-height: 280px; }
    .start-text { padding: 32px 24px; text-align: center; align-items: center; }
    .start-text h1 { font-size: 2rem; }
    .start-text h2 { font-size: 1.4rem; }
    .question-title { font-size: 1.5rem; }
    .quiz-screen { padding: 20px; }
    .radio-group, .checkbox-group { flex-direction: column; }
    .toast-notification {
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}
@media (max-width: 480px) {
    .step-indicator { flex-direction: column; gap: 12px; align-items: stretch; }
    .action-buttons { justify-content: center; }
    .step-number { text-align: center; }
    .input-prefix { padding: 0 10px; }
    .radio-option, .checkbox-option {flex: 1 1 60px;}
}
.checkbox-option span::first-letter, .radio-option span::first-letter  {
    text-transform: uppercase!important;
}
