/* AmSpa Events — Checkout */
.amspa-checkout-wrap {
    background: #f6f7f9;
    padding: 48px 20px;
    min-height: 60vh;
}

.amspa-checkout {
    max-width: 1180px;
    margin: 0 auto;
}

.amspa-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 880px) {
    .amspa-checkout-grid { grid-template-columns: 1fr; }
}

/* Form column */
.amspa-checkout-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px 44px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}

.amspa-checkout-header { margin-bottom: 28px; }

.amspa-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 18px;
}
.amspa-divider { width: 18px; height: 1px; background: #d1d5db; }

.amspa-progress {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #9ca3af;
}
.amspa-progress li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.amspa-progress li::before {
    content: "";
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
}
.amspa-progress li.is-current { color: #111827; font-weight: 600; }
.amspa-progress li.is-current::before { background: #111827; border-color: #111827; }

.amspa-checkout-form h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #0f172a;
}
.amspa-sub { color: #6b7280; margin: 0; }

.amspa-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.amspa-row { display: grid; gap: 16px; margin-bottom: 16px; }
.amspa-row-2 { grid-template-columns: 1fr 1fr; }
.amspa-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 540px) {
    .amspa-row-2, .amspa-row-3 { grid-template-columns: 1fr; }
}

.amspa-form label {
    display: block;
    font-size: 13px;
    color: #374151;
}
.amspa-form label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.amspa-form input,
.amspa-form select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.amspa-form input:focus,
.amspa-form select:focus {
    outline: 0;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}
.amspa-form input.is-invalid,
.amspa-form select.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.amspa-card-marks {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.amspa-card-marks span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #6b7280;
    background: #f9fafb;
}

/* Submit */
.amspa-submit {
    margin-top: 24px;
    width: 100%;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: #0f172a;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background .15s, transform .05s;
}
.amspa-submit:hover { background: #1f2937; }
.amspa-submit:active { transform: translateY(1px); }
.amspa-submit[disabled] { opacity: .7; cursor: not-allowed; }

.amspa-submit-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: amspa-spin .7s linear infinite;
}
.amspa-submit.is-loading .amspa-submit-spinner { display: inline-block; }
@keyframes amspa-spin { to { transform: rotate(360deg); } }

.amspa-fineprint {
    margin: 14px 0 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.amspa-message { margin-top: 12px; }
.amspa-message:empty { display: none; }
.amspa-message.is-error {
    padding: 12px 14px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
}
.amspa-message.is-success {
    padding: 12px 14px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 14px;
}

/* Summary column */
.amspa-summary {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}
.amspa-summary h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7280;
    margin: 0 0 18px;
}
.amspa-summary-card { padding-bottom: 18px; border-bottom: 1px solid #eef0f3; }
.amspa-summary-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.amspa-summary-line { color: #374151; margin-top: 4px; }
.amspa-summary-meta { color: #6b7280; font-size: 13px; margin-top: 4px; }
.amspa-summary-price { margin-top: 12px; font-weight: 700; color: #0f172a; }

.amspa-totals { margin: 16px 0; padding: 0; }
.amspa-totals div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #374151; }
.amspa-totals div.is-total {
    border-top: 1px solid #eef0f3;
    margin-top: 6px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.amspa-totals dt, .amspa-totals dd { margin: 0; }
.amspa-totals dd span { font-size: 11px; color: #9ca3af; margin-left: 4px; }

.amspa-summary-included {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
}
.amspa-summary-included ul { padding-left: 18px; margin: 0; }

.amspa-summary-secure {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* Debug output */
.amspa-debug {
    margin-top: 16px;
    padding: 16px;
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
}
.amspa-debug h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fbbf24;
}
.amspa-debug pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #e5e7eb;
}

/* Section blocks (replaces fieldset styling) */
.amspa-section {
    border-top: 1px solid #eef0f3;
    padding: 28px 0 8px;
    margin: 0;
}
.amspa-section:first-of-type { border-top: 0; padding-top: 24px; }

.amspa-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.amspa-section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.amspa-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.amspa-subhead {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin: 24px 0 12px;
}

.amspa-req { color: #dc2626; }

/* Questionnaire */
.amspa-q-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0;
}
.amspa-q-group legend {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.amspa-q-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}
.amspa-q-option input { width: auto; margin: 0; }

.amspa-q-yesno { display: flex; flex-direction: column; }
.amspa-q-yesno legend { margin-bottom: 6px; }

.amspa-q textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
}
.amspa-q textarea:focus {
    outline: 0;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}

.amspa-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Featured image banner */
.amspa-checkout-form { overflow: hidden; }
.amspa-checkout-banner {
    margin: -40px -44px 28px;
    line-height: 0;
    background: #f3f4f6;
}
.amspa-checkout-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
}
@media (max-width: 540px) {
    .amspa-checkout-banner { margin: -40px -20px 24px; }
    .amspa-checkout-banner-img { max-height: 180px; }
}

/* Compound (date / month) field layouts */
.amspa-q-compound legend { margin-bottom: 8px; }
.amspa-compound-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.amspa-compound-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.amspa-q-compound .amspa-compound-field:has(input[type="number"]) { flex: 1.2; }
.amspa-compound-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 4px;
}
.amspa-compound-field select,
.amspa-compound-field input {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 540px) {
    .amspa-compound-row { flex-direction: column; }
}

/* Footer note (per-event message above submit) */
.amspa-footer-note {
    margin: 24px 0 8px;
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}
.amspa-footer-note p { margin: 0 0 10px; }
.amspa-footer-note p:last-child { margin-bottom: 0; }
.amspa-footer-note a { color: #0f172a; text-decoration: underline; }

/* Off-screen decoy fields to absorb browser credit-card autofill heuristics.
   Must remain "visible" to the browser (no display:none / visibility:hidden)
   or they won't be picked up as autofill targets. */
.amspa-autofill-decoy {
    position: absolute;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ============== Order Confirmation Page ============== */
.amspa-confirmation-wrap {
    background: #f6f7f9;
    padding: 48px 20px;
    min-height: 60vh;
}
.amspa-confirmation {
    max-width: 760px;
    margin: 0 auto;
}

.amspa-confirmation-header {
    text-align: center;
    padding: 32px 24px 28px;
}
.amspa-confirmation-check {
    display: inline-flex;
    margin-bottom: 16px;
    animation: amspa-pop 0.4s cubic-bezier(.2,.7,.3,1.4);
}
@keyframes amspa-pop {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
.amspa-confirmation-eyebrow {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #10b981;
    font-weight: 700;
    margin: 0 0 8px;
}
.amspa-confirmation-header h1 {
    font-size: 30px;
    margin: 0 0 8px;
    color: #0f172a;
    line-height: 1.2;
}
.amspa-confirmation-sub {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
}
.amspa-confirmation-sub strong { color: #0f172a; }

.amspa-confirmation-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}

.amspa-confirmation-card-head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 22px;
}
@media (max-width: 540px) {
    .amspa-confirmation-card-head { grid-template-columns: 1fr; gap: 16px; }
}

.amspa-confirmation-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
    font-weight: 600;
    margin: 0 0 4px;
}
.amspa-confirmation-meta-value {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}

.amspa-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f3f4f6;
    color: #374151;
}
.amspa-status-paid       { background: #dcfce7; color: #166534; }
.amspa-status-pending    { background: #fef3c7; color: #92400e; }
.amspa-status-failed,
.amspa-status-cancelled  { background: #fee2e2; color: #991b1b; }

.amspa-confirmation-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 14px;
}

.amspa-confirmation-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.amspa-confirmation-items th,
.amspa-confirmation-items td {
    padding: 14px 0;
    text-align: left;
    border-bottom: 1px solid #eef0f3;
    color: #0f172a;
}
.amspa-confirmation-items th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
    font-weight: 600;
}
.amspa-cell-num { text-align: right !important; white-space: nowrap; }

.amspa-confirmation-totals {
    margin: 18px 0 0;
    padding: 0;
}
.amspa-confirmation-totals div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
    color: #374151;
}
.amspa-confirmation-totals dt,
.amspa-confirmation-totals dd { margin: 0; }
.amspa-confirmation-totals dd span {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 4px;
}
.amspa-confirmation-totals .is-total {
    border-top: 1px solid #eef0f3;
    margin-top: 6px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.amspa-paid dd { color: #10b981; font-weight: 700; }

.amspa-confirmation-attendee {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}
@media (max-width: 540px) {
    .amspa-confirmation-attendee { grid-template-columns: 1fr; gap: 16px; }
}

.amspa-confirmation-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: #6b7280;
    margin: 22px 0 12px;
    padding-top: 22px;
    border-top: 1px solid #eef0f3;
}

.amspa-membership-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.amspa-membership-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.amspa-membership-list li:last-child { border-bottom: 0; }
.amspa-membership-list strong { color: #0f172a; }
.amspa-membership-meta { font-size: 13px; color: #6b7280; }

.amspa-confirmation-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
}
.amspa-confirmation-print {
    padding: 12px 22px;
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .15s;
}
.amspa-confirmation-print:hover { background: #1f2937; }

.amspa-confirmation-link {
    color: #0f172a;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.amspa-confirmation-link:hover { border-bottom-color: #0f172a; }

.amspa-confirmation-empty {
    background: #fff;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}
.amspa-confirmation-empty h1 {
    margin: 0 0 8px;
    color: #0f172a;
}
.amspa-confirmation-empty p {
    color: #6b7280;
    margin: 0 0 14px;
}

/* Print styles for the receipt button */
@media print {
    body * { visibility: hidden; }
    .amspa-confirmation-wrap, .amspa-confirmation-wrap * { visibility: visible; }
    .amspa-confirmation-wrap {
        position: absolute;
        left: 0;
        top: 0;
        background: #fff !important;
        padding: 0;
    }
    .amspa-confirmation-actions { display: none; }
    .amspa-confirmation-card { box-shadow: none; border: 1px solid #e5e7eb; }
}

/* Right-column wrapper holds pricing card + summary card */
.amspa-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
    align-self: start;
}

/* Pricing card */
.amspa-pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}
.amspa-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f172a, #334155);
}
.amspa-pricing-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 16px;
}
.amspa-pricing-card-head h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #6b7280;
    font-weight: 700;
    margin: 0;
}
.amspa-pricing-count {
    font-size: 11px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.amspa-pricing-tiers {
    list-style: none;
    padding: 0;
    margin: 0;
}
.amspa-pricing-tier {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #e5e7eb;
}
.amspa-pricing-tier:first-child { padding-top: 4px; }
.amspa-pricing-tier:last-child  { padding-bottom: 4px; border-bottom: 0; }
.amspa-pricing-tier-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
.amspa-pricing-tier-amount {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Additional attendees */
.amspa-additional-attendees { margin-top: 8px; }

.amspa-additional-attendee {
    margin-top: 16px;
    padding: 18px 20px 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.amspa-additional-attendee-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.amspa-additional-attendee-num {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
}
