* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    background: url("../assets/images/background.jpg") center center/cover no-repeat;
    position: relative;
    color: #2d2d2d;
}

/* Затемнение фона */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
}

.form-card {
    width: 100%;
    max-width: 520px;

    padding: 45px 35px;

    background: rgba(255, 255, 255, 0.16);

    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 32px;

    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    animation: fadeIn 0.7s ease;
}

.logo {
    display: block;

    width: 200px;

    margin: 0 auto 0px;

    filter:
        drop-shadow(0 6px 18px rgba(0, 0, 0, 0.2));
}

h1 {
    text-align: center;
    font-family: "Bodoni Moda", serif;

    font-size: clamp(35px, 3.2vw, 48px);

    line-height: 0.9;

    font-weight: 500;

    letter-spacing: 0.5px;

    color: #03331a;

    margin-bottom: 10px;


}

.subtitle {
    text-align: center;

    color: #03331a;

    font-family: "Inter", sans-serif;

    font-size: 15px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 13px;
}

.input-group {
    position: relative;

    margin-bottom: 18px;
}

.field-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    z-index: 2;

    opacity: 1;

    pointer-events: none;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;

    font-family: 'Inter', sans-serif;

    font-size: 13px;

    font-weight: 400;


    padding: 16px 18px 16px 50px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.22);

    color: rgba(255, 255, 255, 0.95);


    transition: all 0.25s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;

    border-color: rgba(214, 183, 120, 0.7);

    box-shadow:
        0 0 0 4px rgba(214, 183, 120, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.textarea-group .field-icon {
    top: 22px;

    transform: none;
}

.consent-field {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;

    margin: -2px 0 16px;
    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    cursor: pointer;

    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.consent-field:focus-within {
    border-color: rgba(214, 183, 120, 0.7);

    box-shadow:
        0 0 0 4px rgba(214, 183, 120, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.consent-field input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.consent-box {
    position: relative;
    flex-shrink: 0;

    width: 22px;
    height: 22px;

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(216, 185, 121, 0.70);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition: all 0.25s ease;
}

.consent-box::after {
    content: "";

    position: absolute;
    left: 7px;
    top: 3px;

    width: 6px;
    height: 11px;

    border: solid #ffffff;
    border-width: 0 2px 2px 0;

    opacity: 0;

    transform: rotate(45deg) scale(0.7);

    transition: all 0.2s ease;
}

.consent-field input:checked + .consent-box {
    background: linear-gradient(
        135deg,
        #a5710a,
        #d8b979
    );

    border-color: rgba(216, 185, 121, 0.95);
}

.consent-field input:checked + .consent-box::after {
    opacity: 1;

    transform: rotate(45deg) scale(1);
}

.consent-field input:focus-visible + .consent-box {
    box-shadow:
        0 0 0 4px rgba(214, 183, 120, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.consent-text {
    color: rgba(255, 255, 255, 0.78);

    font-family: 'Inter', sans-serif;

    font-size: 11px;
    line-height: 1.55;
}

.consent-text a {
    color: #f0cf8a;

    text-decoration: none;

    border-bottom: 1px solid rgba(240, 207, 138, 0.45);

    transition: color 0.2s ease, border-color 0.2s ease;
}

.consent-text a:hover {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.65);
}

.legal-page {
    min-height: 100vh;
}

.legal-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 960px;

    margin: 0 auto;
    padding: 40px 20px;
}

.legal-card {
    padding: 42px;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;

    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    animation: fadeIn 0.7s ease;
}

.legal-logo {
    display: block;

    width: 150px;

    margin: 0 auto 16px;

    filter:
        drop-shadow(0 6px 18px rgba(0, 0, 0, 0.2));
}

.legal-back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;

    color: #f0cf8a;

    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;

    border-bottom: 1px solid rgba(240, 207, 138, 0.45);
}

.legal-back:hover {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.65);
}

.legal-kicker {
    text-align: center;

    color: #a5710a;

    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;

    margin-bottom: 10px;
}

.legal-card h1 {
    max-width: 720px;

    margin: 0 auto 24px;

    font-size: clamp(34px, 4vw, 50px);
    line-height: 1;
}

.legal-card h2 {
    margin: 28px 0 10px;

    color: #03331a;

    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.legal-card p {
    color: rgba(255, 255, 255, 0.86);

    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;

    margin-bottom: 12px;
}

.legal-card strong {
    color: #ffffff;

    font-weight: 600;
}

.submit-btn {
    width: 100%;

    margin-top: 10px;

    padding: 18px;

    border: none;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #a5710a,
        #d8b979
    );

    color: white;

    font-size: 13px;
    font-weight: 600;

    font-family: 'Montserrat', sans-serif;

    cursor: pointer;

    transition: all 0.25s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(198, 161, 91, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Телефоны */

@media (max-width: 576px) {

    .form-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .logo {
        width: 140px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .input-group input,
    .input-group textarea {
        padding: 15px 16px 15px 48px;
    }
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Inter', sans-serif;

    font-weight: 400;
}

.partners {
    text-align: center;

    color: #a5710a;

    font-family: "Cormorant SemiBold";

    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-top: 13px;
    margin-bottom: 5px;
}

.stars-divider {
    display: block;

    width: 140px;

    margin: 0 auto 2px;
    

    opacity: 0.55;
}

.bottom-stars {
    margin-top: 5px;
    margin-bottom: -10px;
}

.quote-block {
    text-align: center;
}

.quote-icon {
    width: 25px;
    height: 25px;

    opacity: 0.9;
    margin-top: 15px;
    margin-bottom: -6px;

    filter:
        drop-shadow(0 2px 10px rgba(255, 255, 255, 0.15));
}

.quote-text {
    color: rgba(149, 147, 147, 0.509);

    font-family: 'Inter', sans-serif;

    font-size: 15px;
    font-style: italic;
    line-height: 1.6;

    max-width: 260px;

    margin: 0 auto 2px;
}

.custom-select {
    position: relative;
}

.select-selected {
    width: 100%;

    padding: 16px 50px 16px 50px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.22);

    color: rgba(255, 255, 255, 0.58);

    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;

    cursor: pointer;

    transition: all 0.25s ease;
}

.select-selected.active {
    border-color: rgba(214, 183, 120, 0.7);

    box-shadow:
        0 0 0 4px rgba(214, 183, 120, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.select-selected.selected {
    color: rgba(255, 255, 255, 0.95);
}

.select-arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    flex-shrink: 0;

    opacity: 0.9;

    transition: transform 0.25s ease;

}

.select-selected {
    display: flex;
    position: relative;

    align-items: center;
    justify-content: space-between;
}

.custom-select.open .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.select-items {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    overflow: hidden;

    border-radius: 18px;

    background: #737168;


    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 999;
}

.select-items.show {
    display: block;
}

.select-items div {
    padding: 16px 20px;

    color: rgba(255, 255, 255, 0.85);

    font-family: 'Inter', sans-serif;
    font-size: 13px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.select-items div:hover {
    background: rgba(184, 138, 46, 0.12);
}

.datetime-modal {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    z-index: 9999;
}

.datetime-modal.show {
    display: flex;
}

.datetime-card {
    width: 100%;
    max-width: 500px;

    padding: 30px;

    background: #737168;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 28px;

    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.datetime-card h2 {
    text-align: center;

    font-family: "Bodoni Moda", serif;

    font-size: 28px;

    line-height: 0.9;

    font-weight: 500;

    letter-spacing: 0.5px;

    color: #03331a;

    margin-bottom: 25px;
}

.datetime-placeholder {
    text-align: center;

    color: rgba(255, 255, 255, 0.75);

    font-family: 'Inter', sans-serif;

    margin: 50px 0;
}

.datetime-actions {
    display: flex;

    justify-content: space-between;

    gap: 12px;
}

.datetime-btn {
    flex: 1;

    padding: 16px;

    border: none;

    border-radius: 18px;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.15);

    color: white;
}

.confirm-btn {
    background: linear-gradient(
        135deg,
        #a5710a,
        #d8b979
    );

    color: white;
}

.datetime-btn:hover {
    transform: translateY(-2px);
}

.calendar-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    min-height: 42px;
}

.calendar-title {
    font-size: 22px;
    letter-spacing: 0.5px;
    opacity: 0.75;

    color: rgba(255, 255, 255, 0.965);

    font-family: 'Inter', sans-serif;

    text-align: center;
}

.calendar-nav {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 14px;

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(20px);

    color: #a5710a;

    font-size: 22px;

    cursor: pointer;

    transition: .2s;

    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);
}

.calendar-nav:hover {
    background: rgba(184,138,46,.15);
}

.calendar-weekdays,
.calendar-days {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 12px;
}

.calendar-weekdays span {
    text-align: center;

    color: rgba(255,255,255,.7);

    font-family: 'Inter', sans-serif;

    font-size: 12px;
}

.calendar-day {
    aspect-ratio: 1;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,.9);

    cursor: pointer;

    transition: .2s;

    font-family: 'Inter', sans-serif;
}

.calendar-day:hover {
    background: rgba(184,138,46,.12);
}

.calendar-day.selected {
    background: linear-gradient(
        135deg,
        #a5710a,
        #d8b979
    );

    color: white;
}

.calendar-day.disabled {
    opacity: .25;

    cursor: not-allowed;
}

.time-picker {
    margin-top: 24px;
    margin-bottom: 32px;
}

.time-picker h3 {
    text-align: center;

    font-family: "Bodoni Moda", serif;

    font-size: 20px;

    line-height: 0.9;

    font-weight: 500;

    letter-spacing: 0.5px;

    color: #03331a;

    margin-bottom: 20px;
}

.time-selects {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.time-group {
    position: relative;
    flex: 1;
}

.time-group label {
    display: block;

    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.75;

    width: 90px;

    margin-bottom: 10px;

    color: rgba(255,255,255,.7);


    font-family: 'Inter', sans-serif;

    text-align: center;
}

.time-group:first-child label {
    margin-left: auto;
}

.time-group:last-child label {
    margin-right: auto;
}

.time-value {
    padding: 14px 16px;

    border-radius: 18px;

    text-align: center;

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(20px);

    color: rgba(255,255,255,.95);

    cursor: pointer;

    font-family: 'Inter', sans-serif;

    transition: .2s;

    width: 90px;
}

.time-group:first-child .time-value,
.time-group:first-child .time-options {
    margin-left: auto;
}

.time-group:last-child .time-value,
.time-group:last-child .time-options {
    margin-right: auto;
}

.time-value:hover {
    background: rgba(184,138,46,.12);
}

.time-options {
    display: none;

    position: absolute;

    left: 0;
    right: 0;

    bottom: calc(100% + 8px);

    z-index: 50;

    overflow: hidden;

    border-radius: 18px;

    background: rgba(255,255,255,.16);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    border: 1px solid rgba(255,255,255,.22);

    box-shadow:
        0 12px 30px rgba(0,0,0,.15);

}

.time-options.show {
    display: block;
}

.time-options div {
    padding: 12px;

    text-align: center;

    color: rgba(255,255,255,.9);

    cursor: pointer;

    transition: .2s;
}

.time-options div:hover {
    background: rgba(184,138,46,.12);
}

.time-separator {
    align-self: center;

    margin-top: 22px;

    color: #a5710a;

    font-size: 22px;
}

@media (max-width: 576px) {

    .time-selects {

        flex-direction: row;

        justify-content: center;

        gap: 15px;
    }

    .time-separator {

        display: block;
    }

}

.feedback-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.35);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    z-index: 10000;
}

.feedback-modal.show {
    display: flex;
}

.feedback-card {
    width: 100%;
    max-width: 380px;

    padding: 35px 30px;

    text-align: center;

    background: rgba(255,255,255,.16);

    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 28px;

    box-shadow:
        0 8px 32px rgba(31,38,135,.12),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.feedback-icon {
    display: block;

    width: 72px;
    height: 72px;

    margin: 0 auto 20px;
}

.feedback-card h2 {
    color: #a5710a;

    font-family: "Cormorant SemiBold";

    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 12px;
}

.feedback-card p {
    color: rgba(255,255,255,.85);

    font-family: "Inter", sans-serif;

    font-size: 15px;
    line-height: 1.5;

    margin-bottom: 25px;
}

.feedback-btn {
    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;

    color: white;

    background: linear-gradient(
        135deg,
        #a5710a,
        #d8b979
    );

    transition: .25s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 576px) {

    .datetime-modal {

        background: rgba(0, 0, 0, 0.8);
    }

}

@media (max-width: 576px) {

    .form-card {

        transform: scale(0.9);

        transform-origin: top center;
    }

}

@media (max-width: 576px) {

    .datetime-card h2 {
        color: #03331a;
        font-size: 24px;
    }

    .time-picker h3 {
        color: #03331a;
        font-size: 17px;

    }

    .consent-field {
        grid-template-columns: 20px 1fr;
        gap: 10px;

        padding: 12px 13px;
        border-radius: 16px;
    }

    .consent-box {
        width: 20px;
        height: 20px;
        border-radius: 6px;
    }

    .consent-box::after {
        left: 6px;
        top: 3px;
    }

    .consent-text {
        font-size: 10.5px;
    }

    .legal-container {
        padding: 24px 16px;
    }

    .legal-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .legal-logo {
        width: 120px;
    }

    .legal-card h1 {
        font-size: 27px;
    }

    .legal-card p {
        font-size: 14px;
    }

}
