/* =========================================================
   AFSPRAAK FORMULIER - BASIS CSS
   ========================================================= */

/* Google Fonts Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');


/* =========================================================
   KOPPEN
   ========================================================= */

h1,
h3.text-center,
h5 {
    font-family: 'Poppins', sans-serif;
    color: #81b6d0;
}

h1 {
    font-size: 14px;
}

h3.text-center {
    font-size: 20px;
    color: #1b1e23;
}

h4.text-center {
    text-align: center;
    font-size: 18px;
    color: #2a5e51;
}


/* =========================================================
   CONTACT / FORMULIER
   ========================================================= */

#contact {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
}


/* Algemene formulierletter */
#contact input,
#contact select,
#contact textarea {
    font-family: 'Poppins', sans-serif;
}


/* Focus */
#contact input:focus,
#contact select:focus,
#contact textarea:focus {
    background: #fff !important;
    border: 2px solid #a3c9ff !important;
    box-shadow: none !important;
}


/* Ongeldige velden */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: #ccc !important;
    color: #aaa;
}


/* Placeholder */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #aaa;
    opacity: 1;
}


/* =========================================================
   TEKSTVELDEN
   ========================================================= */

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"] {
    background: #f1f1f1;
    cursor: pointer;
    border: 0;
    width: 380px;
    height: 1.6em;
    font-size: 16px;
    color: #000;
    padding: 8px;
    border-radius: 4px;
    text-align: left;
    vertical-align: middle;
}


/* Algemene maat kleinere velden */
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"] {
    font-size: 16px !important;
    height: 2.6em !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

#contact textarea {
    background: #f1f1f1;
    cursor: pointer;
    border: 0;
    color: #000;
    font-size: 16px !important;
    line-height: 1.5em;
    height: calc(3 * 1.5em + 16px) !important;
    width: 325px !important;
    padding: 8px !important;
    border-radius: 4px;
    box-sizing: border-box !important;
}


/* =========================================================
   SELECT VELDEN
   ========================================================= */

select.cform-text,
#contact select.initial-option,
#hours,
#minutes,
#hours2,
#minutes2,
#halenHours,
#halenMinutes,
#brengenHours,
#brengenMinutes {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    width: 325px;
    height: 2.4em;
    background: #f1f1f1;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    color: #aaa;
    padding: 5px 10px;
    box-sizing: border-box;
}


/* Tijdvelden smaller */
#hours,
#minutes,
#hours2,
#minutes2,
#halenHours,
#halenMinutes,
#brengenHours,
#brengenMinutes {
    width: 120px;
    height: 2.2em;
    padding: 0 10px;
}


/* Algemene hoogte/lettergrootte selecties */
#contact select.cform-text,
#hours,
#minutes,
#hours2,
#minutes2,
#halenHours,
#halenMinutes,
#brengenHours,
#brengenMinutes {
    font-size: 16px !important;
    height: 2.6em !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
}


/* Opties */
select.cform-text option,
#hours option,
#minutes option,
#hours2 option,
#minutes2 option,
#halenHours option,
#halenMinutes option,
#brengenHours option,
#brengenMinutes option {
    background: #fff;
    font-size: 16px;
    color: #000;
}


/* Placeholderopties */
select.cform-text option[value=""],
#hours option[value=""],
#minutes option[value=""],
#hours2 option[value=""],
#minutes2 option[value=""],
#halenHours option[value=""],
#halenMinutes option[value=""],
#brengenHours option[value=""],
#brengenMinutes option[value=""] {
    color: #aaa;
}


/* Select na selectie */
select.cform-text.selected,
#hours.selected,
#minutes.selected,
#hours2.selected,
#minutes2.selected,
#halenHours.selected,
#halenMinutes.selected,
#brengenHours.selected,
#brengenMinutes.selected {
    color: #000 !important;
}


/* Eerste optie */
select.cform-text option:first-child,
#hours option:first-child,
#minutes option:first-child,
#hours2 option:first-child,
#minutes2 option:first-child,
#halenHours option:first-child,
#halenMinutes option:first-child,
#brengenHours option:first-child,
#brengenMinutes option:first-child {
    background-color: #808080;
    color: #FFFFFF;
    font-size: 18px;
}


/* Extra tijdvelden */
#hours2,
#minutes2 {
    color: #aaa;
}

#hours2.selected,
#minutes2.selected {
    color: #000;
}


/* =========================================================
   DATUM INPUT
   ========================================================= */

.datepicker-input {
    width: 260px !important;
}


/* =========================================================
   VERBORGEN VELDEN
   ========================================================= */

input#klantnummer.hform-text,
input#security_id.hform-text {
    display: none;
}


/* =========================================================
   SUBMIT KNOP
   ========================================================= */

input[type="submit"],
input[type="submit"]:hover {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF !important;
    width: 380px;
    height: 1.3em;
    font-size: 20px !important;
    padding: 0.5em;
    letter-spacing: 0.05em;
    border: 0;
    text-transform: none;
    background: #0056b3 !important;
    border-radius: 3px;
    box-shadow: none;
    cursor: pointer;
}

#contact input[type="submit"]:focus {
    background-color: #007bff !important;
    border: 2px solid black !important;
}


/* =========================================================
   RADIO BUTTONS
   ========================================================= */

.radio-group-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    display: none;
}

.custom-label {
    display: inline-block;
    padding: 8px 20px;
    background-color: #ccc;
    border-radius: 50px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 90px;
    text-align: center;
}

.custom-label:hover {
    background-color: #a3c9ff;
    color: #000;
    transform: scale(1.05);
}

.radio-option.haalbreng .custom-label {
    min-width: 200px;
}

.radio-option input[type="radio"]:checked + .custom-label {
    background-color: #0056b3;
    color: #fff;
    transform: scale(1.05);
}

.radio-option input[type="radio"]:focus + .custom-label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(163, 201, 255, 0.5);
}


/* =========================================================
   CAPTCHA
   ========================================================= */

.captcha-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-input {
    width: 100px !important;
    font-size: 12px;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    border: none;
    background: #f1f1f1;
    font-family: 'Poppins', sans-serif;
}


/* =========================================================
   TOGGLE / SCHUIFKNOP
   ========================================================= */

.switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 44px;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 1px;
    top: 1px;
    background-color: #0056b3;
    border-radius: 50%;
    transition: transform 0.3s;
}

input:checked + .slider {
    background-color: #99ccff;
}

input:checked + .slider:before {
    transform: translateX(24px);
}


/* Toggle label */
.retour-toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.retour-toggle-group span {
    font-weight: bold;
    color: #ff6f00;
    font-size: 14px;
}


/* =========================================================
   EXTRA BUTTON
   ========================================================= */

.extra-btn {
    background: #dddddd;
    color: #000;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 60%;
    display: none;
    transition: background 0.3s ease;
}

.extra-btn:hover {
    background: #b0b0b0;
}


/* =========================================================
   ALERT
   ========================================================= */

.custom-alert {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #000;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 14px;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.custom-alert::before {
    content: "!";
    background-color: #ff6f00;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.custom-alert::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}


/* =========================================================
   FLEX / ALGEMENE LAYOUT
   ========================================================= */

.flex-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* =========================================================
   DATEPICKER
   ========================================================= */

/* Kalender dropdown */
.datepicker-dropdown {
    z-index: 9999 !important;
    position: absolute !important;
    left: 20% !important;
    transform: translateX(0) !important;
    top: 100%;
}


/* Algemene kalender */
.datepicker {
    width: 360px;
    font-size: 20px;
    z-index: 9999 !important;
}


/* Inactieve dagen */
.datepicker table tr td.day.disabled {
    color: #f4aaaa !important;
}


/* Actieve dagen */
.datepicker table tr td.day:not(.disabled) {
    font-weight: bold;
}


/* Maand/jaar niet klikbaar */
.datepicker table thead tr th.datepicker-switch {
    pointer-events: none;
}


/* Dagcellen */
.datepicker table tr td {
    padding: 12px;
    font-size: 18px;
    color: #000000;
}


/* Weekdagen */
.datepicker table tr th {
    padding: 12px;
    font-size: 18px;
    color: #003366;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 2px;
}


/* Datumselector */
.datepicker .datepicker-switch {
    background-color: #007BFF;
    color: #FFFFFF;
    font-size: 22px;
}


/* Vorige/volgende maand */
.datepicker .prev,
.datepicker .next {
    background-color: #003366;
    color: #f2f2f2;
    font-size: 18px;
}


/* Hover navigatie */
.datepicker .datepicker-switch:hover,
.datepicker .prev:hover,
.datepicker .next:hover {
    background-color: #c8c8c8;
    color: #000000;
}


/* Kalenderstructuur */
.datepicker table {
    border-collapse: collapse;
    width: 100%;
}

.datepicker table thead {
    border: 1px solid #ccc;
    background-color: #e0e0e0;
}

.datepicker table thead tr th {
    border: none;
    text-align: center;
    width: 14.28%;
    box-sizing: border-box;
}


/* =========================================================
   ZONDAG + WOENSDAG
   ========================================================= */

.datepicker table tr td.dow,
.datepicker table tr td.highlighted {
    color: #fce1e5 !important;
    background: transparent !important;
    font-weight: normal !important;
}


/* =========================================================
   FEESTDAGEN
   ========================================================= */

.datepicker .day.feestdag,
.datepicker .day.feestdag.disabled {
    color: #d4af37 !important;
    font-weight: bold;
    position: relative;
}

.datepicker .day.feestdag::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   GESLOTEN MET NOTITIE
   ========================================================= */

.datepicker .day.disabled-note,
.datepicker .day.disabled-note.disabled {
    color: #cc3366 !important;
    font-weight: bold;
    position: relative;
}

.datepicker .day.disabled-note::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #e2558a;
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   AANGEPASTE TIJDEN / EXTRA GEOPEND
   ========================================================= */

.datepicker .day.blocked-partial.has-note,
.datepicker .day.blocked-partial.has-note.disabled,
.datepicker .day.uitzonderlijk-geopend {
    color: #000 !important;
    font-weight: bold;
    position: relative;
}

.datepicker .day.blocked-partial.has-note::before,
.datepicker .day.uitzonderlijk-geopend::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #87CEFA;
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   AANGEPASTE TIJDEN ZONDER NOTITIE
   ========================================================= */

.datepicker .day.blocked-partial.no-note,
.datepicker .day.blocked-partial.no-note.disabled {
    color: #000 !important;
    font-weight: bold;
    position: relative;
}

.datepicker .day.blocked-partial.no-note::before {
    content: none !important;
}

.datepicker .day.no-style {
    color: #000 !important;
    font-weight: normal !important;
    background: transparent !important;
}


/* =========================================================
   BEHEER DATEPICKER
   Normaal geopend = zwart
   Normaal gesloten = blauw
   ========================================================= */

.datepicker .day.beheer-normaal-open {
    color: #000 !important;
    font-weight: bold;
}


/* Aangepaste tijden / extra openen - normale cijferdikte */
.datepicker table tr td.day.beheer-normaal-gesloten {
    color: #3498db !important;
    font-weight: 400 !important;
}


/* =========================================================
   📅 KALENDER BEHEER - ZELFDE STIJL ALS WEBSITE
   ========================================================= */

/* Extra geopend */
.datepicker .day.datum-open {
    background: transparent !important;
    color: #000 !important;
    font-weight: bold;
    position: relative;
}

.datepicker .day.datum-open::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #87CEFA;
    border-radius: 50%;
    pointer-events: none;
}


/* Aangepaste tijden */
.datepicker .day.datum-aangepast {
    background: transparent !important;
    color: #000 !important;
    font-weight: bold;
    position: relative;
}

.datepicker .day.datum-aangepast::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #87CEFA;
    border-radius: 50%;
    pointer-events: none;
}


/* Gesloten met notitie = DIK ROOD */
.datepicker table tr td.day.datum-gesloten-notitie,
.datepicker table tr td.day.datum-gesloten-notitie.disabled {
    background: transparent !important;
    color: #CC0000 !important;
    font-weight: 700 !important;
}

.datepicker .day.datum-gesloten-notitie::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #e2558a;
    border-radius: 50%;
    pointer-events: none;
}

/* Feestdag = DIK GOUD */
.datepicker table tr td.day.datum-feestdag,
.datepicker table tr td.day.datum-feestdag.disabled {
    background: transparent !important;
    color: #D4AF37 !important;
    font-weight: 700 !important;
}

.datepicker .day.datum-feestdag::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    pointer-events: none;
}


/* Normaal gesloten */
.datepicker .day.datum-normaal-gesloten {
    background: transparent !important;
    color: #f4aaaa !important;
    font-weight: bold;
}

/* Zorg dat de datum zelf als anker voor de cirkel werkt */
.datepicker .day.datum-feestdag,
.datepicker .day.datum-gesloten-notitie {
    position: relative !important;
}

/* =========================================================
   NOTITIES / MELDINGEN
   ========================================================= */

.vrije-notitie {
    color: #444444;
    font-style: italic;
}

.vrije-notitie-zwart {
    color: #141313;
}

.vrije-notitie-letop {
    color: #CC0000;
    font-weight: bold;
}

.closed-note {
    color: #CC0000;
    font-weight: bold;
}

.blocked-note {
    color: #0B5ED7;
    font-weight: bold;
}

.blocked-partial {
    color: #0B5ED7;
    font-weight: bold;
}

.toekomstige-notitie .blocked-note {
    color: #C65D00;
    font-weight: bold;
}


/* =========================================================
   TIJD MELDING
   ========================================================= */

.tijd-melding {
    padding: 8px;
    margin-top: 6px;
    font-weight: bold;
    border-radius: 4px;
    background: #fff8e6;
    border-left: 8px solid #f0c400;
    color: #8B6B00;
}


/* =========================================================
   DATUM NOTITIE
   ========================================================= */

.datum-notitie {
    margin-top: 6px;
    font-weight: bold;
    padding: 8px;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    border-left: 8px solid #1565c0;
    border-radius: 4px;
}


/* =========================================================
   SEIZOENSMELDING
   ========================================================= */

.seizoensmelding {
    font-size: 0.92em;
    font-style: italic;
    color: #666;
}


/* =========================================================
   FEESTDAG NOTITIE
   ========================================================= */

.feestdag-notitie {
    font-size: 15px;
    font-weight: 600;
    color: #7a2346;
}

/* =========================================================
   BEHEER - LEGENDA
   ========================================================= */

.kalender-legenda {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.legenda-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.legenda-blocked {
    background-color: #87CEFA;
}

.legenda-disabled {
    background-color: #fce1e5;
}

.legenda-feestdag {
    background-color: gold;
}

.blocked-no-note {
    background-color: #87CEFA !important;
}

.highlight-disabled {
    background-color: #fce1e5 !important;
}

.highlight-feestdag {
    background-color: gold !important;
}


/* =========================================================
   BEHEER - ALGEMENE ELEMENTEN
   ========================================================= */

.cross {
    color: red;
    text-decoration: none;
    margin-left: 5px;
}


/* =========================================================
   BEHEER - KOPPEN
   ========================================================= */

h3.gesloten-dag {
    color: #CC0000;
}

h3.aangepaste-tijden {
    color: #1E90FF;
}

h3.feestdag {
    color: gold;
}

h3.vrije-notities {
    color: #008000;
}


/* =========================================================
   BEHEER - PREVIEW TEKST
   ========================================================= */

#preview-tekst-blok {
    padding: 12px 12px 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #ffcc66;
    border: 2px dashed #e68a00;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 10px;
    text-align: left;
    min-height: 150px;
}


/* =========================================================
   BEHEER - EXTRA OPENINGEN LIJST
   ========================================================= */

.extra-openingen-lijst {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 10px;
    width: 100%;
}


/* =========================================================
   BEHEER - AANGEPASTE OPENINGSTIJDEN
   ========================================================= */

.samengevoegd-openingsformulier {
    border-top: 4px solid #1E90FF;
    border-bottom: 4px solid #1E90FF;
    padding: 15px;
    background: #f7fbff;
    border-radius: 6px;
    margin-top: 10px;
}

.samengevoegd-openingsformulier .tijden-keuze {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.samengevoegd-openingsformulier .tijden-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.samengevoegd-openingsformulier .tijden-checkboxes label {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* =========================================================
   WEBSITE POST-IT
   ========================================================= */

.website-postit-preview {
    position: relative;

    padding: 18px 18px;

    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;

    background-color: #f7a06d;

    border: 1px solid #a8592c;
    border-radius: 6px;

    max-width: 420px;
    width: 90%;

    margin: 30px auto 15px;

    box-sizing: border-box;

    box-shadow: 4px 6px 12px rgba(0,0,0,0.2);

    white-space: normal;
}


/* Plakband */
.website-postit-preview::before {
    content: "";

    position: absolute;

    top: -18px;
    left: 50%;

    transform: translateX(-50%) rotate(-3deg);

    width: 120px;
    height: 28px;

    background: rgba(255,255,255,0.6);

    border: 1px solid rgba(180,180,180,0.5);
    border-radius: 4px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Kleinere POST-IT in Beheer */

.beheer-postit-preview {
    max-width: 300px;
    width: 70%;
    background-color: #f7a06d;
    padding: 10px 12px;
    font-size: 1rem;
    margin: 5px 0 10px;
}

.beheer-postit-preview::before {
    display: none;
}


/* =========================================================
   RESPONSIVE EXTRA OPENINGEN
   ========================================================= */

@media (max-width: 1200px) {

    .extra-openingen-lijst {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .extra-openingen-lijst {
        grid-template-columns: 1fr;
    }
}

.extra-openingen-overzicht {
    width: 100%;
    box-sizing: border-box;
}