.tai-map-wrap {
    --tai-navy: #15243a;
    --tai-navy-2: #0d1929;
    --tai-orange: #f37121;
    --tai-orange-dark: #d95d0e;
    --tai-border: #dfe4ea;
    --tai-muted: #667085;
    --tai-danger: #b42318;
    --tai-danger-bg: #fef3f2;
    --tai-success-bg: #ecfdf3;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 32px auto;
    color: #172033;
}

.tai-map-card {
    width: min(100%, 760px);
    overflow: hidden;
    border: 1px solid var(--tai-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(13, 25, 41, .10);
}

.tai-map-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px 30px;
    background: linear-gradient(135deg, var(--tai-navy), var(--tai-navy-2));
    color: #fff;
}

.tai-map-header h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.tai-map-header p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.6;
}

.tai-map-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--tai-orange);
    color: #fff;
    font-weight: 800;
}

.tai-map-step {
    padding: 30px;
}

.tai-map-step-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff2e9;
    color: #b94700;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tai-map-step h3 {
    margin: 0 0 8px;
    color: var(--tai-navy);
    font-size: 24px;
    line-height: 1.3;
}

.tai-map-intro {
    margin: 0 0 22px;
    color: var(--tai-muted);
}

.tai-map-alert {
    margin: 24px 30px 0;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 8px;
}

.tai-map-alert-error {
    border-color: #fecdca;
    background: var(--tai-danger-bg);
    color: var(--tai-danger);
}

.tai-map-alert p {
    margin: 0;
}

.tai-map-alert p + p {
    margin-top: 5px;
}

.tai-map-form {
    display: grid;
    gap: 18px;
}

.tai-map-field label {
    display: block;
    margin-bottom: 7px;
    color: #27364c;
    font-weight: 700;
}

.tai-map-field label span {
    color: var(--tai-danger);
}

.tai-map-field input[type="text"],
.tai-map-field input[type="email"] {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #cbd2dc;
    border-radius: 8px;
    background: #fff !important;
    color: #172033;
    font-size: 18px;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}

.tai-map-field input:focus {
    outline: none;
    border-color: var(--tai-orange);
    box-shadow: 0 0 0 3px rgba(243, 113, 33, .14);
}

.tai-map-field input.tai-map-invalid {
    border-color: var(--tai-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .10);
}

.tai-map-help {
    margin: 7px 0 0;
    color: var(--tai-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tai-map-field-error {
    display: none;
    margin-top: 6px;
    color: var(--tai-danger);
    font-size: 13px;
    font-weight: 600;
}

.tai-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 11px 20px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: transform .15s, background .15s, box-shadow .15s;
}

.tai-map-button-primary {
    background: var(--tai-orange);
    color: #fff;
    box-shadow: 0 6px 16px rgba(243, 113, 33, .24);
}

.tai-map-button-primary:hover,
.tai-map-button-primary:focus {
    background: var(--tai-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

.tai-map-button:disabled {
    cursor: wait;
    opacity: .82;
    transform: none;
}

.tai-map-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tai-map-spin .7s linear infinite;
}

.tai-map-button.is-loading .tai-map-spinner {
    display: inline-block;
}

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

.tai-map-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
    overflow: hidden;
    border: 1px solid var(--tai-border);
    border-radius: 10px;
    background: #f9fafb;
}

.tai-map-summary > div {
    min-width: 0;
    padding: 17px;
    border-right: 1px solid var(--tai-border);
}

.tai-map-summary > div:last-child { border-right: 0; }
.tai-map-summary dt { margin-bottom: 5px; color: var(--tai-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tai-map-summary dd { margin: 0; overflow-wrap: anywhere; color: var(--tai-navy); font-size: 16px; font-weight: 800; }
.tai-map-summary .tai-map-balance { color: var(--tai-orange-dark); font-size: 20px; }
.tai-map-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #fff2e9; color: #a94303; font-size: 12px; }

.tai-map-back {
    justify-self: center;
    color: var(--tai-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tai-map-back:hover { color: var(--tai-orange-dark); }

.tai-map-privacy {
    display: flex;
    gap: 8px;
    padding: 16px 30px;
    border-top: 1px solid var(--tai-border);
    background: #f8fafc;
    color: var(--tai-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tai-map-privacy strong { flex: 0 0 auto; color: #344054; }
.tai-map-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tai-map-checkout-summary {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--tai-border);
    border-radius: 10px;
    background: #f8fafc;
}

.tai-map-checkout-summary h2 { margin-top: 0; color: var(--tai-navy); }
.tai-map-checkout-summary dl { display: grid; gap: 8px; margin: 16px 0; }
.tai-map-checkout-summary dl div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.tai-map-checkout-summary dt { color: var(--tai-muted); }
.tai-map-checkout-summary dd { margin: 0; color: var(--tai-navy); font-weight: 800; text-align: right; }
.tai-map-pay-notice { margin-bottom: 20px !important; }
.tai-map-thankyou .woocommerce-order-overview { margin-top: 20px; }

@media (max-width: 640px) {
    .tai-map-wrap { margin: 18px auto; }
    .tai-map-card { border-radius: 10px; }
    .tai-map-header, .tai-map-step { padding: 22px 18px; }
    .tai-map-alert { margin: 18px 18px 0; }
    .tai-map-summary { grid-template-columns: 1fr; }
    .tai-map-summary > div { border-right: 0; border-bottom: 1px solid var(--tai-border); }
    .tai-map-summary > div:last-child { border-bottom: 0; }
    .tai-map-privacy { flex-direction: column; padding: 14px 18px; }
}
