/* Payment page styles — Gravity Projex. Loaded via inc/assets.php per-template loader. */
/* ── Pay page scoped styles ── */
#gp-pay-page {
    --coral: #ff6b6b;
    --navy:  #0d1b2a;
    --card:  rgba(255,255,255,0.03);
    --border:rgba(255,255,255,0.08);
    min-height: 100vh;
    padding-top: 100px;
}

/* Product grid */
.gp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.gp-product-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    user-select: none;
}
.gp-product-card:hover {
    border-color: rgba(255,107,107,0.3);
    background: rgba(255,107,107,0.04);
    transform: translateY(-2px);
}
.gp-product-card.selected {
    border-color: var(--coral);
    background: rgba(255,107,107,0.07);
}
.gp-product-card.selected::after {
    content: '✓';
    position: absolute;
    top: 14px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 24px;
    text-align: center;
}
.gp-product-card.featured {
    border-color: rgba(255,107,107,0.4);
    background: rgba(255,107,107,0.05);
}
.gp-product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--coral);
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.25);
    border-radius: 100px;
    padding: 3px 10px;
    margin-bottom: 12px;
}
.gp-product-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.gp-product-desc { font-size: 13px; color: #94a3b8; line-height: 1.6; margin-bottom: 14px; }
.gp-product-price { font-size: 26px; font-weight: 800; color: #fff; }
.gp-product-price span { font-size: 14px; font-weight: 400; color: #64748b; }

/* Form fields */
.gp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.gp-field label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
}
.gp-field label .req { color: var(--coral); }
.gp-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
}
.gp-input:focus { border-color: var(--coral); background: rgba(255,107,107,0.04); }
.gp-input::placeholder { color: #475569; }
textarea.gp-input { resize: vertical; min-height: 90px; }

/* Stripe element container */
#gp-card-element {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}
#gp-card-element.StripeElement--focus { border-color: var(--coral); }
#gp-card-element.StripeElement--invalid { border-color: #f87171; }

/* Steps */
.gp-step {
    display: none;
}
.gp-step.active {
    display: block;
    animation: gp-fadein 0.3s ease;
}
@keyframes gp-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pay button */
.gp-pay-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 100px;
    background: var(--coral);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
}
.gp-pay-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.gp-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gp-back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    font-family: inherit;
}
.gp-back-btn:hover { color: #fff; }

/* Error */
#gp-pay-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 14px;
    padding: 12px 16px;
    display: none;
    margin-bottom: 16px;
}

/* Order summary bar */
.gp-order-summary {
    background: rgba(255,107,107,0.06);
    border: 1px solid rgba(255,107,107,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}
.gp-order-summary-label { font-size: 14px; color: #94a3b8; }
.gp-order-summary-product { font-size: 16px; font-weight: 700; color: #fff; }
.gp-order-summary-price { font-size: 22px; font-weight: 800; color: var(--coral); white-space: nowrap; }

/* Intake form section */
.gp-intake-section {
    margin-top: 8px;
}
.gp-intake-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .gp-intake-grid { grid-template-columns: 1fr; }
    .gp-product-price { font-size: 22px; }
}

/* Success state */
.gp-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(34,197,94,0.12);
    border: 2px solid rgba(34,197,94,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Pulse mention */
.gp-pulse-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    color: #64748b;
}
.gp-pulse-tag strong { color: #94a3b8; }

/* Processing overlay */
.gp-processing {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
    padding: 12px 0;
}
.gp-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,107,107,0.2);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: gp-spin 0.7s linear infinite;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* Trust row */
.gp-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.gp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}
.gp-trust-item svg { color: #22c55e; }
/* ── Accessibility: visible keyboard focus (WCAG 2.4.7 / 2.4.11) ── */
.gp-input:focus-visible,
.gp-pay-btn:focus-visible,
.gp-back-btn:focus-visible,
.gp-product-card:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}
#gp-card-element:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.req-note { color: #94a3b8; font-size: 13px; margin: -8px 0 16px; }