:root {
    --color1: #f0dffa;
    --color2: #e8ecf9;
    --color3: #eef4f9;
    --color4: #eae9f2;
    --color5: #f5e0f2;
    --color6: #fad7e4;

    --text: #292929;
}

* {
    box-sizing: border-box;
}

body {
    color: var(--text);
}

h1,
h2 {
    font-family: "Luxurious_Script";
    font-weight: 300;
}

h2 {
    font-size: clamp(2.4rem, 3vw, 3rem);
    margin-top: 2rem;
}

section {
    padding: 4rem;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    background: var(--color4);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
section:nth-of-type(odd) {
    background-color: var(--color7);
}


#hero {
    height: calc(100vh - var(--header-height) - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-bottom: var(--header-height);
}
.hero-content {
    display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	position: absolute;
}
.hero-content h1,
.hero-content span {
    font-size: clamp(3rem, 10vw, 5rem);
    color: #737373;
    font-family: 'Luxurious_Script';
}

.location {
    letter-spacing: .4em;
    font-size: .8rem;
}

h1 {
    font-size: 8rem;
    margin: 0;
}

h1 span {
    color: #999;
    margin: 0 1rem;
}

h3 {
    font-family: "Cormorant_Garamond";
    font-size: 1.4rem;
    margin: 0;
    color: #646a7f;
}

.info-grid h3 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
}

.clickable-location {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: underline;
}

article p {
    text-align: center;
    font-family: Ovo;
    text-transform: uppercase;
    margin: 0;
}
#gallery-trigger {
    text-align: center;
    font-family: Ovo;
    margin: 0;
    text-decoration: underline;
    color: black;
    margin: 0 4px;
    font-weight: bold;
    cursor: pointer;
}

.date {
    letter-spacing: .3em;
}

.info-grid,
.cards,
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    padding: 60px 0;
}
.gallery {
    grid-template-columns: 1fr 1fr 1fr;
}
.info-grid {
    grid-template-columns: 1fr 1fr;
}

article,
.cards div,
.gallery div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cards p {
    text-align: center;
}

.timeline div {
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline div:last-child {
    border-bottom: none;
}

.thin-span {
    color: #6a6a6a;
    font-weight: 300;
    font-family: system-ui;
    margin: 0;
    line-height: 1.6;
}

.timeline p {
    color: #6a6a6a;
    font-weight: 300;
    font-family: system-ui;
    margin: 0;
    line-height: 1.4;
}

.timeline span {
    color: #9f9f9f;
    font-weight: 300;
}



.gallery div {
    height: 220px;
    display: flex;
    align-items: end;

    font-family: "Cormorant_Garamond";
    font-size: 30px;
}



.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1s, opacity 1s;
}


.fade.visible {
    opacity: 1;
    transform: none;
}


@media(max-width:600px) {
    h1 {
        font-size: 5rem;
    }
}

#rsvpContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.things-to-do {
    position: relative;
    padding: 120px 24px 140px;
    background: var(--color4);
    color: var(--color1);
}

.things-to-do-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 30px 0;
}

.things-header {
    text-align: center;
    margin-bottom: 30px;
}

.things-eyebrow {
    display: block;
    margin-bottom: 30px;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .55;
}

.things-header h2 {
    margin: 0;
    line-height: .95;
    letter-spacing: -.04em;
}

.things-header p {
    max-width: 400px;
    margin: 1rem auto 0;
    font-family: Ovo;
    font-size: 14px;
    line-height: 1.7;
    opacity: .6;
}

.recommendations {
    border-top: 1px solid rgba(0, 0, 0, .15);
}

.recommendation-group .rec_title {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 1rem;
}
.rec_title img {
    height: 40px;
    width: 40px;
}
.recommendation-group {
    display: block;
    padding: 16px 0 30px;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.recommendation-group:last-child {
    border-bottom: none;
}

.recommendation-group h3 {
    margin: 0;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .5;
}

.recommendation-list {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.recommendation-list a {
    position: relative;
    color: inherit;
    font-family: EB_Garamond;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    transition: opacity .3s ease;
    text-decoration: underline;
}

.recommendation-list a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(.76, 0, .24, 1);
}

.recommendation-list a:hover {
    opacity: .65;
}

.recommendation-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 600px) {
    .things-to-do {
        padding: 90px 20px 100px;
    }
}

@media (max-width: 768px) {
    section {
        height: unset;
        padding: 1rem;
    }
    .info-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

}


#rsvpContainer {
    position: relative;
    min-height: 100vh;
}
.rsvp-activation-section {
    height: 50vh;
    width: 100%;
    background-color: var(--color8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.rsvp-activation-section h3 {
    color: white;
    font-size: clamp(1.6rem, 4vw, 4rem);
    font-family: 'Ovo';
}
.rsvp-activation-section span {
    color: #ffffffb3;
    font-size: clamp(1rem, 2vw, 1rem);
    font-family: 'Ovo';
    font-weight: 100;
    margin-top: 1rem;
}

.rsvpContainer_contrast-bg {
    position: absolute;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e1ea;
    color: var(--secondary-color);
    font-weight: 300;
    font-family: 'EB_Garamond';
    width: 100%;
}
.rsvpContainer_contrast-bg span {
    height: 100%;
    margin-top: 20vh;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    padding: 50px;
    max-width: 700px;
    background-color: var(--color7);
    /* box-shadow: inset 0 0 0 1px #c7c4c6; */
    border: 1px solid #c7c4c6;
    margin: 20vh auto 0;
    z-index: 1;
    margin-bottom: 2rem;
}

input,
select {
    font-family: 'EB_Garamond';
    height: 50px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background-color: transparent;
    border-bottom: 1px solid #6b728040;
    width: 100%;
    border-radius: 0;
}

input[readonly] {
    cursor: not-allowed;
    opacity: .8;
    color: #616161;
}

select:has(option:checked:disabled) {
    color: #757575;
}

.rsvp-event-section {
    display: flex;
    flex-direction: column;
    margin-top: 36px;
}
.rsvp-event-section h4 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: Ovo;
    margin: 0;
    margin-bottom: 6px;
}
.rsvp-event-section h4 span {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-left: 6px;
}

.guest_name-input {
    font-size: 2rem;
}


.guest-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin-top: 10px;
}
.guest-container:first-child {
    margin-top: 0;
}

.add-guest-element,
.rsvp-submit-button {
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 36px;
    width: fit-content;
    margin-top: 36px;
}
.add-guest-element span {
    margin: 0 10px;
    font-family: 'Ovo';
    color: var(--primary-light-color);
}
.add-guest-button {
    height: 100%;
    border: none;
    border-right: 1px solid var(--secondary-color);
    width: 36px;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
}
#remove-guest {
    border-right: none;
    border-left: 1px solid var(--secondary-color);
}

.rsvp-form-divider {
    height: 4px;
    border: none;
    background-color: #b0b1ba;
    width: 70%;
    margin: 40px auto;
}

.rsvp-submit-button {
    height: 44px;
    font-family: 'Ovo';
    color: var(--primary-light-color);
    font-size: 1.2rem;
    padding: 0 16px;
    background-color: transparent;
    margin: auto;
}

@media (max-width: 768px) {
    .rsvp-form {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
    }
}


.iban-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-family: 'Ovo';
}

.iban-section {
    width: 100%;
    max-height: 50vh;
    min-height: unset;
    background-color: #d7d4ee !important;
}

.iban-note {
    font-family: 'EB_Garamond';
    max-width: 70ch;
    text-align: center;
    color: var(--secondary-color);
}

.iban-content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    width: 100%;
}

.iban-content span {
    font-family: 'Ovo';
    color: #616161;
}
.iban-item {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}



.first-guest-contact_info {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
.first-guest-contact_info span {
    color: gray;
    font-family: 'Ovo';
    font-size: 14px;
    margin-top: 1rem;
}

.guest-container select:invalid {
    border-color: #d9534f;
}

.guest-container select.required-error {
    border-color: #e9635f;
}


/* ~~~~~~ */

.cl_toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.cl_toast.success {
	background: #6cb678;
	color: #ffffff;
}
.cl_toast.fail {
	background: #df5749;
	color: #ffffff;
}

.cl_toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


#submitted-section {
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.opulence-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    font-size: 14px;
    color: #5b5b5b;
    width: 100%;
}

.opulence-grid a {
    padding: 4px;
    background-color: #eae9f2;
    border-radius: 8px;
}