/* Cancellation and withdrawal forms. Builds on the form styles in site.css. */

/* The two buttons choosing between cancelling and withdrawing */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.75rem; }
.mode-btn {
    padding: 0.8rem 0.75rem; background: white; border: 2px solid white; border-radius: 18px; cursor: pointer;
    font-family: inherit; font-size: 1.05rem; font-weight: 900; line-height: 1.2; color: var(--ink);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mode-btn:hover { border-color: var(--blue); }
.mode-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }

fieldset.field { border: none; }
fieldset.field legend { margin-bottom: 0.45rem; font-size: 1.05rem; font-weight: 900; letter-spacing: -0.01em; }

.field .choice {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.1rem; margin-bottom: 0.5rem;
    background: white; border-radius: 18px; cursor: pointer;
    font-size: 1.05rem; font-weight: 700; letter-spacing: normal; line-height: 1.3;
}
.field .choice:last-child { margin-bottom: 0; }
.field .choice input { flex: none; width: 20px; height: 20px; padding: 0; accent-color: var(--blue); cursor: pointer; }

#done { text-align: center; outline: none; }
#done h2 { font-size: 1.75rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
#done > p { margin-top: 0.6rem; font-size: 1.05rem; font-weight: 700; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }

/* Invisible to people; only bots fill it in */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#done a { color: var(--blue); font-weight: 800; }
#done .done-note { margin-bottom: 1.5rem; }

/* The ghost button's pale outline disappears against the sky */
#saveBtn, #saveBtn:hover { background: white; border-color: white; }

.receipt {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem 1.25rem; margin: 1.5rem 0; padding: 1.25rem 1.5rem;
    background: var(--paper); border-radius: 22px; box-shadow: 0 8px 24px rgba(30,80,140,0.08), 0 1px 3px rgba(30,80,140,0.06);
    text-align: left; font-size: 1rem; line-height: 1.4;
}
.receipt dt { font-weight: 900; }
.receipt dd { font-weight: 700; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }

@media (max-width: 480px) {
    .receipt { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .receipt dd { margin-bottom: 0.6rem; }
    .receipt dd:last-child { margin-bottom: 0; }
}
