.background-photo {
    display: flex;
    width: 100%;
    flex: 1;
    background-image: url("/storage/Images/red-test.png");
    background-size: cover;
    background-position: center;
    height: 77vh;
    align-items: center;
    justify-content: center;
}
.main_container {
    background: none;
    align-items: center;
    justify-content: center;
}
.content {
    align-items: center;
    justify-content: center;
    grid-column: 4/10;
}

.modal {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    min-width: 200px;
    height: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
}

.modal h2 {
    margin-bottom: 15px;
}

/* .modal input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
} */

.modal button {
    width: 100%;
    padding: 10px;
    background: #b22222;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background: #8b0000;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
}
.text-switcher {
    max-width: 100%;
    height: fit-content;
    margin: 0 auto;
    padding: 20px;
}

.switcher-controls {
    display: flex;
    text-align: center;
    justify-content: center;
    gap: 2vw;
}
.switcher-btn {
    text-align: center;
    align-items: center;
    padding: 0.5vw 0.5vw;
    font-family: "Commissioner-SemiBold", sans-serif;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;

    transition: all 0.3s ease;
    color: black;
    border: 2px solid var(--border_gray);
}
.switcher-btn.active {
    background: var(--primary);
    border: none;
    color: white;
}
.switcher-btn.active #text2 {
    background: var(--primary);
    border: none;
    color: white;
}

.text-content {
    position: relative;
    min-height: 100px;
}

.text-block {
    display: none;
    flex-direction: column;
    opacity: 1;
    position: static;
    top: 0;
    left: 0;
    width: 100%;
}
.text-block.active {
    display: flex;
    font-family: "Commissioner-SemiBold", sans-serif;
    font-size: 20px;
    font-weight: 500;
}
.text-block.active input {
    font-family: "Commissioner-SemiBold", sans-serif;
    font-size: 20px;
    font-weight: 500;
}
.text-block.active button {
    font-family: "Commissioner-SemiBold", sans-serif;
    font-size: 20px;
    font-weight: 500;
}
.modal-overlay.active .modal {
    transform: scale(1);
}
/* Убираем жёлтый фон при автозаполнении */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f7f7f7 inset; /* твой цвет фона */
    -webkit-text-fill-color: #000; /* цвет текста */
    transition: background-color 5000s ease-in-out 0s; /* костыль, чтобы Chrome не возвращал жёлтый */
}
/* Chrome, Safari, Edge */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important; /* или ваш цвет текста */
}

/* Firefox */
input:autofill {
    filter: none;
    background-color: white !important;
    color: #000 !important;
}

@media screen and (max-width: 480px) {
    .content {
        align-items: center;
        justify-content: center;
        grid-column: 1/13;
    }
    .switcher-btn {
        padding: 1vh 2vw;
        font-size: 16px;
    }
    .text-block.active {
        font-size: 16px;
    }
    .text-block.active input {
        font-size: 16px;
    }
    .text-block.active button {
        font-size: 18px;
    }
}
