/**
 * vortmes-datering.css - Stijlen voor de Hof-Daterings Rechner
 * Volledig afgestemd op register.css (Kleuren: #003153, #D9151D, #FC2600)
 * Geoptimaliseerd voor goed leesbare weergave (Doelgroep 50+)
 */

/* ========================================
   1. CONTAINER & ALGEMENE TYPOGRAFIE (50+)
======================================== */

.vortmes-datering-container,
.vortmes-datering-container *,
.vortmes-datering-container h1,
.vortmes-datering-container h2,
.vortmes-datering-container h3,
.vortmes-datering-container h4 {
    font-family: Arial, Helvetica, sans-serif !important;
    box-sizing: border-box;
}

.vortmes-datering-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 4px solid #003153;
    padding: 35px;
    border-radius: 4px;
    max-width: 950px;
    margin: 30px auto;
    color: #333;
    font-size: 12pt; /* Ruime basislettergrootte voor 50+ */
    line-height: 1.5;
}

/* ========================================
   2. KOPPEN & SECTIES
======================================== */

.vortmes-datering-container h2 {
    font-size: 16pt !important;
    color: #003153 !important;
    margin: 0 0 10px 0 !important;
    font-weight: bold !important;
    border-bottom: 2px solid #D9151D;
    padding-bottom: 10px;
}

.vortmes-datering-container p.vortmes-intro {
    font-size: 11.5pt;
    color: #555;
    margin-bottom: 25px;
}

.vortmes-pijler-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #003153;
    padding: 22px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.vortmes-pijler-box h3 {
    font-size: 13.5pt !important;
    color: #003153 !important;
    margin: 0 0 18px 0 !important;
    font-weight: bold !important;
}

/* ========================================
   3. INVOERVELDEN & LABELS (Duidelijk & Groot)
======================================== */

.vortmes-form-group {
    margin-bottom: 18px;
}

.vortmes-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.vortmes-form-col {
    flex: 1;
}

@media (max-width: 768px) {
    .vortmes-form-row {
        display: block;
    }
    .vortmes-form-col {
        margin-bottom: 18px;
    }
}

.vortmes-label {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #040404;
    margin-bottom: 8px;
    font-size: 11.5pt;
}

.vortmes-select,
.vortmes-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 11pt; /* Grote, goed leesbare tekst in velden */
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vortmes-select:focus,
.vortmes-input:focus {
    border-color: #003153;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 49, 83, 0.3);
}

/* ========================================
   4. HOVER TOOLTIP (?) - DONKERBLAUW TO RODE HOVER (50+ LEESBAAR)
======================================== */

.vortmes-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: #003153; /* Standaard Donkerblauw */
    color: #ffffff !important;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

/* Hover effect naar Rood met lichte vergroting */
.vortmes-tooltip:hover {
    background: #FC2600; /* Felrood bij hover */
    transform: scale(1.15);
}

/* De daadwerkelijke Tooltip Popup */
.vortmes-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #003153;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 11pt !important; /* Goed leesbare lettergrootte voor 50+ */
    line-height: 1.45;
    font-weight: normal;
    white-space: normal;
    width: 320px; /* Voldoende breedte voor rustige tekstindeling */
    z-index: 999;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid #D9151D; /* Rode subtiele rand */
    pointer-events: none;
}

/* Pijltje onder de tooltip */
.vortmes-tooltip:hover::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #003153 transparent transparent transparent;
    z-index: 1000;
}

/* ========================================
   5. BEREKEN-KNOP
======================================== */

.vortmes-submit-btn {
    display: block;
    background: #003153;
    color: #fff !important;
    padding: 14px 20px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    font-size: 12pt;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.vortmes-submit-btn:hover {
    background: #FC2600;
}

/* ========================================
   6. RESULTAATBOX & TABELLEN
======================================== */

.vortmes-result-box {
    display: none;
    margin-top: 30px;
    background: #fff;
    border: 1px solid #003153;
    padding: 25px;
    border-radius: 4px;
}

.vortmes-result-box h3 {
    color: #003153 !important;
    margin-top: 0;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
    font-size: 14pt !important;
}

.vortmes-result-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    background: #f4f6f8;
    padding: 18px;
    border-radius: 4px;
    border-left: 4px solid #D9151D;
    font-size: 11pt;
}

.vortmes-result-summary strong {
    color: #040404;
}

.vortmes-result-summary span.highlight-red {
    color: #D9151D;
    font-weight: bold;
    font-size: 1.15em;
}

.vortmes-result-summary span.highlight-blue {
    color: #003153;
    font-weight: bold;
    font-size: 1.15em;
}

/* Resultaattabellen instellingen */
.vortmes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 10.5pt;
}

.vortmes-table th,
.vortmes-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.vortmes-table th {
    background-color: #003153;
    color: #fff;
    font-weight: bold;
}

.vortmes-table th.filter-header {
    background-color: #D9151D;
}

.vortmes-table tr:nth-child(even) {
    background-color: #fcfcfc;
}