.wedding-title {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #faf9f7;
    text-align: center;

    padding: 60px 0 50px;
}


/* OUR WEDDING */
.small-title {
    font-family: 'Cormorant Garamond', serif;

    font-size: 13px;
    letter-spacing: 6px;

    margin-bottom: 35px;

    opacity: 0;

    animation: fadeUp 1.5s ease forwards;
}


/* 손글씨 */
.wedding-script {
    font-family: 'Allura', cursive;

    font-size: 55px;

    font-weight: 400;

    margin-bottom: 30px;

    opacity: 0;

    animation: fadeUp 1.5s ease 0.7s forwards;
}

.title-photo {
    width: 88%;
    height: auto;

    margin: 35px auto;
    display: block;
}
/* 날짜 */
.wedding-date {
    font-family: 'Cormorant Garamond', serif;

    font-size: 18px;

    letter-spacing: 4px;

    opacity: 0;

    animation: fadeUp 1.5s ease 1.4s forwards;
}

/* 아래에서 부드럽게 등장 */
@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.attendance-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(0, 0, 0, 0.12);
}

.attendance-card {
    position: relative;
    width: min(100%, 360px);
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    color: #403b37;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    text-align: center;
}

.attendance-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #4f4943;
    font-size: 34px;
    font-weight: 200;
    line-height: 24px;
    cursor: pointer;
}

.attendance-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 22px;
    margin-top: 34px;
    border: 1px solid #9a948d;
    border-radius: 50%;
    color: #6f675e;
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    font-style: italic;
}

.attendance-card h2 {
    margin-top: 12px;
    color: #3c3834;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.attendance-message {
    margin-top: 30px;
    padding: 0 30px;
    color: #514b45;
    font-size: 14px;
    line-height: 1.8;
}

.attendance-couple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 26px;
}

.attendance-couple span {
    display: block;
    margin-bottom: 5px;
    color: #b2aaa2;
    font-size: 13px;
}

.attendance-couple strong {
    display: block;
    color: #3f3934;
    font-size: 15px;
}

.attendance-and {
    color: #b8afa6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
}

.attendance-detail {
    margin: 28px 0 34px;
    color: #4b4641;
    font-size: 14px;
    line-height: 1.8;
}

.attendance-submit {
    display: block;
    width: 100%;
    padding: 20px 16px;
    border: 0;
    background: #bdb1a2;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.attendance-form-popup {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.attendance-form-card {
    width: min(100%, 640px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #fffdfa;
    color: #3f332a;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    text-align: left;
}

.attendance-form-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    border-bottom: 1px solid #ebe5de;
    background: #fffdfa;
}

.attendance-form-header h2 {
    margin: 0;
    color: #2f2924;
    font-size: 20px;
    font-weight: 500;
}

.attendance-form-close {
    position: absolute;
    right: 28px;
    top: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #9d958e;
    font-size: 44px;
    font-weight: 200;
    line-height: 30px;
    cursor: pointer;
}

.attendance-form-body {
    padding: 46px 30px 52px;
}

.attendance-field {
    display: block;
    margin: 0 0 26px;
    border: 0;
    padding: 0;
}

.attendance-field legend,
.attendance-field>span {
    display: block;
    margin-bottom: 12px;
    color: #3f332a;
    font-size: 18px;
}

.attendance-field legend span,
.attendance-field strong {
    color: #d94444;
    font-weight: 500;
}

.attendance-segment {
    display: grid;
    overflow: hidden;
    border: 1px solid #e8e1da;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.attendance-segment.two {
    grid-template-columns: repeat(2, 1fr);
}

.attendance-segment.three {
    grid-template-columns: repeat(3, 1fr);
}

.attendance-segment label {
    min-width: 0;
}

.attendance-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-right: 1px solid #e8e1da;
    color: #9a9189;
    font-size: 18px;
    cursor: pointer;
}

.attendance-segment label:last-child span {
    border-right: 0;
}

.attendance-segment input:checked+span {
    background: #bdb1a2;
    color: #fff;
}

.attendance-input {
    width: 100%;
    height: 54px;
    border: 1px solid #e8e1da;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #3f332a;
    font-size: 17px;
    padding: 0 14px;
}

.attendance-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 44px;
    color: #3f332a;
    font-size: 17px;
}

.attendance-privacy input {
    width: 24px;
    height: 24px;
    accent-color: #bdb1a2;
}

.attendance-privacy button {
    border: 0;
    background: transparent;
    color: #6f7680;
    font-size: 15px;
    cursor: pointer;
}

.attendance-form-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 7px;
    background: #edc8ae;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 22px;
    cursor: pointer;
}

.attendance-form-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.attendance-form-submit.is-disabled {
    opacity: 0.55;
}

.attendance-message-popup {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.08);
}

.attendance-message-card {
    width: min(100%, 450px);
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    padding: 18px 22px 16px;
    color: #241e1a;
    text-align: left;
}

.attendance-message-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.attendance-message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.attendance-message-actions button {
    min-width: 48px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #241e1a;
    font-size: 15px;
    cursor: pointer;
}

.attendance-message-actions button:first-child {
    background: #241e1a;
    color: #fff;
}

@media (max-width: 360px) {
    .attendance-message {
        padding: 0 22px;
        font-size: 13px;
    }

    .attendance-couple {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .attendance-form-popup {
        padding: 0;
        align-items: stretch;
    }

    .attendance-form-card {
        width: 100%;
        max-height: 100vh;
    }

    .attendance-form-body {
        padding: 34px 20px 42px;
    }

    .attendance-form-header {
        min-height: 68px;
    }

    .attendance-form-close {
        right: 18px;
        top: 14px;
    }

    .attendance-field legend,
    .attendance-field>span {
        font-size: 16px;
    }

    .attendance-segment span,
    .attendance-input,
    .attendance-privacy {
        font-size: 16px;
    }
}
