/* ph-aanmelding.css */

.ph-aanmeld-wrap { max-width: 860px; margin: 0 auto; font-family: inherit; }

/* ── Progress ──────────────────────────────────────────────────────────────── */
.ph-progress {
    display: flex; align-items: flex-start;
    max-width: 640px; margin: 0 auto 52px;
}
.ph-progress-step {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 10px; position: relative;
}
.ph-progress-step::after {
    content: ''; position: absolute; top: 22px; left: 50%; width: 100%;
    height: 3px; background: #e0e6ea; z-index: 0;
    transition: background .3s;
}
.ph-progress-step:last-child::after { display: none; }
.ph-progress-num {
    width: 46px; height: 46px; border-radius: 50%;
    background: #e8edf1; color: #b0bec5;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; position: relative; z-index: 1;
    transition: background .25s, color .25s, box-shadow .25s;
}
.ph-progress-step.active .ph-progress-num {
    background: #073763; color: #fff;
    box-shadow: 0 0 0 5px rgba(7,55,99,.12);
}
.ph-progress-step.completed .ph-progress-num { background: #4a90a4; color: #fff; }
.ph-progress-step.active::after,
.ph-progress-step.completed::after { background: #4a90a4; }
.ph-progress-label {
    font-size: 11px; color: #b0bec5; text-align: center;
    font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.ph-progress-step.active    .ph-progress-label { color: #073763; font-weight: 800; }
.ph-progress-step.completed .ph-progress-label { color: #4a90a4; font-weight: 600; }
.ph-progress-step.completed { cursor: pointer; }
.ph-progress-step.completed:hover .ph-progress-num { background: #3a7f93; }

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.ph-step         { display: none; }
.ph-step.active  { display: block; }
.ph-step-title   { color: #073763; font-size: 20px; font-weight: 700; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid #073763; }
.ph-step-intro   { color: #555; font-size: 14px; margin-bottom: 24px; }
.ph-section-title{ color: #073763; font-size: 15px; font-weight: 700; margin: 28px 0 12px; }
.ph-optional     { font-size: 12px; font-weight: 400; color: #999; }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.ph-row  { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.ph-col  { box-sizing: border-box; }
.ph-col-2{ flex: 0 0 calc(20% - 13px); }
.ph-col-5{ flex: 0 0 calc(50% - 8px); }
.ph-col-6{ flex: 0 0 calc(50% - 8px); }
.ph-col-12{ flex: 0 0 100%; }

/* ── Fields ────────────────────────────────────────────────────────────────── */
.ph-label {
    display: block;
    font-size: 13px; font-weight: 600; color: #333; width: 100%;
}
.ph-req { color: #c0392b; }
/* Use the wrapper ID to beat the parent theme's input[type=*] rules */
#ph-aanmeld-wrap .ph-input {
    display: block; width: 100%; padding: 9px 12px;
    border: 1px solid #ccc; border-radius: 4px;
    font-size: 14px; color: #333; background: #fff;
    box-sizing: border-box; margin-top: 4px; font-family: inherit;
    height: 42px; line-height: 1.2;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
#ph-aanmeld-wrap .ph-input:focus     { outline: none; border-color: #073763; box-shadow: 0 0 0 2px rgba(7,55,99,.1); }
#ph-aanmeld-wrap .ph-input.ph-error  { border-color: #c0392b; }
#ph-aanmeld-wrap select.ph-input     { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.ph-field { margin-bottom: 16px; }

/* ── Radios ────────────────────────────────────────────────────────────────── */
fieldset { border: none; padding: 0; margin: 0; }
fieldset legend { font-weight: 600; font-size: 13px; color: #333; margin-bottom: 6px; }
fieldset.ph-error legend { color: #c0392b; }
.ph-radio-label {
    display: inline-flex; align-items: center; gap: 6px;
    margin-right: 20px; margin-top: 4px; font-size: 14px; font-weight: 400; cursor: pointer;
}

/* ── Conditional ───────────────────────────────────────────────────────────── */
.ph-conditional { display: none; }

/* ── Notices ───────────────────────────────────────────────────────────────── */
.ph-notice { padding: 14px 18px; border-radius: 4px; margin: 12px 0; font-size: 14px; line-height: 1.5; }
.ph-notice-info    { background: #eef4fb; border-left: 4px solid #073763; color: #073763; }
.ph-notice-success { background: #eafaf1; border-left: 4px solid #27ae60; color: #1a6e3c; }
.ph-notice-success h3 { margin: 0 0 6px; color: #1a6e3c; }
.ph-notice-error   { background: #fdf0ed; border-left: 4px solid #c0392b; color: #7b2020; }

/* ── Uploads ───────────────────────────────────────────────────────────────── */
.ph-upload-row {
    display: flex; align-items: center; gap: 14px; padding: 10px 0;
    border-bottom: 1px solid #eee; flex-wrap: wrap;
}
.ph-upload-label { flex: 1 1 220px; font-size: 13px; color: #333; }
.ph-upload-btn {
    display: inline-block; padding: 7px 14px; background: #f5f5f5;
    border: 1px solid #ccc; border-radius: 4px; font-size: 13px;
    cursor: pointer; white-space: nowrap; transition: background .15s;
}
.ph-upload-btn:hover { background: #e5e5e5; }
.ph-upload-btn input[type="file"] { display: none; }
.ph-upload-status { font-size: 12px; min-width: 160px; }
.ph-status-ok    { color: #27ae60; }
.ph-status-error { color: #c0392b; }

/* ── AVG ───────────────────────────────────────────────────────────────────── */
.ph-avg-block { margin: 24px 0; padding: 16px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 4px; }
.ph-checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; cursor: pointer; }
.ph-checkbox-label input { flex-shrink: 0; margin-top: 3px; }

/* ── Navigation ────────────────────────────────────────────────────────────── */
.ph-step-nav {
    display: flex; gap: 12px; align-items: center; margin-top: 28px;
    padding-top: 20px; border-top: 1px solid #eee;
}
.ph-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 34px; border-radius: 5px; font-size: 13px; font-weight: 400;
    text-transform: uppercase; letter-spacing: 3.38px;
    cursor: pointer; font-family: inherit; transition: background .15s, opacity .15s, color .15s;
    border: 2px solid #99c7dd;
}
.ph-btn:disabled { opacity: .5; cursor: not-allowed; }
.ph-btn-next, .ph-btn-submit { background: #99c7dd; color: #fff; margin-left: auto; }
.ph-btn-next:hover:not(:disabled), .ph-btn-submit:hover:not(:disabled) { background: #7ab5ce; border-color: #7ab5ce; }
.ph-btn-prev { background: transparent; color: #99c7dd; }
.ph-btn-prev:hover { background: #99c7dd; color: #fff; }

/* ── ICE tooltip ───────────────────────────────────────────────────────────── */
.ph-tip {
    position: relative; cursor: help;
    border-bottom: 1px dotted #4a90a4; color: #4a90a4; font-style: normal;
}
.ph-tip::after {
    content: attr(data-tip);
    display: none;
    position: absolute; bottom: calc(100% + 8px); left: 0;
    width: 260px; padding: 8px 12px;
    background: #073763; color: #fff; font-size: 12px; line-height: 1.5;
    border-radius: 4px; white-space: normal; pointer-events: none; z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.ph-tip::before {
    content: ''; display: none;
    position: absolute; bottom: calc(100% + 2px); left: 12px;
    border: 6px solid transparent; border-top-color: #073763;
    pointer-events: none; z-index: 10;
}
.ph-tip:hover::after,
.ph-tip:focus::after,
.ph-tip:hover::before,
.ph-tip:focus::before { display: block; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ph-col-2, .ph-col-5, .ph-col-6 { flex: 0 0 100%; }
    .ph-progress-label               { display: none; }
    .ph-upload-row                   { flex-direction: column; align-items: flex-start; }
    .ph-btn-next, .ph-btn-submit     { margin-left: 0; }
}
