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

body {
    font-family: Arial, sans-serif;
    background-color: #2b2b2b;
}

header {
    color: white;
    padding: 30px 10px;
    text-align: center;
}

h1 {
    font-size: 42px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.offer {
    background-color: #2b2b2b;
    padding: 20px;
    margin: 0 auto 40px;
    width: 100%;
    max-width: 1400px;
}

.offer-container {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    gap: 50px;
    align-items: center;
}

.offer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offer-left h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.checkmarks {
    list-style: none;
    padding: 0;
}

.checkmarks li {
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-bottom: 15px;
}

.checkmarks li img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.countdown {
    text-align: center;
    margin: 20px 0;
}

.countdown p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

#timer {
    font-size: 52px;
    font-weight: bold;
    color: #4caf50;
    letter-spacing: 8px;
}

.timer-labels {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 5px;
}

.timer-labels span {
    font-size: 14px;
    color: #888;
}

.quiz-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.cta-button-container {
    text-align: center;
    margin-top: 20px;
}

.cta-button {
    background-color: #5a8c3a;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 18px 60px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #4a7a2a;
}

.offer-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-right img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
}

.offer-media img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
}

.advantages {
    background-color: #2b2b2b;
    padding: 20px;
    margin: 0 auto 40px;
    width: 100%;
    max-width: 1400px;
}

.advantages-container {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.advantages-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.advantages-left img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
}

.advantages-right {
    flex: 1;
}

.advantages-right h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

.advantages-right ul {
    list-style: none;
    padding: 0;
}

.advantages-right ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.advantages-right .number {
    background-color: #00a8e8;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.advantage-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.reviews-section {
    background-color: #2b2b2b;
    padding: 40px 20px;
    text-align: center;
}

.reviews-section h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 40px;
}

.reviews {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px;
    justify-content: center;
}

.review-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    width: 400px;
}

.review-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.review-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    margin-bottom: 15px;
}

.author {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    text-align: left;
}

.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ccc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    color: black;
    position: relative;
}

.close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close:hover,
.close:focus {
    color: #333;
    transform: rotate(90deg);
    text-decoration: none;
}

.question-block {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.question-block:last-child {
    border-bottom: none;
}

h5,
h6 {
    color: #007bff;
}

input[type="text"],
input[type="tel"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="radio"]{
    margin-top: 14px;
}

.quiz-label {
    font-size: 18px;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #007bff;
    outline: none;
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
    color: black;
}

.final-page-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    display: none;
    padding: 0;
}

.final-page-text-container {
    width: 100%;
    padding: 0 0 1.6rem 0;
}

.final-page-text-container h1 {
    margin-bottom: 1.2rem;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

.final-page-form-container {
    padding: 29px 35px 19px;
    border-radius: 3px;
    -webkit-box-shadow: 0 9px 40px 0 #d6d6d6;
    box-shadow: 0 9px 40px 0 #d6d6d6;
    border: solid 1.2px #d6d6d6;
    background-color: #f0f0f0;
    width: 100%;
    max-width: 100%;
}

.nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#prevButton {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
}

#nextButton {
    background-color: #4CAF50;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    color: white;
}

#prevButton:hover {
    background-color: #3c883e;
    border: 1px solid #3c883e;
    color: white;
}

#nextButton:hover {
    background-color: #3c883e;
    border: 1px solid #3c883e;
    color: white;
}

@media (max-width: 625px) {
    .final-page-form-container{
        border:none;
        box-shadow: none;
        background-color: transparent;
        padding: 20px 0;
    }

    .final-page-form-container input {
        margin: 0;
        width: 100%;
    }

    .final-page-form-container button {
        margin: 10px 0 0 0;
        width: 100%;
        max-width: 100%;
    }
}

.final-page-form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.final-page-form-container input {
    height: 48px;
    border: solid 1.2px var(--color-bg-3, #b1b5be);
    color: #000000;
    background: #ebebeb;
    border-radius: 4px;
    font-weight: 500;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
}

.final-page-form-container a {
    text-decoration: none;
    color: #007bff;
}

.final-page-form-container a:hover {
    text-decoration: underline;
    color: gray;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.agreement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #007bff;
}

.agreement-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.agreement-checkbox label a {
    color: #007bff;
    text-decoration: underline;
}

.agreement-checkbox label a:hover {
    color: #0056b3;
}


.final-page-form-container button {
    margin-top: 10px;
    min-height: 50px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    font-weight: 400;
    color: white;
    background-color: #007bff;
    box-shadow: 0 3px 15px 0 rgba(0, 123, 255, 0.5);
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 24px;
    border: none;
    line-height: 1.3rem;
    cursor: pointer;
    box-sizing: border-box;
}

.final-page-form-container button:hover {
    background-color: #0063cc;
}

.final-page-container p {
    font-size: 18px;
    line-height: 26px;
}

@media screen and (max-width: 1200px) {
    .offer-container,
    .advantages-container {
        flex-direction: column;
        padding: 30px;
    }

    .advantages-container {
        flex-direction: column-reverse;
    }

    .offer-left,
    .offer-right,
    .advantages-left,
    .advantages-right {
        width: 100%;
    }

    .timer-labels {
        gap: 60px;
    }

    .reviews {
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        max-width: 500px;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .offer-left h2 {
        font-size: 24px;
    }

    .advantages-right h2 {
        font-size: 24px;
    }

    #timer {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .timer-labels {
        gap: 40px;
    }

    .reviews-section h1 {
        font-size: 24px;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 18px;
    }
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

a.text:active,
a.text:hover,
a.text {
    text-decoration: none;
    color: #fff;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.button.loading .loading-spinner {
    display: inline-block;
}

.button.loading span {
    opacity: 0.6;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option label {
    display: block;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border-color: #4caf50;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.payment-option label:hover {
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-block {
    padding: 20px 0;
}

.question-block h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 22px;
    text-align: center;
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#quizContainer {
    width: 100%;
    padding: 20px 0;
}


.final-page-text-container h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.final-page-text-container p {
    color: #666;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .payment-option label {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .question-block h3 {
        font-size: 18px;
    }
    
    .final-page-text-container h1 {
        font-size: 24px;
    }
    
    .final-page-form-container {
        padding: 20px;
    }
}
