/* ==========================================================================
   OrFlo contact page (contact.php). Uses the brand tokens from styles.css.
   ========================================================================== */

.contact-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--primary-dark, #001453);
    color: #fff;
    padding: calc(var(--header-h, 72px) + 3rem) 0 3rem;
    text-align: center;
}
/* Tekst boven de foto-laag (.hero-bg, gedeeld met de pricing-hero) */
.contact-hero .container { position: relative; z-index: 2; }
.contact-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 0.6rem; }
.contact-hero p { color: rgba(255, 255, 255, 0.82); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.contact-section { padding: 3rem 0 4rem; }

.contact-wrap {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
@media (max-width: 880px) {
    .contact-wrap { grid-template-columns: 1fr; }
}

/* ---- info column ---------------------------------------------------- */

.contact-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
    padding: 1.75rem;
}
.contact-brand { font-size: 1.15rem; font-weight: 800; color: var(--text-dark, #191c1e); margin: 0; }
.contact-sub { font-size: 0.9rem; color: var(--text-subtle, #64748b); margin: 0.15rem 0 1.4rem; }

.contact-detail {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.7rem 0;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.contact-detail:first-of-type { border-top: 0; }
.contact-detail svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--primary, #00288e); margin-top: 2px; }
.contact-detail h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-subtle, #64748b); font-weight: 700; margin: 0 0 0.15rem; }
.contact-detail p, .contact-detail a { font-size: 0.94rem; color: var(--text-dark, #191c1e); margin: 0; text-decoration: none; line-height: 1.5; }
.contact-detail a:hover { color: var(--primary, #00288e); text-decoration: underline; }
.contact-meta { margin-top: 1.2rem; font-size: 0.8rem; color: var(--text-subtle, #64748b); line-height: 1.6; }

/* ---- form column ---------------------------------------------------- */

.contact-form-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,.1));
    padding: 1.9rem;
}

/* segmented type selector */
.cf-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0 0 1.6rem;
    padding: 0;
    border: 0;          /* remove the default <fieldset> frame around the buttons */
    min-width: 0;
}
.cf-type { position: relative; }
.cf-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cf-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    padding: 0.85rem 0.5rem;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light, #444653);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    height: 100%;
}
.cf-type-label svg { width: 22px; height: 22px; color: var(--text-subtle, #64748b); transition: color .15s; }
.cf-type input:hover + .cf-type-label { border-color: var(--border-strong, #c4c5d5); }
.cf-type input:checked + .cf-type-label {
    border-color: var(--primary, #00288e);
    background: var(--primary-fixed, #dde1ff);
    color: var(--primary-dark, #001453);
}
.cf-type input:checked + .cf-type-label svg { color: var(--primary, #00288e); }
.cf-type input:focus-visible + .cf-type-label { outline: 3px solid var(--accent, #fd761a); outline-offset: 2px; }

/* fields */
.cf-field { margin-bottom: 1.05rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; gap: 0; } }

.cf-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark, #191c1e); margin-bottom: 0.35rem; }
.cf-label .cf-req { color: var(--accent-dark, #e66000); }
.cf-opt { font-weight: 400; color: var(--text-subtle, #64748b); font-size: 0.8rem; }

.cf-input, .cf-textarea, .cf-select {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark, #191c1e);
    background: var(--surface, #f7f9fb);
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 4px);
    padding: 0.7rem 0.85rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.cf-textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.cf-input:focus, .cf-textarea:focus, .cf-select:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary, #00288e);
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12);
}
.cf-field.is-error .cf-input,
.cf-field.is-error .cf-textarea { border-color: #dc2626; background: #fef2f2; }
.cf-error { display: none; color: #dc2626; font-size: 0.8rem; margin-top: 0.3rem; }
.cf-field.is-error .cf-error { display: block; }

/* conditional blocks */
.cf-block { display: none; }
.cf-block.is-active { display: block; }
.cf-block-title { font-size: 0.9rem; font-weight: 700; color: var(--text-dark, #191c1e); margin: 0 0 0.2rem; }
.cf-block-hint { font-size: 0.82rem; color: var(--text-subtle, #64748b); margin: 0 0 0.75rem; }

/* preferred moments */
.cf-slot { display: grid; grid-template-columns: 1fr 130px auto; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
@media (max-width: 480px) { .cf-slot { grid-template-columns: 1fr 110px auto; } }
.cf-slot-remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 auto;
    background: none; border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 4px); color: var(--text-subtle, #64748b); cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.cf-slot-remove:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.cf-slot-remove svg { width: 18px; height: 18px; }
.cf-add {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: none; border: 0; padding: 0.3rem 0; margin-top: 0.1rem;
    color: var(--primary, #00288e); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.cf-add:hover { color: var(--primary-dark, #001453); text-decoration: underline; }
.cf-add svg { width: 18px; height: 18px; }
.cf-add[hidden] { display: none; }

/* consent + submit */
.cf-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.2rem 0; font-size: 0.86rem; color: var(--text-light, #444653); }
.cf-consent input { margin-top: 0.2rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary, #00288e); }
.cf-consent a { color: var(--primary, #00288e); text-decoration: underline; }
.cf-field.is-error.cf-consent { color: #dc2626; }

.cf-submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cf-submit { min-width: 200px; }
.cf-submit[disabled] { opacity: 0.65; cursor: progress; }
.cf-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
    animation: cf-spin 0.7s linear infinite; display: none;
}
.cf-submit.is-loading .cf-spinner { display: inline-block; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* banners */
.cf-banner { border-radius: var(--radius-md, 8px); padding: 1rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.92rem; display: none; }
.cf-banner.is-visible { display: block; }
.cf-banner--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.cf-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}
.cf-success.is-visible { display: block; }
.cf-success-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--primary-fixed, #dde1ff); color: var(--primary, #00288e);
}
.cf-success-icon svg { width: 30px; height: 30px; }
.cf-success h3 { font-size: 1.3rem; color: var(--text-dark, #191c1e); margin: 0 0 0.4rem; }
.cf-success p { color: var(--text-light, #444653); max-width: 420px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { .cf-spinner { animation: none; } }
