/* ============================================================
   Move Spain Visa — Basic Package Calculator
   Design: matches VisaPage.jsx (Tailwind-based design system)
   Target: compact embed in ≤ 360 px iframe
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
#movespain-calculator-basic {
    --bc-blue: hsl(218, 56%, 40%);
    --bc-blue-dk: hsl(218, 56%, 27%);
    --bc-green: hsl(150, 48%, 30%);
    --bc-bg: hsl(210, 40%, 98%);
    --bc-border: hsl(214, 32%, 91%);
    --bc-text: hsl(222, 47%, 11%);
    --bc-muted: hsl(215, 16%, 47%);
    --bc-hint: hsl(215, 20%, 65%);
    --bc-radius: 12px;

    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--bc-text);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 12px;
    background: transparent;
}

/* ── Card ──────────────────────────────────────────────────── */
#movespain-calculator-basic .bsc-card {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .04);
}

/* ── Header ────────────────────────────────────────────────── */
#movespain-calculator-basic .bsc-header {
    background: var(--bc-bg);
    border-bottom: 1px solid var(--bc-border);
    padding: 12px 18px;
}

#movespain-calculator-basic .bsc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bc-blue);
    margin: 0;
    letter-spacing: -.01em;
}

#movespain-calculator-basic .ref-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: hsl(142, 76%, 25%);
    background: hsl(141, 79%, 94%);
    border: 1px solid hsl(141, 60%, 82%);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 4px;
}

#movespain-calculator-basic .bsc-desc {
    font-size: 11px;
    color: var(--bc-muted);
    margin: 4px 0 0;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
    min-height: 0;
}

/* ── Add-ons ────────────────────────────────────────────────── */
#movespain-calculator-basic .bsc-addons {
    padding: 0 18px;
}

#movespain-calculator-basic .bsc-addon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--bc-border);
    gap: 12px;
}

#movespain-calculator-basic .bsc-addon-label {
    flex: 1;
    cursor: pointer;
    min-width: 0;
    user-select: none;
}

#movespain-calculator-basic .bsc-addon-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--bc-text);
}

#movespain-calculator-basic .bsc-addon-fee {
    display: block;
    font-size: 11px;
    color: var(--bc-muted);
    margin-top: 1px;
}

#movespain-calculator-basic .bsc-addon-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Checkboxes ─────────────────────────────────────────────── */
#movespain-calculator-basic input[type="checkbox"]#basicTranslation,
#movespain-calculator-basic input[type="checkbox"]#basicHealth,
#movespain-calculator-basic input[type="checkbox"]#basicPostArrival {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--bc-hint);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
    display: inline-block;
}

#movespain-calculator-basic input[type="checkbox"]#basicTranslation:checked,
#movespain-calculator-basic input[type="checkbox"]#basicHealth:checked,
#movespain-calculator-basic input[type="checkbox"]#basicPostArrival:checked {
    background: var(--bc-green);
    border-color: var(--bc-green);
}

#movespain-calculator-basic input[type="checkbox"]#basicTranslation:checked::after,
#movespain-calculator-basic input[type="checkbox"]#basicHealth:checked::after,
#movespain-calculator-basic input[type="checkbox"]#basicPostArrival:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%) rotate(45deg);
    display: block;
    width: 4px;
    height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
}

#movespain-calculator-basic .bsc-add-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--bc-muted);
    cursor: pointer;
    user-select: none;
}

/* ── Footer: summary + price + CTA ─────────────────────────── */
#movespain-calculator-basic .bsc-footer {
    padding: 12px 18px;
    background: var(--bc-bg);
}

#movespain-calculator-basic .bsc-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#movespain-calculator-basic .bsc-summary-text {
    font-size: 11px;
    color: var(--bc-muted);
    margin: 0 0 8px;
}

#movespain-calculator-basic .bsc-price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--bc-blue);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* ── Pay button ─────────────────────────────────────────────── */
#movespain-calculator-basic .bsc-pay-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--bc-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
}

#movespain-calculator-basic .bsc-pay-btn:hover {
    opacity: .88;
}

#movespain-calculator-basic .bsc-pay-btn:active {
    transform: scale(.98);
}

#movespain-calculator-basic .bsc-pay-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 400px) {
    #movespain-calculator-basic .bsc-footer-row {
        flex-direction: column;
        align-items: stretch;
    }

    #movespain-calculator-basic .bsc-pay-btn {
        width: 100%;
        text-align: center;
    }
}