#their-names-group {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 32px;
    font-family: Georgia, Times, serif;
    font-size: 2rem;
    background: linear-gradient(180deg, #f4ecdf 0%, #eadfce 100%);
    border: 1px solid #dbc8b0;
    border-radius: 24px;
    box-shadow: 0 20px 46px rgba(8, 10, 14, 0.22);
}

#hisName-group,
#herName-group {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

#hisName-label,
#herName-label {
    margin: 0;
    font-weight: 700;
    color: #1d1b18;
}

#hisName,
#herName {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 1.9rem;
    color: #1f1b17;
    background: #fff;
    border: 1px solid #d8cec1;
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#hisName::placeholder,
#herName::placeholder {
    color: #9b8f80;
}

#hisName:focus,
#herName:focus {
    outline: none;
    border-color: #b48f64;
    box-shadow: 0 0 0 4px rgba(180, 143, 100, 0.16);
    background: #fffdf9;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 24px;
    text-align: center;
    color: #4f463d;
    font-size: 1.7rem;
}

#shareNamesByDefault {
    width: 18px;
    height: 18px;
    accent-color: #8a6a45;
}

#shareNamesByDefaultLabel {
    margin: 0;
    cursor: pointer;
}

#namesSaveButton,
#namesResetButton {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    padding: 0 24px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#namesSaveButton {
    border: 1px solid #171717;
    color: #fffaf3;
    background: linear-gradient(180deg, #28231d 0%, #151311 100%);
    box-shadow: 0 12px 24px rgba(12, 11, 10, 0.18);
}

#namesSaveButton:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #35302a 0%, #1a1714 100%);
}

#namesResetButton {
    margin-top: 10px;
    border: 1px solid #d8cec1;
    color: #4d443b;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(18, 18, 18, 0.06);
}

#namesResetButton:hover {
    transform: translateY(-1px);
    background: #f1e8dd;
    border-color: #c7b7a2;
}

#namesSaveButton:focus,
#namesResetButton:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(180, 143, 100, 0.18);
}

#namesNotificationMessage {
    margin-top: 18px;
    padding: 14px 16px;
    background: #eef5ee;
    color: #264129;
    border: 1px solid #cddfce;
    border-radius: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
    text-align: center;
}

#namesNotificationMessage.show {
    max-height: 120px;
    opacity: 1;
}

@media (max-width: 767px) {
    #their-names-group {
        margin-top: 28px;
        padding: 22px 18px;
        border-radius: 18px;
        font-size: 1.8rem;
    }

    #hisName-group,
    #herName-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkbox-container {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
}



