/* ============================================================
   A2K ScoreCard Form — a2k-api.css
   Dark navy theme, matching Elementor site aesthetic
   ============================================================ */

/* ── Reset / scope ─────────────────────────────────────────── */
.a2k-scorecard-wrap *,
.a2k-scorecard-wrap *::before,
.a2k-scorecard-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Wrapper ───────────────────────────────────────────────── */
.a2k-scorecard-wrap {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e2e8f0;
}

/* ── Step visibility ───────────────────────────────────────── */
.a2k-step {
    display: none !important;
}

.a2k-step--active {
    display: block !important;
}

/* ── Card ──────────────────────────────────────────────────── */
.a2k-card {
    background: #0d1b2a;
    border: 1px solid rgba(99, 179, 237, 0.15);
    border-radius: 16px;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.a2k-card--confirmation {
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 52px 40px;
}

/* ── Label ─────────────────────────────────────────────────── */
.a2k-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7fb3d3;
    margin-bottom: 8px;
}

/* ── Inputs ────────────────────────────────────────────────── */
.a2k-input {
    width: 100%;
    background: #132336;
    border: 1px solid rgba(99, 179, 237, 0.2);
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 15px;
    color: #e2e8f0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.a2k-input::placeholder {
    color: #4a6a85;
}

.a2k-input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}

.a2k-input--error {
    border-color: #fc8181;
}

/* ── Row (two columns) ─────────────────────────────────────── */
.a2k-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .a2k-row {
        grid-template-columns: 1fr;
    }

    .a2k-card {
        padding: 28px 20px;
    }
}

/* ── Error messages ────────────────────────────────────────── */
.a2k-error {
    display: none;
    font-size: 12px;
    color: #fc8181;
    margin-top: 6px;
    min-height: 16px;
}

.a2k-error--visible {
    display: block;
}

.a2k-error--global {
    text-align: center;
    font-size: 13px;
}

/* ── Primary button ────────────────────────────────────────── */
.a2k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    text-align: center;
}

.a2k-btn--primary {
    background: linear-gradient(135deg, #3182ce 0%, #805ad5 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.35);
}

.a2k-btn--primary:hover:not(:disabled) {
    opacity: 0.92;
    box-shadow: 0 6px 28px rgba(49, 130, 206, 0.5);
    transform: translateY(-1px);
}

.a2k-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.a2k-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.a2k-btn--ghost {
    background: transparent;
    color: #7fb3d3;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    padding: 8px;
    width: auto;
    margin: 0 auto;
    border-radius: 4px;
}

.a2k-btn--ghost:hover {
    color: #63b3ed;
}

/* ── Button loading state ──────────────────────────────────── */
.a2k-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: a2k-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.a2k-btn--loading .a2k-btn__spinner {
    display: inline-block;
}

.a2k-btn--loading .a2k-btn__label {
    opacity: 0.7;
}

@keyframes a2k-spin {
    to { transform: rotate(360deg); }
}

/* ── Tagline ───────────────────────────────────────────────── */
.a2k-tagline {
    font-size: 12px;
    color: #4fd1c5;
    text-align: center;
    letter-spacing: 0.04em;
    margin-top: -4px;
}

/* ── OTP digit inputs ──────────────────────────────────────── */
.a2k-otp-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.a2k-otp-input {
    width: 52px;
    height: 60px;
    background: #132336;
    border: 1px solid rgba(99, 179, 237, 0.2);
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    outline: none;
    caret-color: #63b3ed;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.a2k-otp-input::-webkit-outer-spin-button,
.a2k-otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.a2k-otp-input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}

.a2k-otp-input--filled {
    border-color: rgba(99, 179, 237, 0.5);
}

@media (max-width: 400px) {
    .a2k-otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .a2k-otp-wrap {
        gap: 6px;
    }
}

/* ── Step 2 headings ───────────────────────────────────────── */
.a2k-step__title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
}

.a2k-step__subtitle {
    font-size: 14px;
    color: #7fb3d3;
    text-align: center;
    margin-top: -8px;
}

/* ── Step 3 confirmation ───────────────────────────────────── */
.a2k-check-icon {
    width: 64px;
    height: 64px;
    color: #4fd1c5;
}

.a2k-check-icon svg {
    width: 100%;
    height: 100%;
}

.a2k-confirm-message {
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.6;
    max-width: 420px;
}

/* ── Step transition animation ─────────────────────────────── */
.a2k-step--entering {
    animation: a2k-fade-in 0.3s ease forwards;
}

@keyframes a2k-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── reCAPTCHA badge override (v3 invisible) ───────────────── */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}
