/* Upload form styles – volledig gescoped onder .pdfmt940-card om conflicten met thema te voorkomen */

:root{
  --brand:#1F7A8C; --brand-dark:#022B3A; --brand-light:#BFDBF7;
  --line:#DBDFEA; --card:#fff; --text:#022B3A; --danger:#b00020; --muted:#5a6a74;
}

.pdfmt940-card{
  max-width:760px;margin:0 auto;background:var(--card);border:1px solid var(--line);
  border-radius:18px;box-shadow:0 10px 30px rgba(2,43,58,.06);padding:22px 22px 26px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);
}

.pdfmt940-card .form-title{
  font-family:"Bebas Neue",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  text-align:center;font-size:2.1rem;letter-spacing:.5px;color:var(--brand);margin:4px 0 10px;font-weight:700;
}

.pdfmt940-card .session-expired{
  display:none;margin:10px 0 14px;padding:12px 14px;border-radius:12px;
  background:#fff3f3;color:#7a0a0a;border:1px solid #ffd6d6;
}
.pdfmt940-card .session-expired .row{
  display:flex;gap:10px;align-items:center;justify-content:space-between;
}

.pdfmt940-card .stepper{display:flex;gap:8px;justify-content:center;margin:6px 0 18px;}
.pdfmt940-card .stepper .dot{width:10px;height:10px;border-radius:50%;background:#ddd;}
.pdfmt940-card .stepper .dot.active{background:var(--brand);}

.pdfmt940-card .step{display:none;}
.pdfmt940-card .step.active{display:block;}

.pdfmt940-card .row{margin-bottom:14px;}
.pdfmt940-card .field{position:relative;}

.pdfmt940-card .field input{
  width:100%;border:2px solid var(--line);box-sizing:border-box;background:#fff;color:var(--text);
  border-radius:12px;padding:16px 12px;outline:none;transition:border-color .15s ease;caret-color:var(--brand);
  box-shadow:none;
}
.pdfmt940-card .field input:hover{border-color:var(--brand-light);}
.pdfmt940-card .field input:focus{border-color:var(--brand);}
.pdfmt940-card .field input[readonly]{background:#f7f9fc;color:#44525a;}
.pdfmt940-card .field input.invalid{border-color:var(--danger)!important;}
.pdfmt940-card .field input::placeholder{color:#71828a;opacity:1;}
.pdfmt940-card .field input:focus::placeholder{color:transparent;}

.pdfmt940-card .field label{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);padding:0 6px;
  background:transparent;color:transparent;font-weight:700;pointer-events:none;
  transition:transform .15s,color .15s,top .15s,background .15s;transform-origin:left top;
}
.pdfmt940-card .field input:focus+label,
.pdfmt940-card .field input:not(:placeholder-shown)+label{
  top:-8px;transform:translateY(0) scale(.85);color:var(--brand-dark);background:#fff;
}
.pdfmt940-card .field input.invalid+label{color:transparent!important;}
.pdfmt940-card .field input.invalid:focus+label,
.pdfmt940-card .field input.invalid:not(:placeholder-shown)+label{
  color:var(--danger)!important;background:#fff;top:-8px;transform:translateY(0) scale(.85);
}

.pdfmt940-card .muted-label{font-size:.9rem;color:var(--muted);margin:6px 0 8px;}
.pdfmt940-card .two-col{display:flex;gap:12px;}
.pdfmt940-card .one-third{flex:0 0 33.333%;}
.pdfmt940-card .two-third{flex:1 0 66.666%;}

.pdfmt940-card .dropzone{
  border:2px dashed var(--line);border-radius:14px;padding:36px;text-align:center;background:#fff;
  transition:background .15s,border-color .15s;min-height:200px;
}
.pdfmt940-card .dropzone.dragover{background:#f8fbff;border-color:var(--brand);}

.pdfmt940-card .files-summary{
  margin-top:12px;margin-bottom:6px;font-size:.95rem;color:#44525a;
  display:flex;align-items:center;gap:8px;justify-content:flex-end;
}

.pdfmt940-card .spinner{
  display:inline-block;width:16px;height:16px;border:2px solid var(--brand-light);
  border-top-color:var(--brand);border-radius:50%;animation:pm940spin .8s linear infinite;vertical-align:middle;
}
@keyframes pm940spin{to{transform:rotate(360deg);}}

.pdfmt940-card .file-list{margin-top:6px;display:grid;gap:10px;}
.pdfmt940-card .file-item{
  border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;
  display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;
}
.pdfmt940-card .file-meta{min-width:0;}
.pdfmt940-card .file-name{font-size:.95rem;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pdfmt940-card .progress-wrap{height:6px;background:#eef3f8;border-radius:999px;overflow:hidden;}
.pdfmt940-card .progress-bar{height:100%;width:0%;background:var(--brand);transition:width .15s ease;}
.pdfmt940-card .file-status{font-size:.85rem;color:#5a6a74;margin-top:6px;}
.pdfmt940-card .file-actions{display:flex;gap:6px;}

.pdfmt940-card .icon-btn{
  border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px;cursor:pointer;
  color:var(--brand-dark);display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;transition:background .12s,border-color .12s;
}
.pdfmt940-card .icon-btn:hover{background:#e9f2f6;border-color:#c9d9e4;}
.pdfmt940-card .icon{width:18px;height:18px;display:block;}

.pdfmt940-card .actions{
  display:flex;justify-content:space-between;align-items:flex-end;margin-top:18px;
}

.pdfmt940-card .btn{
  padding:12px 16px;border:0;border-radius:12px;cursor:pointer;font-weight:800;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:1rem;
  line-height:1.2;text-decoration:none;display:inline-block;
}
.pdfmt940-card .btn[disabled]{opacity:.6;cursor:not-allowed;}
.pdfmt940-card .btn-primary{background:var(--brand);color:#fff;}
.pdfmt940-card .btn-primary:hover:not([disabled]){background:#2b91a8;}
.pdfmt940-card .btn-secondary{background:var(--brand-light);color:var(--brand-dark);}
.pdfmt940-card .btn-secondary:hover:not([disabled]){background:#cfe8fb;}

/* reset thema-stijlen voor knoppen binnen het formulier */
.pdfmt940-card button,
.pdfmt940-card .btn{
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
  appearance:none;
  -webkit-appearance:none;
}
.pdfmt940-card button:focus,
.pdfmt940-card button:focus-visible,
.pdfmt940-card button:active,
.pdfmt940-card .btn:focus,
.pdfmt940-card .btn:focus-visible,
.pdfmt940-card .btn:active{
  outline:none !important;
  box-shadow:none !important;
}

.pdfmt940-card .right-actions{display:flex;align-items:center;gap:14px;}
.pdfmt940-card .consent-label{display:flex;align-items:center;gap:8px;color:#33434c;white-space:nowrap;}
.pdfmt940-card .consent-label a{color:var(--brand-dark);text-decoration:underline;}

.pdfmt940-card .btn-wrap{position:relative;display:inline-block;}
.pdfmt940-card .btn-wrap[aria-disabled="true"]:hover::after{
  content:attr(data-tip);position:absolute;right:100%;margin-right:10px;bottom:100%;
  background:var(--brand-dark);color:#fff;padding:6px 8px;border-radius:8px;
  font-size:.85rem;white-space:nowrap;box-shadow:0 6px 20px rgba(0,0,0,.12);
}
.pdfmt940-card .btn-wrap[aria-disabled="true"]:hover::before{
  content:'';position:absolute;right:calc(100% - 8px);bottom:calc(100% - 6px);
  border:6px solid transparent;border-top-color:var(--brand-dark);transform:rotate(45deg);
}

.pdfmt940-card .error{color:var(--danger);margin-top:8px;display:none;}
.pdfmt940-card .success{color:#0a7a0a;margin-top:8px;display:none;}
.pdfmt940-card .final-message{text-align:center;padding:18px 6px;font-size:1rem;color:var(--text);display:none;}

/* === Review slot === */
#reviewWrap{
  display:none;
  margin-top:18px;
  width:100%;
  max-width:760px;
}
#reviewWrap .pm940-review-card{ width:100%; }
#reviewWrap form[data-pm940-review-form="1"]{
  display:block;
  width:100%;
}

.pdfmt940-card .review-title{
  font-family:"Bebas Neue",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  text-align:center;font-size:1.8rem;letter-spacing:.5px;color:var(--brand);margin:16px 0 10px;font-weight:700;
}

/* === Modals === */
.pdfmt940-modal-overlay{
  position:fixed;inset:0;background:rgba(2,43,58,.45);
  display:none;align-items:center;justify-content:center;z-index:9999;
}
.pdfmt940-modal{
  background:#fff;border-radius:16px;max-width:640px;width:92%;
  box-shadow:0 20px 50px rgba(0,0,0,.25);padding:18px 18px 16px;border:1px solid var(--line);
}
.pdfmt940-modal h3{margin:0 0 6px;font-size:1.15rem;color:var(--brand-dark);}
.pdfmt940-modal p{margin:8px 0 12px;color:#33434c;}
.pdfmt940-modal .file-list-rejected{
  max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fbfdff;
}
.pdfmt940-modal .file-list-rejected ul{margin:0;padding-left:18px;}
.pdfmt940-modal .section{margin:10px 0 12px;}
.pdfmt940-modal .section h4{margin:0 0 6px;font-size:1rem;color:#022B3A;}
.pdfmt940-modal .actions{margin-top:14px;display:flex;justify-content:flex-end;gap:10px;}
