/* Guest profile page. Builds on styles.css form and page styles. */
/* Keep the hidden attribute working where these rules set display. */
.profile-page [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.profile-page .container { max-width: 720px; }
.profile-page h2 { font-size: 22px; margin: 32px 0 12px; }
.profile-loading { color: var(--navy-soft); }
.profile-steps { padding-left: 22px; margin: 16px 0 8px; }
.profile-steps li { margin-bottom: 6px; }
input[type=tel] {
  width: 100%; font: inherit; font-size: 17px; color: var(--court-navy);
  padding: 12px 14px; border: 2px solid var(--input-border); border-radius: 12px; background: var(--white);
  appearance: none; -webkit-appearance: none;
}
.profile-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.profile-head h1 { margin-bottom: 0; }
.profile-status { margin: 0; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--blush); }
.profile-status.is-complete { background: var(--ball-yellow, #E6F45A); }
.event-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.event-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--white); border-radius: 16px; padding: 14px 18px; border: 2px solid var(--blush); }
.event-list .event-name { font-weight: 700; }
.event-list .event-date { display: block; font-size: 14px; color: var(--navy-soft); }
.event-list .ticket { font-size: 14px; font-weight: 600; }
.event-list .ticket.confirmed { color: #1d7a46; }
.event-empty { color: var(--navy-soft); }
.add-event-row { display: flex; gap: 10px; align-items: center; }
.add-event-row select { flex: 1; }
.photo-block { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
@media (max-width: 520px) { .photo-block { grid-template-columns: 1fr; justify-items: start; } }
.photo-frame { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--blush); display: grid; place-items: center; border: 4px solid var(--white); box-shadow: 0 6px 0 var(--serve-coral); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame { cursor: pointer; }
.photo-empty { color: var(--court-navy); font-size: 15px; font-weight: 700; text-align: center; padding: 12px; display: grid; justify-items: center; gap: 2px; }
.photo-plus { font-family: 'Bricolage Grotesque', sans-serif; font-size: 40px; line-height: 1; color: var(--coral-text); }
.photo-frame:focus-within, .photo-frame:hover { box-shadow: 0 6px 0 var(--court-navy); }
.photo-pick { cursor: pointer; margin: 4px 0 0; }
#photo-input:focus-visible + * , .photo-pick:focus-within { outline: 3px solid var(--court-navy); outline-offset: 4px; }
.form-message.is-ok { color: var(--court-navy); }
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--coral-text); text-decoration: underline; cursor: pointer; min-height: 24px; }
.link-button.danger { color: var(--coral-text); }
.profile-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--blush); }
.profile-help { margin-top: 24px; font-size: 14px; color: var(--navy-soft); }
