:root {
    --bg-color-primary: #EFEBE2;
    --bg-color-secondary: #EFEBE2;

    --font-color-primary: #DADED8;
    --font-color-secondary: #A18F63;
    --font-color-tertiary: #4E4210;
    --font-color-white: rgba(234, 230, 219, 1);

    --cd-bg-primary: #B58676;

    --colorpalette-1: #667538;
    --colorpalette-2: #6E7C51;
    --colorpalette-3: #A18F63;
    --colorpalette-4: #D6BB9B;
    --colorpalette-5: #B58676;
    --colorpalette-6: #551a25;
    --colorpalette-7: #2c3424;

    --font-size-v-big: 108px;
    --font-size-big: 84px;
    --font-size-header: 32px;
    --font-size-normal: 24px;

    --title: #4E4210;
    --body: #A18F63;
    --pink_accent: rgb(180, 133, 118);
}

@font-face {
    font-family: "Safira";
    src: url(./fonts/safira_march/Safira\ March\ Personal\ Use\ Only.ttf);
}

* {
    font-family: Safira;
}

html,
body {
    background-color: var(--bg-color-primary);
    max-width: 100%;
    overflow-x: hidden;
}

/* testing */
/* section {
    border: 1px solid green;
} */

/* Colors */
.color-primary {
    color: var(--font-color-primary);
}

.color-secondary {
    color: var(--font-color-secondary);
}

.color-tertiary {
    color: var(--font-color-tertiary);
}

.bg-primary {
    background-color: var(--bg-color-primary);
}
.bg-secondary {
    background-color: var(--bg-color-secondary);
}

/* ******** */
/* sections */
section.landing {
    /* bg image is 1080x1920 */
    min-height: 100vh;
    max-height: 100vh;
    background-image: url(./img/picture-header.jpg);
    background-clip: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;

    font-size: var(--font-size-big);
    font-weight: bold;

    padding: 24px;

    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;

    place-items: center;
}

section.landing .names {
    grid-column: 1 / 2;
    grid-row: 1 / 2;

    font-size: var(--font-size-v-big);
}

.names .left {
    /* display: inline-block; */
    z-index: 666;
    position: relative;
        top: 0;
}

.names .right {
    /* display: inline-block; */
    position: relative;
        top: -40px;
        left: -10px;
}

section.landing .date {
    grid-column: 3 / 3;
    grid-row: 3 / 3;

    word-spacing: 100vw;
    text-align: center;
    line-height: 60px;
}

@media (min-width: 440px) {
  section.landing {
    min-height: 100vh;
    max-height: 1080px; /* prevents the image from stretching too tall */
    max-width: 720px;
    background-position: center;
    background-size: cover;

    margin: auto;
  }
}

/* ********* */
/* SEPARATOR */
section.separator {
    margin: auto;
    width: 45%;

    border: 1px solid var(--font-color-tertiary);
}

/* COUNTDOWN */
section.countdown {
    min-height: 100vh;
    text-align: center;
    align-items: center;

    display: grid;
}

section.countdown>.invite {
    font-size: var(--font-size-header);
    color: var(--title);

    line-height: 26px;
    padding: 0 20px 0 20px;
}

section.countdown>.cd-text {
    color: var(--font-color-secondary);
    font-weight: normal;
    font-size: var(--font-size-normal);
    padding: 0 20px 0 20px;
    max-width: 380px;
    place-self: center;
}

section.countdown>.cd {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 440px;
    justify-self: center;
    gap: 12px;

    word-spacing: 100vw;
    line-height: 24px;
}

section.countdown>.cd>* {
    background-color: var(--cd-bg-primary);

    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;

    justify-self: center;
    width: 100px;
    min-height: 100px;
    border-radius: 50px;

    font-size: var(--font-size-normal);

    color: var(--font-color-white);
    font-weight: bold;

    & span.one {
        align-self: end;
    }

    & span.two {
        align-self: start;
    }
}

section.countdown>footer {
    font-size: var(--font-size-header);
    color: var(--title);
    text-align: center;
}

section.countdown>footer svg {
    width: 48px;
    height: auto;
    margin: auto;
}

/*********** */

/* ******** */
/* Ceremony */
.ceremony-container {
    min-height: 100vh;
    text-align: center;

    display: grid;
    align-items: stretch;
}

.ceremony-container>header {
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.ceremony-container>header>.logo {
    background-image: url(./img/ceremony-logo.png);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
}

.ceremony-container>header>.title {
    align-self: center;
    font-weight: bold;
    font-size: var(--font-size-header);
    color: var(--title);
}

.ceremony-container>.location {
    display: grid;
    align-items: center;
    align-content: space-evenly;
}

.ceremony-container>.location>.place {
    align-self: end;
    color: var(--body);
}

.ceremony-container>.location>.date-container {
    display: grid;
    grid-template-columns: 4fr 1fr 4fr;
    align-items: center;
    justify-content: center;
}

.ceremony-container>.location>.date-container>.date {
    width: 120px;

    justify-self: end;
    font-size: var(--font-size-header);
    font-weight: bold;

    display: grid;

    padding: 20px;

    & * {
        /* border: 1px solid orange; */
        align-self: center;
        line-height: 24px;
    }

    & .month {
        color: var(--font-color-secondary);
        z-index: 666;
    }
}

.ceremony-container>.location>.date-container>.time {
    width: 120px;
    font-size: 28px;
    font-weight: bold;
    justify-self: start;
}

.ceremony-container>.location>.date-container>.separator {
    height: 90%;
    width: 2px;
    border: 1px solid var(--font-color-secondary);
    justify-self: center;
    align-self: center;
}

.ceremony-container>.location>.place,
.ceremony-container>footer {
    font-size: var(--font-size-normal);
    padding: 0 24px 0 24px;
    align-self: center;
    color: var(--body);
}

/* ******** */
/* pictures */
/* pic one (1696 × 2945) */
/* pic two (2400 × 1600) */
section.picture img {
    max-height: 90vh;

    display: grid;
    justify-items: center;
}

@media (min-width: 440px) {
    section.picture {
        padding: 5vh 0;
        display: grid;
        place-items: center;

        /* border: 1px solid orange; */
    }

    section.picture .img-portrait {
        /* prevents the image from stretching too tall */
        max-width: 720px;
        width: 700px;

        display: grid;
        justify-items: center;

    }

    section.picture .img-landscape {
        /* prevents the image from stretching too tall */
        max-width: 1080px;
    }

    section.picture img {
        border-radius: 24px;
        box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
    }
}

/* ***** */
/* Party */
.party {
    min-height: 100vh;
    text-align: center;

    display: grid;
    align-items: stretch;

    padding-bottom: 24px;
}

.party>header {
    align-self: center;
    font-size: var(--font-size-header);
    line-height: 26px;
    color: var(--font-color-secondary);

    & span {
        color: var(--font-color-tertiary);
    }
}

.party>.location {
    display: grid;
    align-items: center;
    align-content: space-evenly;
}

.party>.location>.date-container {
    display: grid;
    grid-template-columns: 4fr 1fr 4fr;
    align-items: center;
    justify-content: center;
    color: var(--font-color-tertiary)
}

.party>.location>.date-container>.date {
    width: 120px;

    justify-self: end;
    font-size: 28px;
    font-weight: bold;

    display: grid;

    padding: 20px;
    margin-bottom: -10px;
    margin-top: 10px;

    & * {
        align-self: center;
        line-height: 20px;
    }

    & .month {
        color: var(--font-color-secondary);
        z-index: 666;
    }
}

.party>.location>.date-container>.time {
    width: 120px;

    padding-top: 20px;
    font-size: 24px;
    font-weight: bold;
    justify-self: start;
}

.party>.location>.date-container>.separator {
    height: 90%;
    width: 2px;
    border: 1px solid var(--font-color-secondary);
    justify-self: center;
    align-self: center;
}

.party>.location>.place {
    color: var(--font-color-secondary);
    font-size: var(--font-size-normal);
    padding: 0 24px 0 24px;
    align-self: center;
}

.party>footer {
    padding: 0 24px 0 24px;
    background-image: url(./img/party.png);
    background-repeat: no-repeat;
    background-position: left 0;
    background-size: contain;

    width: 450px;
    max-width: 100vw;

    justify-self: center;

    &>p {
        color: var(--font-color-secondary);
        font-size: var(--font-size-normal);
        display: block;
        text-align: right;
        width: fit-content;
        margin: auto;
        float: right;
        margin-top: 48px;
        margin-bottom: -48px;
    }
}

/* *** */
/* Map */
.map {
    min-height: 100vh;
    text-align: center;

    display: grid;
    align-items: stretch;
}

.map>header {
    align-self: center;
    font-size: var(--font-size-normal);

    & .title {
        color: var(--title);
        font-size: 36px;
        line-height: 26px;
    }
}

.map .subtitle {
    padding: 24px;
    color: var(--body);
}

.map img {
    border-radius: 24px;
    max-width: 80vw;
    margin: auto;
}

@media (min-width: 440px) {
    .map img {
        max-width: 660px;
    }
}

.map em {
    color: var(--pink_accent);
    font-weight: bold;
}

.map>footer {
    padding: 0 24px 0 24px;
    font-size: var(--font-size-normal);
    color: var(--body);
}

/* ******** */
/* Timeline */
section.timeline {
    margin-top: 96px;
    margin-bottom: 96px;
    position: relative;
    padding: 24px 0;
}

/* The actual timeline (the vertical ruler) */
section.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color:var(--font-color-tertiary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -4px;
}

/* Container around content */
.container {
    padding: 8px 15px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.container.title {
    margin-top: 36px;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: -2px;
    background-color: var(--font-color-tertiary);

    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.title::after {
    width: 12px;
    height: 12px;
    right: -3px;
}

/* Place the container to the left */
.left {
    left: 0;
}

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

/* Place the container to the right */
.right {
    left: 50%;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -8px;
}
.right.title::after {
    left: -9px;
}

section.timeline h2 {
    font-size: var(--font-size-header);
    font-weight: normal;
    /* padding-bottom: 8px; */
}

section.timeline h3 {
    font-weight: normal;
}

section.timeline .date {
    color: var(--font-color-secondary);
}

.content {
    line-height: 18px;
}

/* ****** */
/* Hotels */
section.hotels {
    min-height: 100vh;

    text-align: center;
    
    display: grid;
    place-items: center;

    font-size: 18px;
}

section.hotels header {
    font-size: var(--font-size-header);
    color: var(--title);
}

@media (min-width: 440px) {
    section.hotels .hotel-group {
        max-width: 40vw;
    }
}
section.hotels .hotel-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

section.hotels .hotel-details .info {
    place-self: center;
}

section.hotels .hotel-details .info h3 {
    color: var(--font-color-secondary);
    font-size: var(--font-size-normal);
}

section.hotels .hotel-details .info .price {
    font-style: italic;
}

section.hotels .discount {
    max-width: 300px;
    color: var(--body);
}
section.hotels .discount a {
    text-decoration: underline;
    font-weight: bold;
    color: var(--font-color-tertiary);
}

/* ********** */
/* Dress code */
.dresscode {
    min-height: 100vh;
    text-align: center;

    display: grid;
    align-items: center;

    grid-template-rows: 1fr 1.5fr 1fr 1fr;
    color: var(--body);
    font-size: 18px;
}

.dresscode>header {
    align-self: center;
    max-width: 100vw;

    & .title {
        color: var(--title);
        font-size: var(--font-size-header);
    }

    & .subtitle {
        padding: 0 24px 0 24px;
        justify-self: center;
        max-width: 440px;
    }
}

.dresscode>.swatches {
    display: grid;
    gap: 10px;
    max-width: 440px;
    place-self: center;

    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;

    &>.swatch-1 {
        background-color: var(--colorpalette-1);
    }

    &>.swatch-2 {
        background-color: var(--colorpalette-2);
    }

    &>.swatch-3 {
        background-color: var(--colorpalette-3);
    }

    &>.swatch-4 {
        background-color: var(--colorpalette-4);
    }

    &>.swatch-5 {
        background-color: var(--colorpalette-5);
    }

    &>.swatch-6 {
        background-color: var(--colorpalette-6);
    }

    &>.swatch-7 {
        background-color: var(--colorpalette-7);
        grid-column-start: 2;
    }
}

.dresscode>.swatches div {
    height: 60px;
    width: 60px;
    border-radius: 30px;
}

.dresscode>footer, 
.prefooter {
    padding: 0 24px 0 24px;
    font-size: 18px;
}

/* ******* */
/* FORM */
.rsvp-container {
    min-height: 100vh;
    background-color: var(--bg-color-primary);
    text-align: center;

    display: grid;
}

.rsvp-container>header {
    display: grid;
    min-height: 20vh;
}

.rsvp-container>header>.title {
    align-self: center;
    font-weight: bold;
    font-size: 36px;
    color: var(--font-color-secondary);
}

.rsvp-container>.rsvp-form {
    display: grid;
    align-items: start;
    justify-content: center;
    gap: 32px;
    padding: 0 24px 64px;
}

.rsvp-container .rsvp-form {
    width: 100%;
    max-width: 880px;
    /* keeps the form from getting too wide on mid screens */
    margin: 0 auto;
}

.rsvp-container .form-wrapper,
.rsvp-container .form-wrapper>.form-container,
.rsvp-container .rsvp-form fieldset {
    min-width: 0;
    /* critical for grid items so long labels/inputs can shrink */
}

.rsvp-container .rsvp-form input,
.rsvp-container .rsvp-form label,
.rsvp-container .rsvp-form .fieldset-hint,
.rsvp-container .rsvp-form legend {
    max-width: 100%;
    overflow-wrap: anywhere;
    /* long words won’t push layout wider */
}

.rsvp-container>.rsvp-form .form-wrapper {
    width: 100%;
    padding: 32px 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(234, 230, 219, 0.9));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 32px 64px -40px rgba(38, 34, 25, 0.65);
    backdrop-filter: blur(6px);
    font-size: 18px;
}

.rsvp-container>.rsvp-form .form-lede {
    margin: 0 0 24px;
    color: var(--font-color-tertiary);
    font-size: 20px;
    line-height: 1.5;
}

.rsvp-container>.rsvp-form>.form-wrapper>.form-container {
    display: grid;
    gap: 32px;
}

.rsvp-container>.rsvp-form.is-collapsed [data-attendance-section] {
    display: none;
}

.rsvp-container>.rsvp-form fieldset {
    border: none;
    display: grid;
    gap: 16px;
    text-align: left;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 24px 48px -36px rgba(38, 34, 25, 0.55);
}

.rsvp-container>.rsvp-form fieldset.guest-info {
    gap: 24px;
}

.rsvp-container>.rsvp-form legend {
    font-weight: bold;
    width: 100%;
    color: var(--font-color-secondary);
    font-size: 22px;
}

.rsvp-container>.rsvp-form .fieldset-hint {
    margin: -12px 0 8px;
    color: var(--font-color-tertiary);
    font-size: 16px;
}

.rsvp-container>.rsvp-form .optional {
    font-weight: normal;
    font-size: 14px;
    color: var(--font-color-tertiary);
}

.rsvp-container>.rsvp-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--font-color-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.rsvp-container>.rsvp-form label.label-guest {
    padding: 0;
}

.rsvp-container>.rsvp-form label.checkcontrol,
.rsvp-container>.rsvp-form label.radiocontrol {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background-color: rgba(188, 184, 147, 0.25);
    color: var(--font-color-secondary);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rsvp-container>.rsvp-form input {
    font-family: "Safira", serif;
    color: var(--font-color-secondary);
    border: 1px solid rgba(188, 184, 147, 0.6);
    border-radius: 12px;
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-container>.rsvp-form input:focus-visible {
    outline: none;
    border-color: var(--cd-bg-primary);
    box-shadow: 0 0 0 4px rgba(165, 114, 100, 0.2);
}

.rsvp-container>.rsvp-form input[type="radio"],
.rsvp-container>.rsvp-form input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rsvp-container>.rsvp-form input[type="radio"]+label,
.rsvp-container>.rsvp-form input[type="checkbox"]+label {
    cursor: pointer;
}

input[type="checkbox"]:checked+label.checkcontrol,
input[type="radio"]:checked+label.radiocontrol {
    background-color: var(--cd-bg-primary);
    color: var(--font-color-white);
    box-shadow: 0 10px 24px -16px rgba(38, 34, 25, 0.75);
    transform: translateY(-2px);
}

input[type="checkbox"]:focus-visible+label.checkcontrol,
input[type="radio"]:focus-visible+label.radiocontrol {
    box-shadow: 0 0 0 4px rgba(165, 114, 100, 0.25);
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.button-container button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    height: 62px;
    border: none;
    border-radius: 16px;
    background-color: var(--font-color-secondary);
    color: var(--font-color-white);
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -24px rgba(38, 34, 25, 0.7);
}

.button-container button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(165, 114, 100, 0.3);
}

.button-container button svg {
    flex-shrink: 0;
}

.rsvp-container>.rsvp-form button[type="submit"] {
    background-color: var(--colorpalette-2);
}

svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

@media (min-width: 600px) {
    .rsvp-container>.rsvp-form fieldset {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .rsvp-container>.rsvp-form fieldset.guest-info {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        align-items: end;
    }

    .rsvp-container>.rsvp-form legend,
    .rsvp-container>.rsvp-form .fieldset-hint {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .rsvp-container>.rsvp-form .form-wrapper {
        padding: 48px 56px;
    }

    .rsvp-container>.rsvp-form .form-lede {
        font-size: 22px;
    }

    .button-container button {
        padding: 0 36px;
    }
}

footer {
    padding: 24px;
}
/* ==============================
   Form validation & status styles
   ============================== */

/* Inline error message below the field */
.rsvp-container .field-error {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.2;
    color: #b00020; /* accessible error red */
}

/* Highlight invalid inputs */
.rsvp-container .rsvp-form input[aria-invalid="true"] {
    border-color: #b00020;
    box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.15);
}

/* Global form status message (top/bottom of form) */
.rsvp-container .form-status {
    display: block;
    text-align: center;
    min-height: 1.25em; /* reserve space to avoid layout shift */
    margin: 8px 0 0;
    font-size: 15px;
}
.rsvp-container .form-status[data-type="success"] {
    color: var(--colorpalette-1); /* green-ish */
}
.rsvp-container .form-status[data-type="error"] {
    color: #b00020;
}
.rsvp-container .form-status[data-type="info"] {
    color: var(--font-color-tertiary);
}

/* Disabled submit state */
.rsvp-container .button-container button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* ==============================
   Language selector FAB + modal
   ============================== */
.lang-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--font-color-secondary);
    color: var(--font-color-white);
    box-shadow: 0 18px 35px -20px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    z-index: 1500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lang-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -24px rgba(0, 0, 0, 0.85);
}

.lang-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(165, 114, 100, 0.35);
}

.lang-fab svg {
    width: 26px;
    height: 26px;
}

.lang-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1490;
}

.lang-modal-backdrop[hidden] {
    display: none;
}

.lang-modal {
    position: relative;
    max-width: 360px;
    width: calc(100% - 48px);
    padding: 24px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.8);
    text-align: center;
    color: var(--font-color-tertiary);
}

.lang-modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--font-color-secondary);
}

.lang-modal-subtitle {
    margin: 0 0 16px;
    font-size: 14px;
}

.lang-modal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.lang-modal-options button {
    min-width: 100px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background-color: rgba(188, 184, 147, 0.25);
    color: var(--font-color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-modal-options button:hover {
    background-color: var(--font-color-secondary);
    color: var(--font-color-white);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.75);
}

.lang-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--font-color-tertiary);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.lang-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.lang-modal-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 114, 100, 0.4);
}
