/* ==========================================================================
   CONTACT PAGINA — Redesign v2
   Twee-kolommen layout: infopaneel + formuliarkaart
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   ZIJPANEEL — info cards
   -------------------------------------------------------------------------- */

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.side-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.side-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.side-card-title i {
    color: var(--primary);
}

/* Direct contact rijen */
.contact-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.contact-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.icon-chip {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.icon-chip.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.icon-chip.cyan {
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.contact-row-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-row-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Live status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.open {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.25);
}

.status-badge.closed {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
}

.status-badge.open .status-dot {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

/* Openingstijden tabel */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hours-table td {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--text-main);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hours-table tr.today td {
    color: var(--text-main);
}

.hours-table tr.today td:first-child::after {
    content: "•";
    color: var(--primary);
    margin-left: 0.45rem;
}

.hours-table tr.weekend td:last-child {
    color: #f87171;
    font-weight: 600;
}

.hours-note {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Verwachting-stappen */
.expect-step {
    display: flex;
    gap: 0.9rem;
    padding: 0.65rem 0;
}

.expect-step + .expect-step {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.expect-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.expect-step strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.expect-step p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.response-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

/* --------------------------------------------------------------------------
   FORMULIERKAART
   -------------------------------------------------------------------------- */

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.9;
}

.form-section {
    border: 0;
    padding: 0;
    margin: 0 0 2.25rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.section-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.section-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.section-head p {
    margin: 0.15rem 0 0;
    font-size: 0.83rem;
    color: var(--text-muted);
}

/* Inputs */
.field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.field-label .req {
    color: var(--primary);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field-grid .span-2 {
    grid-column: span 2;
}

@media (max-width: 560px) {
    .field-grid {
        grid-template-columns: 1fr;
    }

    .field-grid .span-2 {
        grid-column: span 1;
    }
}

#contactForm .form-input {
    padding: 0.9rem 1.15rem;
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color-scheme: dark;
}

#contactForm .form-input::placeholder {
    color: rgba(161, 161, 170, 0.55);
}

#contactForm .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(10, 10, 14, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 0 20px rgba(59, 130, 246, 0.12);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   DIENST-CHIPS
   -------------------------------------------------------------------------- */

.chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
}

.service-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.95rem;
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: left;
}

.service-chip i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.22s ease;
    width: 1.2em;
    text-align: center;
}

.service-chip:hover {
    border-color: rgba(59, 130, 246, 0.45);
    color: var(--text-main);
    transform: translateY(-2px);
}

.service-chip[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.12));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.22), inset 0 0 12px rgba(59, 130, 246, 0.06);
}

.service-chip[aria-pressed="true"] i {
    color: #60a5fa;
}

/* --------------------------------------------------------------------------
   CONTACTVOORKEUR — segmented control
   -------------------------------------------------------------------------- */

.seg-control {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
    background: rgba(10, 10, 14, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    max-width: 100%;
}

.seg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.seg-btn:hover {
    color: var(--text-main);
}

.seg-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
}

/* --------------------------------------------------------------------------
   GESPREK BOEKEN — switch + kalender + tijdslots
   -------------------------------------------------------------------------- */

.booking-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.09), rgba(6, 182, 212, 0.07));
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.22s ease;
}

.booking-toggle:hover {
    border-color: var(--primary);
}

.booking-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.booking-toggle-label > i {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.booking-toggle-label strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.booking-toggle-label span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.switch {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    width: 48px;
    height: 26px;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease;
    pointer-events: none;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.switch input:checked + .switch-track {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.switch input:checked + .switch-track::after {
    transform: translateX(22px);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Uitschuifbaar boekingspaneel */
.booking-panel {
    margin-top: 1.1rem;
    padding: 1.4rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(10, 10, 14, 0.45);
}

.booking-panel.reveal {
    animation: panelReveal 0.35s ease both;
}

@keyframes panelReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 560px) {
    .booking-date-row {
        grid-template-columns: 1fr;
    }
}

.slot-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 0.7rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 0.6rem;
}

.time-slot {
    padding: 0.62rem 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--text-main);
}

.time-slot[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.time-slot:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.booking-error {
    display: none;
    margin-top: 0.8rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.83rem;
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.09);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.booking-error.visible {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-confirm-note {
    display: flex;
    gap: 0.65rem;
    margin: 1.1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(45, 212, 191, 0.07);
    border: 1px solid rgba(45, 212, 191, 0.2);
    font-size: 0.81rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.booking-confirm-note i {
    color: #2dd4bf;
    margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   BERICHT + SUBMIT
   -------------------------------------------------------------------------- */

.char-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.45rem;
    font-variant-numeric: tabular-nums;
}

.submit-wrap {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.1rem 2rem;
    border: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(59, 130, 246, 0.38);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(59, 130, 246, 0.5);
    filter: brightness(1.06);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.privacy-note a {
    color: #60a5fa;
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

#contactForm .form-status.success {
    color: #4ade80;
}

#contactForm .form-status.error {
    color: #f87171;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-panel.reveal,
    .status-badge.open .status-dot {
        animation: none;
    }

    .service-chip,
    .time-slot,
    .btn-submit,
    .contact-row,
    .switch-track::after {
        transition: none;
    }
}
