.iapc-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
    padding: 32px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.iapc-group { margin-bottom: 18px; }
.iapc-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: #374151; }
.iapc-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}
.iapc-group input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

#iapc-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
#iapc-submit:disabled { background: #9ca3af; cursor: not-allowed; }
.iapc-spin::after { content: '…'; margin-left: 8px; }

.iapc-message { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.iapc-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Thank-you panel */
.iapc-thankyou { text-align: center; }
.iapc-status-icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 26px; font-weight: 700;
}
.iapc-thankyou h1 { margin: 0 0 6px; font-size: 26px; color: #111827; }
.iapc-thankyou > p { margin: 0 0 22px; color: #4b5563; font-size: 15px; }

.iapc-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; text-align: left; }
.iapc-details div { border: 1px solid #eef2f7; border-radius: 8px; padding: 12px 14px; background: #f9fafb; }
.iapc-details dt { margin: 0 0 4px; color: #6b7280; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.iapc-details dd { margin: 0; color: #111827; font-size: 14px; overflow-wrap: anywhere; }
.iapc-ref { color: #6b7280; font-size: 12px; overflow-wrap: anywhere; }

.iapc-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff4e5; color: #e67e22; }
.status-failed { background: #ffebee; color: #c62828; }

@media (max-width: 480px) {
    .iapc-card { padding: 24px; }
    .iapc-details { grid-template-columns: 1fr; }
}
