/* NucleoParking Reservation Widget v1.0 */
/* Prefix: .npw- — no external dependencies */

.npw {
    --npw-primary: #2563eb;
    --npw-primary-hover: #1d4ed8;
    --npw-success: #059669;
    --npw-error: #dc2626;
    --npw-text: #0f172a;
    --npw-text-secondary: #64748b;
    --npw-border: #e2e8f0;
    --npw-bg-light: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: var(--npw-text);
    max-width: 680px;
    margin: 0 auto;
}

.npw *, .npw *::before, .npw *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Step indicator ─────────────────────────────────────────── */
.npw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    padding: 0 1rem;
}
.npw-step-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--npw-border);
    background: white;
    color: #94a3b8;
    font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    user-select: none;
}
.npw-step-circle.active {
    background: var(--npw-primary);
    border-color: var(--npw-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.npw-step-circle.done {
    background: var(--npw-success);
    border-color: var(--npw-success);
    color: white;
}
.npw-step-line {
    flex: 1; height: 2px;
    background: var(--npw-border);
    min-width: 32px;
    transition: background 0.3s;
}
.npw-step-line.done { background: var(--npw-success); }

/* ── Card ───────────────────────────────────────────────────── */
.npw-card {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 4px 32px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
}

/* ── Section title ──────────────────────────────────────────── */
.npw-title {
    font-size: 1.2rem; font-weight: 700;
    color: var(--npw-text);
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* ── Grid rows ──────────────────────────────────────────────── */
.npw-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 520px) { .npw-row { grid-template-columns: 1fr; } }

/* ── Field ──────────────────────────────────────────────────── */
.npw-field { margin-bottom: 1rem; }
.npw-field:last-child { margin-bottom: 0; }

.npw-label {
    display: block;
    font-size: 0.8125rem; font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}
.npw-hint {
    font-size: 0.75rem;
    color: var(--npw-text-secondary);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* ── Inputs / Selects ───────────────────────────────────────── */
.npw-input,
.npw-select {
    width: 100%;
    padding: 0.6875rem 0.9375rem;
    border: 1.5px solid var(--npw-border);
    border-radius: 10px;
    font-size: 0.9375rem;
    color: var(--npw-text);
    background: white;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none; -webkit-appearance: none;
}
.npw-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.npw-input:focus, .npw-select:focus {
    border-color: var(--npw-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── Checkbox ───────────────────────────────────────────────── */
.npw-checkbox-wrap {
    display: flex; align-items: center; gap: 0.625rem;
    cursor: pointer; padding: 0.625rem 0;
}
.npw-checkbox-wrap input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--npw-primary);
    cursor: pointer; flex-shrink: 0;
}
.npw-checkbox-label { font-size: 0.875rem; color: #374151; line-height: 1.3; }

/* ── Buttons ────────────────────────────────────────────────── */
.npw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    width: 100%; margin-top: 1.25rem;
    text-align: center;
}
.npw-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.npw-btn-primary { background: var(--npw-primary); color: white; }
.npw-btn-primary:hover:not(:disabled) { background: var(--npw-primary-hover); }

.npw-btn-secondary { background: #f1f5f9; color: #374151; }
.npw-btn-secondary:hover:not(:disabled) { background: #e2e8f0; }

.npw-btn-back {
    width: auto; margin: 0; padding: 0.625rem 1rem;
    background: transparent; color: var(--npw-text-secondary);
    font-size: 0.875rem;
}
.npw-btn-back:hover { background: #f1f5f9; color: var(--npw-text); }

/* ── Price banner (step 2) ──────────────────────────────────── */
.npw-price-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.npw-price-label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.npw-price-without { font-size: 1.125rem; text-decoration: line-through; color: #f87171; }
.npw-price-total { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.npw-price-days { font-size: 0.8rem; opacity: 0.65; margin-top: 0.25rem; }
.npw-price-saving { background: rgba(255,255,255,.15); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem; }

/* ── Services summary (step 2) ──────────────────────────────── */
.npw-services-summary {
    background: var(--npw-bg-light);
    border: 1px solid var(--npw-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.npw-services-summary-title {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--npw-text-secondary);
    margin-bottom: 0.75rem;
}
.npw-svc-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; padding: 0.375rem 0;
    border-bottom: 1px solid var(--npw-border);
}
.npw-svc-row:last-child { border-bottom: none; }
.npw-svc-name { font-size: 0.9rem; font-weight: 600; color: var(--npw-text); }
.npw-svc-ref { font-size: 0.775rem; color: var(--npw-text-secondary); margin-top: 0.125rem; }
.npw-svc-amount { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.npw-svc-amount.included { color: var(--npw-success); }

/* ── Payment method pills ───────────────────────────────────── */
.npw-pm-list { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.5rem; }
.npw-pm-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--npw-border);
    background: white; color: #475569;
    font-weight: 500; font-size: 0.9rem;
    cursor: pointer; transition: all 0.15s;
    width: auto; margin: 0;
}
.npw-pm-btn.selected {
    border-color: var(--npw-primary);
    background: #eff6ff; color: var(--npw-primary);
    font-weight: 700;
}
.npw-pm-btn:hover { border-color: #93c5fd; }

/* ── Info note ──────────────────────────────────────────────── */
.npw-info-note {
    background: #f8fafc; border: 1px solid var(--npw-border);
    border-radius: 10px; padding: 0.875rem 1rem;
    font-size: 0.875rem; color: var(--npw-text-secondary);
    line-height: 1.5; margin-bottom: 1.25rem;
}

/* ── Final summary (step 3) ─────────────────────────────────── */
.npw-final-summary {
    background: #eff6ff; border: 1.5px solid #bfdbfe;
    border-radius: 12px; padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.npw-final-summary-title {
    font-weight: 700; font-size: 0.9375rem;
    color: var(--npw-text); margin-bottom: 0.875rem;
    padding-bottom: 0.75rem; border-bottom: 1px solid #dbeafe;
}
.npw-summary-row {
    display: flex; justify-content: space-between;
    font-size: 0.875rem; color: #374151; padding: 0.25rem 0;
}
.npw-summary-total {
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 1.125rem; color: #1e40af;
    padding-top: 0.75rem; margin-top: 0.5rem;
    border-top: 1.5px solid #bfdbfe;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.npw-alert {
    padding: 0.875rem 1rem; border-radius: 9px;
    font-size: 0.9rem; line-height: 1.45;
}
.npw-alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: var(--npw-error);
}
.npw-alert-info {
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.npw-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--npw-primary);
    border-radius: 50%;
    animation: npw-spin 0.75s linear infinite;
    margin: 0 auto;
}
@keyframes npw-spin { to { transform: rotate(360deg); } }
