/* Ceremonies page (ceremonies.php): reuses the form styles of inscription.css,
   adds the ceremony choice cards and the invitation ticket preview. */

.fcard .lead { margin-top: 8px }

/* ---------- ceremony choice ---------- */
.cer-set { border: 0; margin: 26px 0 0; padding: 0; min-width: 0 }
.cer-set legend { padding: 0; margin-bottom: 10px }

.cer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }

.cer-grid input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none
}

.cer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 14px;
    border: 2px solid var(--rule);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s, background-color .15s, transform .15s
}

.cer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--c)
}

.cer:hover { transform: translateY(-2px); border-color: var(--night) }

.cer-when { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; padding-right: 34px }
.cer-when b { font: 700 13px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--indigo) }
.cer-when span { font: 700 13px/1.2 var(--mono); color: var(--slate) }
.cer-t { font: 800 19px/1.15 var(--disp); letter-spacing: -.01em }
.cer-d { font-size: 14px; line-height: 1.45; color: var(--body) }
.cer-p { margin-top: auto; padding-top: 6px; font: 500 12px/1.3 var(--mono); color: var(--slate) }

.cer-tick {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--rule);
    background: #fff;
    transition: background-color .15s, border-color .15s
}

.cer-grid input:checked + .cer { border-color: var(--indigo); background: #f0edff }
.cer-grid input:checked + .cer .cer-tick { background: var(--indigo); border-color: var(--indigo) }

.cer-grid input:checked + .cer .cer-tick::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg)
}

.cer-grid input:focus-visible + .cer { outline: 3px solid var(--indigo); outline-offset: 3px }
.cer-set[aria-invalid="true"] .cer { border-color: #d93025 }

.fcard .g2 { margin-top: 22px }
.cer-checks { margin-top: 20px }

/* ---------- invitation ticket ---------- */
.tkt {
    position: relative;
    margin-top: 4px;
    padding: 18px 18px 22px;
    border-radius: 18px;
    background: #fff;
    color: var(--night);
    overflow: hidden
}

/* ticket notches */
.tkt::before, .tkt::after {
    content: "";
    position: absolute;
    top: 118px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--night)
}

.tkt::before { left: -10px }
.tkt::after { right: -10px }

.tkt-top { display: flex; align-items: center; gap: 10px }
.tkt-top svg { flex: none }
.tkt-top b { font: 800 16px/1 var(--disp) }
.tkt-top i { font: 700 11px/1 var(--mono); font-style: normal; padding: 3px 5px; border-radius: 5px; background: var(--yellow) }
.tkt-top small { display: block; margin-top: 4px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--indigo) }

.tkt-k {
    margin-top: 32px;
    padding-top: 14px;
    border-top: 2px dashed var(--rule);
    font: 700 11px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indigo)
}

.tkt-name { margin-top: 8px; font: 800 22px/1.1 var(--disp); letter-spacing: -.02em; overflow-wrap: anywhere }
.tkt-org { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--slate); overflow-wrap: anywhere }

.tkt-cer { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px }

.tkt-cer li {
    display: grid;
    gap: 2px;
    padding: 8px 10px 8px 14px;
    border-radius: 10px;
    background: var(--chalk);
    border-left: 5px solid var(--c, var(--rule));
    font-size: 14px;
    font-weight: 700
}

.tkt-cer li span { font: 500 12px/1.3 var(--mono); color: var(--slate) }
.tkt-cer li.none { border-left-color: var(--rule); color: var(--slate); font-weight: 500 }

.tkt-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12px; line-height: 1.4; color: var(--slate) }

.tkt-qr {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%) 0 0 / 100% 100%,
        repeating-conic-gradient(var(--night) 0 25%, #fff 0 50%) 0 0 / 13.5px 13.5px;
    opacity: .2;
    transition: opacity .3s
}

.tkt.ready .tkt-qr { opacity: 1 }

.tkt-lines { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 6px }
.tkt-lines i:nth-child(1) { background: var(--yellow) }
.tkt-lines i:nth-child(2) { background: var(--orange) }
.tkt-lines i:nth-child(3) { background: var(--lilac) }
.tkt-lines i:nth-child(4) { background: var(--mint) }

.side .sidenote { margin-top: 14px }

/* ---------- confirmation ---------- */
.done .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px }
.done-cer { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px }

.done-cer li {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--chalk);
    border-left: 6px solid var(--c);
    font-weight: 700
}

.done-cer li span { display: block; font: 500 13px/1.4 var(--mono); color: var(--slate) }

@media (max-width: 640px) {
    .cer-grid { grid-template-columns: minmax(0, 1fr) }
    .cer-t { font-size: 17px }
}

/* no stepper under the title here: give the hero its own bottom space */
.page-ceremonies .fhead { padding-bottom: clamp(28px, 4vw, 52px) }
