@font-face {
    font-family: 'Panama';
    src: url('../../../../assets/fonts/Panama/PanamaProportionalRegular.otf') format('opentype');
}

@font-face {
    font-family: 'Union';
    src: url('../../../../assets/fonts/Union/UnionRegular.otf') format('opentype');
}

.th-v2-guest-list-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0 !important;
    align-self: stretch;
    align-items: normal;
}

.th-v2-guest-list-form__event,
.th-v2-guest-list-form__form-side {
    min-height: 100%;
}

.th-v2-guest-list-form__event {
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
}

.th-v2-guest-list-form__event-top {
    padding: 67px 32px;
    background-color: #0d0d0d;
}

.th-v2-guest-list-form__overline,
.th-v2-guest-list-form__meta span {
    color: #f2eee5;
    font: 400 15px/150% 'Union', serif;
    text-transform: uppercase;
}

.th-v2-guest-list-form__overline {
    margin: 0 0 20px;
}

.th-v2-guest-list-form__title {
    margin: 0 0 8px;
    color: #f2eee5;
    font: 400 80px/90% 'Panama', serif;
    text-transform: uppercase;
}

.th-v2-guest-list-form__meta {
    display: flex;
    gap: 15px;
    margin: 0;
    flex-wrap: wrap;
}

.th-v2-guest-list-form__meta span:first-child {
    color: #81f249;
}

.th-v2-guest-list-form__event-image {
    position: relative;
    flex: 1;
    min-height: 260px;
    overflow: hidden;
}

.th-v2-guest-list-form__event-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #0003;
    pointer-events: none;
}

.th-v2-guest-list-form__event-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-v2-guest-list-form__form-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 45px 25px;
    background: #f2eee5;
}

.th-v2-guest-list-form__logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.th-v2-guest-list-form__logo-wrap img,
.th-v2-guest-list-form__logo-wrap svg {
    width: 30px;
    height: auto;
}

.th-v2-guest-list-form__form-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 40px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.th-v2-guest-list-form__form-header {
    margin-bottom: 20px;
    text-align: center;
}

.th-v2-guest-list-form__form-title {
    margin: 0 0 16px;
    color: #0d0d0d;
    font: 400 44px/90% 'Panama', serif;
    text-transform: uppercase;
}

.th-v2-guest-list-form__form-text {
    margin: 0 0 20px;
    color: #0d0d0d;
    font: 400 15px/150% 'Union', serif;
}

.th-v2-guest-list-form__form,
.th-v2-guest-list-form__thank-you {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.th-v2-guest-list-form__field {
    margin-bottom: 30px;
}

.th-v2-guest-list-form__field label {
    display: block;
    margin-bottom: 10px;
    color: #0d0d0d;
    font: 400 15px/150% 'Union', serif;
    text-transform: uppercase;
}

.th-v2-guest-list-form__field input[type='text'],
.th-v2-guest-list-form__field input[type='email'] {
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #0d0d0d80;
    border-radius: 0;
    background: transparent;
    color: #0d0d0d;
    font: 400 15px/150% 'Union', serif;
}

.th-v2-guest-list-form__field input[type='text']:focus,
.th-v2-guest-list-form__field input[type='email']:focus {
    outline: none;
    border-bottom-color: #0d0d0d;
}

.th-v2-guest-list-form__field--checkbox {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}

.th-v2-guest-list-form__field--checkbox label.checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 25px;
    margin: 0;
    text-transform: none;
    cursor: pointer;
}

.th-v2-guest-list-form__field--checkbox label.checkbox::before {
    content: '';
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1px solid #0d0d0d;
    transition: all .3s ease;
}

.th-v2-guest-list-form__field--checkbox input[type='checkbox'] {
    display: none;
}

.th-v2-guest-list-form__field--checkbox input[type='checkbox']:checked + label.checkbox::before {
    content: '✓';
    background-color: #0d0d0d;
    color: #f2eee5;
    font-size: 10px;
    font-weight: 700;
}

.th-v2-guest-list-form__field--checkbox input[type='checkbox'].is-invalid + label.checkbox::before {
    border-color: #b42318;
}

.th-v2-guest-list-form__field--checkbox label.checkbox a {
    color: inherit;
    text-decoration: underline;
    transition: .3s;
}

.th-v2-guest-list-form__field--checkbox label.checkbox a:hover {
    text-decoration: none;
}

.th-v2-guest-list-form__actions {
    margin-top: 28px;
    text-align: center;
}

.th-v2-guest-list-form__submit:disabled {
    cursor: wait;
    opacity: .55;
}

.th-v2-guest-list-form__response,
.th-v2-guest-list-form .not-valid-tip {
    display: none;
    color: #ac0003;
    font: 400 12px/140% 'Union', serif;
}

.th-v2-guest-list-form__response {
    margin-top: 12px;
}

.th-v2-guest-list-form__thank-you {
    display: none;
    text-align: center;
}

.th-v2-guest-list-form.is-thank-you .th-v2-guest-list-form__form,
.th-v2-guest-list-form.is-thank-you .th-v2-guest-list-form__form-header {
    display: none;
}

.th-v2-guest-list-form.is-thank-you .th-v2-guest-list-form__thank-you {
    display: block;
}

.th-v2-guest-list-form__footer {
    border-top: 1px solid #0d0d0d1f;
    padding-top: 16px;
}

.th-v2-guest-list-form__footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font: 400 15px/150% 'Union', serif;
    text-transform: uppercase;
}

.th-v2-guest-list-form__footer-inner a {
    color: #0d0d0d;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .th-v2-guest-list-form {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .th-v2-guest-list-form__event-image {
        flex: 0 0 auto;
        min-height: 260px;
    }

    .th-v2-guest-list-form__event-image img {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
    }

    .th-v2-guest-list-form__title {
        font-size: 44px;
    }

    .th-v2-guest-list-form__event-top {
        padding: 60px 20px;
    }

    .th-v2-guest-list-form__form-side {
        padding: 24px 20px 20px;
    }
}
