/* =========================
   LAYOUT
   ========================= */
.tz-main{
  padding: 26px 0 38px;
}

.tz-grid{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
}

/* Als er GEEN sidebar is → volle breedte */
.tz-grid:not(:has(.tz-sidebar)){
  grid-template-columns: 1fr;
}

/* Mobiel: altijd 1 kolom */
@media (max-width: 992px){
  .tz-grid{
    grid-template-columns: 1fr;
  }
}

/* Cards */
.tz-content,
.tz-sidebar{
  background: rgba(10,18,34,.56);
  border: 1px solid rgba(120,180,255,.14);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.tz-content{ 
  padding: 26px; 
}

.tz-sidebar{ 
  padding: 18px; 
}

/* =========================
   JOOMLA BLOG FEATURED
   Past bij jouw HTML
   ========================= */
.blog-featured{
  display: block;
}

.blog-items{
  display: block;
}

.blog-item{
  display: block;
}

.item-content{
  max-width: 72ch;
}

/* Typografie */
.tz-content p{
  margin: 0 0 12px;
  line-height: 1.55;
  color: rgba(234,242,255,.90);
}

.tz-content strong{
  color: rgba(234,242,255,.96);
  font-weight: 900;
  letter-spacing: .2px;
}

/* Zet "kop-paragrafen" netter neer als ze alleen strong bevatten */
.tz-content p > strong:only-child{
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 14px;
  text-transform: uppercase;
  opacity: .95;
}

/* Link styling */
.tz-content a,
.tz-sidebar a{
  color: rgba(170,220,255,.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(170,220,255,.22);
  transition: border-color 0.2s ease;
}

.tz-content a:hover,
.tz-sidebar a:hover{
  border-bottom-color: rgba(170,220,255,.55);
}

/* Lijstjes */
.tz-content ul,
.tz-content ol{
  margin: 10px 0 14px 20px;
  padding: 0;
}

.tz-content li{
  margin: 6px 0;
  color: rgba(234,242,255,.88);
}

/* =========================
   SIDEBAR MODULE CUSTOM
   ========================= */
.tz-sidebar .mod-custom{
  color: rgba(234,242,255,.88);
}

.tz-sidebar p{
  margin: 0 0 12px;
  line-height: 1.5;
}

.tz-sidebar em{
  opacity: .95;
}

/* =========================
   SIDEBAR MODULE BLOCKS
   ========================= */
.tz-sidebar-module + .tz-sidebar-module {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(120,180,255,.1);
}

.tz-sidebar-module__title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(80,165,255,.7);
  margin: 0 0 .75rem;
}

.tz-sidebar-module__body {
  font-size: .875rem;
  color: rgba(234,242,255,.82);
  line-height: 1.6;
}

.tz-sidebar-module__body p { margin: 0 0 .6rem; }
.tz-sidebar-module__body p:last-child { margin-bottom: 0; }

/* Sidebar link - button feel */
.tz-sidebar a{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(155,210,255,.20);
  background: rgba(12,26,52,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: all 0.2s ease;
}

.tz-sidebar a:hover{
  background: rgba(12,26,52,.62);
  border-color: rgba(190,235,255,.34);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px){
  .tz-content{ 
    padding: 18px; 
  }
  
  .tz-sidebar{ 
    padding: 16px; 
  }
  
  .item-content{
    max-width: none;
  }
}

/* =========================
   ARTIKELEN
   ========================= */
.tz-article { scroll-margin-top: 80px; }
.tz-article + .tz-article { margin-top: 2rem; }
.tz-article__title { font-size: 1.4rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.tz-article__excerpt { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; font-style: italic; }
.tz-article__content { font-size: .95rem; line-height: 1.75; color: var(--text); }
.tz-article__content h1,.tz-article__content h2,.tz-article__content h3,
.tz-article__content h4,.tz-article__content h5,.tz-article__content h6 { color: var(--text); }
.tz-article__divider { border: none; border-top: 1px solid rgba(120,180,255,.2); margin: 2rem 0; }

/* =========================
   PAGINA TITEL
   ========================= */
.tz-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(234,242,255,.95);
  margin-bottom: 1.25rem;
}

/* =========================
   MELDINGEN
   ========================= */
.tz-alert {
  padding: .85rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.tz-alert--success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: rgba(134,239,172,.95);
}
.tz-alert--error {
  background: #7f1d1d;
  border: 2px solid #ef4444;
  color: #fecaca;
  font-size: .92rem;
  line-height: 1.6;
  box-shadow: 0 0 0 4px rgba(239,68,68,.15);
}
.tz-alert--error .tz-alert-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: .5rem;
}
.tz-alert--error ul {
  margin: 0;
  padding-left: 1.4rem;
}
.tz-alert--error ul li {
  margin-bottom: .2rem;
}

/* Zorg dat [hidden] altijd werkt, ook als een CSS-framework het overschrijft */
[hidden] { display: none !important; }

/* =========================
   FORMULIEREN (twee-koloms)
   ========================= */
.tz-form { margin-top: 1.25rem; }

/* Intro text above the form */
.tz-form-intro {
  font-size: .9rem;
  color: rgba(234,242,255,.75);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  background: rgba(80,165,255,.07);
  border-left: 3px solid rgba(80,165,255,.5);
  border-radius: 6px;
}

.tz-form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: .3rem 1.25rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(120,180,255,.08);
  align-items: start;
}
.tz-form-row:last-child,
.tz-form-row--submit { border-bottom: none; padding-top: 1rem; }

.tz-form-label {
  padding-top: .55rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(234,242,255,.7);
  line-height: 1.4;
}
.tz-form-label .req {
  color: #f87171;
  font-size: .78rem;
}

.tz-form-input-wrap input,
.tz-form-input-wrap textarea,
.tz-form-input-wrap select {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(30,80,180,.25);
  border-radius: 8px;
  padding: .55rem .75rem;
  color: #1a2848;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  color-scheme: light;
}
.tz-form-input-wrap input:focus,
.tz-form-input-wrap textarea:focus,
.tz-form-input-wrap select:focus {
  border-color: rgba(30,80,180,.55);
}
.tz-form-input-wrap textarea { min-height: 100px; resize: vertical; }
.tz-form-input-wrap select   { cursor: pointer; }

.tz-form-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(234,242,255,.82);
  cursor: pointer;
  padding: .5rem 0;
}
.tz-form-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: rgba(80,165,255,.9);
  cursor: pointer;
}

.tz-form-row.has-error .tz-form-input-wrap input,
.tz-form-row.has-error .tz-form-input-wrap textarea,
.tz-form-row.has-error .tz-form-input-wrap select {
  border-color: rgba(248,113,113,.6);
}

.tz-form__error {
  display: block;
  font-size: .75rem;
  color: #f87171;
  margin-top: .25rem;
}

/* Radio & checkbox groups */
.tz-form-radio-group,
.tz-form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .25rem 0;
}
.tz-form-check input[type=radio] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: rgba(80,165,255,.9);
  cursor: pointer;
}

/* File input */
.tz-form-input-wrap input[type=file] {
  padding: .45rem .6rem;
  cursor: pointer;
  font-size: .82rem;
  color: #1a2848;
  background: #fff;
}

/* Divider */
.tz-form-divider {
  border: none;
  border-top: 1px solid rgba(120,180,255,.15);
  margin: 1.1rem 0;
}

/* Section heading */
.tz-form-section {
  padding: .85rem 0 .35rem;
}
.tz-form-section h3 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(80,165,255,.8);
  margin-bottom: .15rem;
}
.tz-form-section p {
  font-size: .82rem;
  color: rgba(234,242,255,.45);
  margin: 0;
}

/* Free HTML block */
.tz-form-html {
  font-size: .875rem;
  color: rgba(234,242,255,.7);
  line-height: 1.6;
  padding: .4rem 0;
}

/* Adresblok */
.tz-address-group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.tz-address-pc-row {
  display: flex;
  gap: .5rem;
}
.tz-address-pc-row > div:first-child  { flex: 2 1 0; min-width: 0; }
.tz-address-pc-row > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
.tz-address-pc-row > div:last-child   { flex: 0 0 72px; }
.tz-address-status {
  font-size: .75rem;
  min-height: 1rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: -.2rem;
}
.tz-address-group input[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
}

@media (max-width: 600px) {
  .tz-form-row {
    grid-template-columns: 1fr;
    gap: .2rem;
    padding: .6rem 0;
  }
  .tz-form-label { padding-top: 0; font-size: .8rem; }
  .tz-form-row--submit { padding-top: .75rem; }
}
