:root {
    /* Palette */
    --mulberry: #390000;
    --claret: #610d08;
    --rose: #893941;
    --pink: #cb7885;
    --brown: #423b1b;
    --olive: #8c8a45;
    --sage: #aeb081;
    --cream: #fffdf6;

    --text: #2a2a2a;
    --shadow: 0 22px 60px rgba(0, 0, 0, .14);
    --container: 1280px;

    --display-min: 25px;
    --display-fluid: 5vw;
    --display-max: 80px;
    --display-size: clamp(var(--display-min), var(--display-fluid), var(--display-max));
    --display-font: "Boska", serif;
}


body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    font-family: "Boska", serif;
    color: var(--brown);
}

.rsvp-wrapper {
    max-width: 680px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
}

.rsvp-header {
    width: 500px;
    max-width: 90%;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 30px;
    margin-bottom: 16px;
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #8c8a45;
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: inherit;
    box-sizing: border-box;
}

.btn {
    font-family: var(--display-font);
    padding: 12px 26px;
    font-size: 18px;
    background: #fffdf6;
    border: 2px solid #8c8a45;
    color: #423b1b;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    transform: scale(1.03);
    background: var(--sage);

}

.submit-btn {
    font-weight: 500;
    font-size: 20px;
}

.home-links {
    margin-top: 28px;
    text-align: center;
}

.home-btn {
    display: inline-block;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 26px;
    border-radius: 999px;
    border: 2px solid var(--olive);
    background: #fffdf6;
    color: var(--brown);
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-1px);
    background: var(--olive);
    color: var(--cream);
}


.error {
    color: #b52a2a;
    margin-top: 10px;
    min-height: 24px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

/* Guest block */
.guest-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 22px;
    gap: 20px;
}

/* Name left side */
.guest-left {
    flex: 1;
    text-align: left;
    color: var(--claret);

}

.guest-first {
    font-size: 28px;
    font-weight: 600;
}

.guest-last {
    font-size: 25px;
    opacity: 0.8;
}

/* Right side questions */
.guest-right {
    flex: 2;
    text-align: left;
}

.sub-question {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
}

.choice-row {
    display: flex;
    gap: 12px;
    margin: 6px 0 10px 0;
}

.choice-btn {
    padding: 8px 16px;
    border: 2px solid #8c8a45;
    background: #fffdf6;
    border-radius: 99px;
    cursor: pointer;
    font-size: 16px;
}

.choice-btn:hover {
    transform: scale(1.03);
    background: var(--sage);
    color: var(--cream);
}

.choice-btn.selected {
    background: #8c8a45;
    color: #fff;
}

.dinner-section {
    margin-top: 10px;
}

.hidden {
    display: none;
}

.allergy-input {
    margin-top: 8px;
    font-size: 16px;
    resize: vertical;
}

.success-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.email-wrapper {
    margin-top: 24px;
    text-align: left;
}

.email-label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
}

#email-input {
    max-width: 100%;
}

.comments-wrapper {
    margin-top: 16px;
    text-align: left;
}

.comments-label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
}

.comments-input {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}
