/* Base styles from the design templates; the page styles themselves are inline in the Blade views. */
body { margin: 0; }
a { color: #26509E; }
a:hover { color: #1A3A75; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }

/* Hidden off-screen vertically, not horizontally: a huge negative left offset widens RTL (Arabic) pages to ~10,000px. */
.skip-link { position: absolute; inset-inline-start: 12px; transform: translateY(-200%); top: 8px; z-index: 100; background: #F5A623; color: #14203A; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { transform: none; }

/* Sticky "Check je adres" button: mobile only (mobile.css hides it while the check is on screen). */
.dunya-sticky { display: none !important; }
@media (max-width: 760px) { .dunya-sticky { display: flex !important; } }

/* Form feedback */
.field-error { margin: 0; font-size: 13px; font-weight: 600; color: #A3261B; }
.form-status { border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.form-status.success { background: #E8F3EE; border: 1px solid #B7DCC9; color: #0B4F3A; }
.form-status.warning { background: #FFF4E0; border: 1px solid #F2D49B; color: #6B4A00; }
.form-status.error { background: #FDECEC; border: 1px solid #F2C2BE; color: #A3261B; }
button[disabled] { opacity: 0.6; cursor: wait !important; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A fieldset never shrinks below its content by default, which pushes forms off narrow screens. */
fieldset { min-width: 0; }
input, select, textarea { max-width: 100%; box-sizing: border-box; }

/* FAQ */
details summary { cursor: pointer; }

/* Arabic: right-to-left. The inline styles are written for left-to-right. */
[dir="rtl"] #app { font-family: 'Noto Sans Arabic', 'Montserrat', system-ui, sans-serif !important; }
[dir="rtl"] #app [style*="text-align: left"] { text-align: right !important; }
[dir="rtl"] #app ul[style*="padding-left"], [dir="rtl"] #app ol[style*="padding-left"] { padding-left: 0 !important; padding-right: 20px; }
[dir="rtl"] .num, [dir="rtl"] [lang="nl"], [dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; }

/* Phones: most customers use Dunya on a phone. */
@media (max-width: 760px) {
    /* iOS zooms into any field under 16px when it gets focus. */
    input:not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: 16px !important; }
    /* Tap targets of at least ~44px for links that stand on their own. */
    footer a, main nav:not(#hoofdmenu) > a, main a[href$="/pdf"], .tap-link { display: inline-block; padding-block: 12px; }
    main a[href$="/pdf"] { padding-inline: 6px; }
    small { font-size: max(13px, 0.83em); }
    details summary { padding-block: 11px; }
}

/* Cookie banner (Google Analytics consent). Both choices look the same: refusing is as easy as accepting. */
.cookie-banner { position: fixed; z-index: 1000; inset-inline: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: #FFFFFF; color: #14203A; border: 1px solid #D5DBE8; border-radius: 18px; box-shadow: 0 12px 40px rgba(20, 32, 58, 0.22); padding: 18px 20px; font-size: 15px; line-height: 1.55; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: #26509E; font-weight: 700; }
.cookie-banner div { display: flex; gap: 10px; }
.cookie-banner button { flex: 1; font: inherit; font-weight: 800; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 2px solid #26509E; background: #26509E; color: #FFFFFF; cursor: pointer; }
.cookie-banner button:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }
body.cookie-open .dunya-sticky { display: none !important; }
@media (max-width: 760px) { .cookie-banner { inset-inline: 12px; bottom: 12px; padding: 16px; } }

/* Address fields side by side, also on phones (house number + box, postcode + city) */
.addr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.addr-row.addr-pc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 760px) {
    #bestelformulier, #check { padding: 20px !important; }
    .check-steps { gap: 6px !important; }
    footer button[data-consent-open] { padding-block: 12px !important; }
}

/* Webchat (shared hermes/webchat package): Dunya colours, and out of the way of the sticky button and the cookie banner */
.wc { --wc-accent: #26509E; --wc-ink: #14203A; --wc-muted: #4B5670; --wc-bg: #F5F7FC; --wc-line: #E2E6F0; --wc-input: #B6BFD3; --wc-font: 'Montserrat', 'Noto Sans Arabic', system-ui, sans-serif; --wc-z: 900; }
body.cookie-open .wc-launcher { display: none; }
@media (max-width: 760px) {
    body:has(.dunya-sticky):not(.hide-sticky) .wc { --wc-bottom: 84px; }
}

/* Pay page (shared hermes/pay package): Dunya colours */
.pay { --pay-accent: #26509E; --pay-button: #F5A623; --pay-button-ink: #14203A; --pay-ink: #14203A; --pay-muted: #4B5670; --pay-line: #E2E6F0; --pay-radius: 24px; }
