body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: rgb(247, 244, 242);
    background-size: cover;
    min-height: 100vh;
}

.text {
    line-height: 22px;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    position: relative;
}

.form-container.content {
    margin-bottom: 12px;
    border-top: 10px solid #345846;
}

.form-container.content.result {
    border-top-color: rgb(206, 139, 102);
}

.form-container .seporator {
    border-top: 1px solid #ddd;
    width: calc(100% + 60px);
    margin: 10px 0px 10px -30px;
}

h2 {
    font-weight: 500;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    transition: opacity 0.3s, max-height 0.3s;
    overflow: hidden;
    max-height: 150px;
}

.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.red-text, .form-group label span {
    color: rgb(217, 48, 37);
    padding: 0 3px;
}

label {
    font-size: 16px;
    color: #555;
}

input[type='text'], input[type='tel'], input[type='email'], input[type='number'], select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
}

input[type='number'] {
    -moz-appearance: textfield;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.submit-btn {
    width: 100%;
    background-color: #345846;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #49735e;
}

.hint {
    font-size: 12px;
    color: #888;
}

/* Стиль для загрузчика */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.loader.active {
    display: flex;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #345846;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.counter {
    display: flex;
    align-items: center;
}

.counter input[type='number'] {
    width: 60px;
    font-size: 25px;
    font-weight: 600;
    border: unset;
    text-align: center;
    color: #555
}
.counter-btn {
    color: #555;
    padding: 5px 15px;
    border: none;
    font-size: 25px;
    cursor: pointer;
    margin: 0 5px;
    background-color: unset;
    border-radius: 4px;
}

.counter-btn:hover {
    background-color: #eee;
}

#children-fields-container .form-group {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    column-gap: 12px;
}
#children-fields-container .form-group > :first-child {
    flex-basis: 70%;
}

#children-fields-container .form-group > :nth-child(2) {
    flex-basis: 30%;
}

.policy {
    padding-top: 10px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.policy a {
    color: #345846;
    text-decoration: none;
}

.policy a:hover {
    text-decoration: none;
    color: #49735e;
}

.bottom-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.bottom-links a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    margin: auto;
    flex: 1;
}

.bottom-links a:hover {
    color: #b8f2e2;
}

.text-left {
    text-align: left;
}

.bottom-links a:only-child {
    width: auto;
}

#children-fields-container .labels-group, #children-fields-container.is-group .labels-one {
    display: none;
}
#children-fields-container.is-group .labels-group {
    display: flex;
}
.content .image {
    display: flex;
    margin: 0 auto;
    justify-self: flex-end;
}
.content .buttons {
    display: flex;
}
.content a {
    text-decoration: unset;
    text-align: center;
}
.top-20 {
    margin-top: 20px;
}
.requests {
    max-width: 900px;
    margin: 24px auto;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th, .requests-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.requests-table thead th {
    font-weight: 600;
    color: #444;
    background: #fafafa;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
}

.badge--new, .badge--waiting_payment {
    background: #fffbdf;
    color: #FFC107;
}

.badge--cancel {
    background: #ffdfdf;
    color: #ff0707;
}

.badge--paid, .badge--prepay {
    background: #e8f7ee;
    color: #157347;
}

.btn {
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    color: #4c4c4c;
    border: 1px solid #bec3be;
    display: block;
}
.btn:hover {
    background-color: #f4f8f4;
}

.btn-green {
    background-color: #345846;
    color: #fff;
}
.btn-green:hover {
    background-color: #49735e;
}

@media (max-width: 600px) {
    body {
        height: auto;
        padding: 20px;
    }

    .form-container {
        padding: 15px;
        width: 100%;
        max-width: none;
    }

    .form-container .seporator {
        width: calc(100% + 30px);
        margin-left: -15px;
    }

    h2, h1 {
        font-size: 1.2em;
    }

    input[type='text'], input[type='tel'], input[type='number'], select {
        padding: 8px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }
}