/* Dojang Go — Register Your Club and the pages after it (licence ready, payment received, application
   sent, activate your club). In the style of the home page: its colours, cards and buttons (.pv-btn). */

.pv-checkout {
    --pv-ink: #231f20;
    --pv-text: #555555;
    --pv-muted: #6b6b6b;
    --pv-brand: #901a1e;
    --pv-brand-soft: #fcf4f4;
    --pv-line: #f0ede5;
    --pv-field: #e0ddd5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top center, #ffffff 0%, #fdfbf7 100%);
    border-bottom: 1px solid var(--pv-line);
    padding: 72px 20px 88px;
    color: var(--pv-text);
}
.pv-checkout *, .pv-checkout *::before, .pv-checkout *::after { box-sizing: border-box; }

/* --- The heading above the card, as the home page's hero --- */
.pv-checkout-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.pv-checkout-badge {
    display: inline-block; margin-bottom: 18px; padding: 6px 16px; border-radius: 50px;
    background: #f5e9ea; color: var(--pv-brand);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.pv-checkout-intro h1 {
    margin: 0 0 14px; color: var(--pv-ink);
    font-size: 2.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.75px;
}
.pv-checkout-intro p { margin: 0; font-size: 1.15rem; line-height: 1.6; }

/* --- The card --- */
.pv-checkout-card {
    max-width: 560px; margin: 0 auto; padding: 36px 36px 40px;
    background: #ffffff; border: 1px solid var(--pv-line); border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    text-align: left;
}
.pv-checkout-card > :first-child { margin-top: 0; }
.pv-checkout-card > :last-child { margin-bottom: 0; }
.pv-checkout-card p { line-height: 1.6; }

/* --- Fields --- */
.pv-field { margin: 0 0 20px; }
.pv-field > label, .pv-fieldset > legend {
    display: block; margin-bottom: 6px; padding: 0;
    color: var(--pv-ink); font-size: 0.95rem; font-weight: 600;
}
.pv-field input[type="text"], .pv-field input[type="email"], .pv-field select, .pv-input-group {
    display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
    background: #ffffff; border: 1px solid var(--pv-field); border-radius: 8px;
    color: var(--pv-ink); font: inherit; font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pv-field input:focus, .pv-field select:focus, .pv-input-group:focus-within {
    outline: none; border-color: var(--pv-brand); box-shadow: 0 0 0 3px rgba(144, 26, 30, 0.12);
}
.pv-field-help { display: block; margin-top: 6px; color: var(--pv-muted); font-size: 0.875rem; line-height: 1.5; }
.pv-field-help.is-good { color: #166534; }
.pv-field-help.is-bad { color: var(--pv-brand); }

/* The association's address: the name, then the domain. */
.pv-input-group { display: flex; align-items: stretch; padding: 0; overflow: hidden; }
.pv-input-group input[type="text"] { flex: 1; min-width: 0; min-height: 46px; border: 0; border-radius: 0; box-shadow: none; text-transform: lowercase; }
.pv-input-group input[type="text"]:focus { box-shadow: none; }
.pv-input-group span { display: flex; align-items: center; padding: 0 14px; background: #fdfbf7; border-left: 1px solid var(--pv-field); color: var(--pv-muted); white-space: nowrap; }

/* Where the club will use Dojang Go: two cards to choose between. */
.pv-fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.pv-choice {
    display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; padding: 14px 16px;
    border: 1px solid var(--pv-field); border-radius: 12px; cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pv-choice:last-child { margin-bottom: 0; }
.pv-choice:hover { border-color: #c9c3b6; }
.pv-choice:has(input:checked) { border-color: var(--pv-brand); background: var(--pv-brand-soft); }
.pv-choice input { margin: 4px 0 0; accent-color: var(--pv-brand); flex: 0 0 auto; }
.pv-choice strong { display: block; color: var(--pv-ink); }
.pv-choice small { display: block; margin-top: 2px; color: var(--pv-muted); font-size: 0.875rem; line-height: 1.5; }

/* Confirmations. */
.pv-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; color: #374151; font-size: 0.95rem; line-height: 1.55; cursor: pointer; }
.pv-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pv-brand); flex: 0 0 auto; }
.pv-check a, .pv-checkout-card a:not(.pv-btn) { color: var(--pv-brand); text-decoration: underline; text-underline-offset: 2px; }

/* --- Notes and messages --- */
.pv-note { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--pv-line); border-radius: 12px; background: #fdfbf7; color: #4a4a4a; font-size: 0.95rem; line-height: 1.55; }
.pv-note.is-good { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.pv-alert { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #f5c2c4; border-radius: 12px; background: #fdf2f2; color: var(--pv-brand); font-size: 0.95rem; line-height: 1.55; }

/* --- The button --- */
.pv-checkout .pv-btn-block { display: flex; width: 100%; gap: 10px; margin-top: 8px; border: 2px solid var(--pv-brand); font-family: inherit; }
.pv-checkout .pv-btn-block:disabled { opacity: 0.75; cursor: wait; transform: none; }
.pv-spinner { display: none; width: 20px; height: 20px; animation: pv-spin 1s linear infinite; }
.pv-spinner circle { opacity: 0.25; }
.pv-spinner path { opacity: 0.75; }
.is-busy .pv-spinner { display: block; }
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* --- Licence key, and what was sent where --- */
.pv-key {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; padding: 16px 18px;
    background: #fdfbf7; border: 2px dashed #d9d2c3; border-radius: 12px;
}
.pv-key code { min-width: 0; overflow-wrap: anywhere; background: none; color: var(--pv-ink); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; }
.pv-key button {
    flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--pv-field); border-radius: 8px; background: #ffffff;
    color: var(--pv-ink); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.pv-key button:hover { border-color: var(--pv-brand); color: var(--pv-brand); }
.pv-sent { margin: 0 0 20px; color: #4a4a4a; }
.pv-sent strong { color: var(--pv-ink); overflow-wrap: anywhere; }
.pv-sent small { display: block; margin-top: 4px; color: var(--pv-muted); }
.pv-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 24px; padding: 18px; border: 1px solid var(--pv-line); border-radius: 12px; background: #fdfbf7; }
.pv-facts dt { color: var(--pv-muted); }
.pv-facts dd { margin: 0; color: var(--pv-ink); font-weight: 600; overflow-wrap: anywhere; }

/* Bot check: a field people never see. */
.dg-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
    .pv-checkout { padding: 48px 16px 64px; }
    .pv-checkout-intro h1 { font-size: 2rem; }
    .pv-checkout-intro p { font-size: 1.05rem; }
    .pv-checkout-card { padding: 24px 20px 28px; }
    .pv-key { flex-direction: column; align-items: stretch; text-align: center; }
}
