.trend-res-wrap{
  max-width: 720px;
  margin: 0 auto; /* center */

  /* defaults (worden overschreven via wp_add_inline_style) */
  --trend-btn-bg: #000;
  --trend-btn-text: #ffffff;
  --trend-btn-bg-hover: #000;
  --trend-btn-text-hover: #ffffff;

  --trend-font-family: inherit;
  --trend-field-border: #d9d9d9;
  --trend-field-radius: 5px;
  --trend-field-focus: rgba(49,106,255,0.35);

  --trend-popup-bg: #22b07e;
  --trend-popup-text: #ffffff;
}

.trend-res-alert{
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.trend-res-alert.success{
  border: 1px solid #cbead9;
  background: #eefaf3;
}

.trend-res-alert.error{
  border: 1px solid #f2c7c7;
  background: #fff1f1;
}

.trend-res-form{
  width: 100%;
  padding: 14px;
  border: 1px solid #e6e6e6;
  border-radius: var(--trend-field-radius);
  font-family: var(--trend-font-family);
}

.trend-res-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trend-res-grid label span{
  display:block;
  font-weight: 600;
  margin-bottom: 6px;
}

.trend-res-grid input,
.trend-res-grid select,
.trend-res-grid textarea{
  width: 100%;
  border: 1px solid var(--trend-field-border);
  border-radius: var(--trend-field-radius);
  padding: 14px 12px;
  font-size: 16px; /* iOS: voorkomt zoom */
  box-sizing: border-box;
  font-family: var(--trend-font-family);
  outline: none;
}

.trend-res-grid input:focus,
.trend-res-grid select:focus,
.trend-res-grid textarea:focus{
  box-shadow: 0 0 0 4px var(--trend-field-focus);
  border-color: transparent;
}

.trend-res-full{
  grid-column: 1 / -1;
}

.trend-res-btn{
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--trend-field-radius);
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  background: var(--trend-btn-bg);
  color: var(--trend-btn-text);
}

.trend-res-btn:hover{
  background: var(--trend-btn-bg-hover);
  color: var(--trend-btn-text-hover);
}

/* Alleen naam, email, telefoon iets compacter */
.trend-res-grid input[name="name"],
.trend-res-grid input[name="email"],
.trend-res-grid input[name="phone"]{
  padding: 12px 12px;
  font-size: 15px;
}

/* Date input: altijd wit en netjes, maar GEEN extra icoon op desktop */
.trend-res-wrap input[type="date"].trend-res-date{
  background-color: #fff !important;
  color: #111 !important;
  border: 1px solid var(--trend-field-border);
  border-radius: var(--trend-field-radius);
  -webkit-appearance: none;
  appearance: none;

  /* geen extra ruimte/icoon op desktop */
  padding-right: 12px;
  background-image: none;
}

/* Mobiel layout */
@media (max-width: 640px){
  .trend-res-grid{ grid-template-columns: 1fr; }

  /* Op mobiel wél het custom icoon (als native niet zichtbaar is) */
  .trend-res-wrap input[type="date"].trend-res-date{
    padding-right: 44px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
  }
}

/* Desktop: forceer geen custom icon */
@media (min-width: 641px){
  .trend-res-wrap input[type="date"].trend-res-date{
    background-image: none !important;
    background-repeat: initial !important;
    background-position: initial !important;
    background-size: initial !important;
    padding-right: 12px !important;

    -webkit-appearance: auto !important;
    appearance: auto !important;
  }
}

/* =========================
   Popup (success)
   ========================= */
.trend-res-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.trend-res-modal.is-open{ display: block; }

.trend-res-modal-backdrop{
  position: absolute;
  inset: 0;
  background: var(--trend-popup-bg, rgba(0,0,0,.55));
  opacity: .55;
}

/* Card */
.trend-res-modal-card{
  position: relative;
  max-width: 520px;
  margin: 12vh auto 0 auto;
  background: var(--trend-popup-card-bg, #ffffff);
  color: var(--trend-popup-text, #111) !important;
  border: 1px solid var(--trend-popup-border, #e6e6e6);
  border-radius: 0px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* X rechtsboven */
.trend-res-modal-x{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
  color: inherit;
}

/* Centered content */
.trend-res-modal-center{
  text-align: center;
  padding: 12px 10px 6px 10px;
}

.trend-res-modal-title{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--trend-popup-text, #111) !important;
}

.trend-res-modal-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: .95;
  color: var(--trend-popup-text, #111) !important;
}