/* ═══════════════════════════════════════════════════════
   SignWell Payment Integration — Styles
   ═══════════════════════════════════════════════════════ */

.swp-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Step Container ──────────────────────────────────── */
.swp-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.swp-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px;
}

.swp-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

.swp-price {
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
    margin: 0 0 24px;
}

/* ─── Form Fields ─────────────────────────────────────── */
.swp-field {
    margin-bottom: 18px;
}

.swp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.swp-field input[type="text"],
.swp-field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.swp-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ─── Stripe Card Box ─────────────────────────────────── */
.swp-card-box {
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}

.swp-card-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ─── Buttons ─────────────────────────────────────────── */
.swp-btn {
    width: 100%;
    padding: 13px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.swp-btn:hover {
    background: #1d4ed8;
}

.swp-btn:active {
    transform: scale(0.98);
}

.swp-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.swp-btn-green {
    background: #16a34a;
}

.swp-btn-green:hover {
    background: #15803d;
}

/* ─── Error / Info ────────────────────────────────────── */
.swp-error {
    color: #dc2626;
    font-size: 13px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.swp-info {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
}

/* ─── Payment Summary ─────────────────────────────────── */
.swp-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.swp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    color: #374151;
}

.swp-summary-row span {
    color: #6b7280;
}

/* ─── Secure Note ─────────────────────────────────────── */
.swp-secure-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 14px;
}

/* ─── Success Box ─────────────────────────────────────── */
.swp-success-box {
    text-align: center;
    padding: 10px 0;
}

.swp-success-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.swp-success-box h3 {
    font-size: 22px;
    color: #16a34a;
    margin: 0 0 10px;
}

.swp-success-box p {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.swp-receipt-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    color: #374151;
}

.swp-receipt-box p {
    margin: 6px 0;
    color: #374151;
}

/* ─── Loading Overlay ─────────────────────────────────── */
.swp-loading {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.88);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.swp-spinner {
    width: 44px; height: 44px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: swp-spin 0.8s linear infinite;
    margin-bottom: 14px;
}

.swp-loading p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

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

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 560px) {
    .swp-step {
        padding: 20px 16px;
    }
    .swp-price {
        font-size: 22px;
    }
}
