:root {
    --main-color: #4a4aff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    text-align: center;
    width: 100%;
}

header {
    padding: 40px 0;
}

header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

header p {
    font-size: 22px;
    margin: 5px 0;
}

.main-content {
    margin-top: 20px;
    margin-bottom: 80px;
}

.blockContainer {
    background-color: #fff;
    max-width: 700px;
    margin: 30px auto;
    border-radius: 10px;
    color: #000;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.headerImage{
    width: 100%;
}
.details {
    padding: 20px;
    text-align: center;
}
.details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.details ul li {
    margin: 10px 0;
    font-size: 1.1rem;
}
.details ul li img {
    vertical-align: middle;
    margin-right: 10px;
}
.timer {
    margin-top: 20px;
    font-size: 2rem;
    color: var(--main-color);
}

.form-check {
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    padding: 10px 10px 10px 50px;
    margin-bottom: 10px;
}

.reviews-section {
    margin-top: -30px;
    text-align: center;
    padding: 50px 20px;
    width: 100%;
}
.reviews-section h2 {
    font-weight: 600;
    margin-bottom: 40px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.review-card {
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
}
.review-card img {
    max-width: 100%;
    aspect-ratio: 1/1;
    object-fit:cover;
    border-radius: 10px;
}
.review-text {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.5;
}
.review-author {
    margin-top: 10px;
    font-weight: bold;
}

.select-button {
    display: block;
    width: 100%;
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    padding: 20px 10px;
    cursor: pointer;
    border-radius: 50px;
    filter: brightness(100%);
    transition: filter 0.3s;
}

.select-button:hover {
    filter: brightness(85%);
}

footer {
    text-align: left;
    display: flex;
    justify-content: space-around;
    color: white;
    padding: 40px 20px;
}

footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

footer p {
    font-size: 14px;
    margin: 5px 0;
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}

footer a:hover {
    color: var(--main-color);
    opacity: 1;
}

.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.modal-header {
    border-bottom: none;
}

.modal-content {
    background-color: white;
    color: black;
}

.quiz-container {
    text-align: left;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.quiz-step {
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    border-radius: 5px;
    padding: 20px;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .quiz-step {
        width: 100%;
        margin: 0;
    }
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 10px 10px 10px 2px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: var(--main-color);
    outline: none;
}

.final-page {
    display: flex;
    justify-content: center;
    width: 100%;
}

.final-page-container {
    max-width: 768px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.final-page-text-container {
    padding: 1.5rem 1rem 1.6rem;
}

.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%;
}

@media (max-width: 625px) {
    .final-page-form-container{
        border:none;
        box-shadow: none;
        background-color: transparent;
    }

    .final-page-form-container input {
        margin: 6px 16px;
    }

    .final-page-form-container button {
        margin: 0 16px;
        max-width: calc(100% - 32px);
    }
    
}

.final-page-form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.final-page-form-container input {
    height: 48px;
    border: solid 1.2px var(--color-bg-3, #b1b5be);
    color: #000000;
    background: none;
    border-radius: 4px;
    font-weight: 500;
    padding: calc(.375em - 1px) calc(.625em - 1px);
    padding-left: 3.4rem;
}

.final-page-form-container a {
    text-decoration: none;
    color: var(--main-color);
}

.final-page-form-container a:hover {
    text-decoration: underline;
    color: gray;
}

.final-page-form-container .field[name='name'] {
    background: #ebebeb url(../images/name-icon.png) 22px center no-repeat;
}

.final-page-form-container .field[name='phone'] {
    background: #ebebeb url(../images/phone-icon.png.png) 20px center no-repeat;
}

.final-page-form-container button {
    margin-top: 10px;
    min-height: 50px;
    overflow: hidden;
    width: 100%;
    font-weight: 400;
    color: white;
    background-color: var(--main-color);
    box-shadow: 0 3px 15px 0 var(--main-color);
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 24px;
    border: none;
    line-height: 1.3rem;
    cursor: pointer;
}

.final-page-form-container button:hover {
    filter: brightness(85%);
}

.final-page-container p {
    font-size: 18px;
    line-height: 26px;
}
