/* =========================================================
   Golf Getaways - Bokningsförfrågan (popup)
   ---------------------------------------------------------
   Återanvänder offertformulärets .gf-*-shell (golf-form.css laddas
   först via enqueue-dependency 'gg-golfform'). Här bara deltas:
   .bf-* = fält med etikett OVANFÖR (date/select-vänligt, speglar
   gamla golfgetaways.se), header-destination, samt foot med en knapp.
   Tokens (--gf-*) ärvs från golf-form.css.
   ========================================================= */

/* Destination under rubriken i headern. */
.bf-dialog .gf-title { margin-bottom: 0; }
.bf-dest {
  font-family: var(--gf-italic);
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: var(--gf-gold-warm);
  margin: 8px 0 0;
}

/* Endast en knapp i foten → högerställd. */
.bf-dialog .gf-foot { justify-content: flex-end; }

/* =========================================================
   FÄLT (etikett ovanför)
   ========================================================= */
.bf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.bf-field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;            /* så grid-celler inte växer pga input-min-width */
}
.bf-field--full { grid-column: 1 / -1; }

.bf-field > label {
  font-family: var(--gf-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .6);
  margin: 0 0 7px;
}
.bf-field > label em {
  color: var(--gf-gold);
  font-style: normal;
  margin-left: 2px;
}

.bf-field input,
.bf-field select,
.bf-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  background: rgba(255, 255, 255, .02);
  color: var(--gf-paper);
  font-family: var(--gf-body);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color .25s var(--gf-ease), background-color .25s var(--gf-ease);
}
.bf-field textarea {
  min-height: 88px;
  padding-top: 12px;
  line-height: 1.5;
  resize: vertical;
}
.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus {
  border-color: var(--gf-gold);
  background: rgba(166, 130, 69, .06);
}
.bf-field input::placeholder,
.bf-field textarea::placeholder { color: rgba(255, 255, 255, .35); }

/* Ogiltigt fält + inline-meddelande. */
.bf-field--invalid input,
.bf-field--invalid select,
.bf-field--invalid textarea { border-color: #c66; }
.bf-field-error {
  display: none;
  font-family: var(--gf-body);
  font-size: 12px;
  font-weight: 300;
  color: #d98b8b;
  margin-top: 5px;
}
.bf-field--invalid .bf-field-error { display: block; }

/* Datumfält: mörk native-picker + guld-tonad kalenderikon. */
.bf-field input[type="date"] {
  color-scheme: dark;
}
.bf-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .85;
  filter: invert(64%) sepia(38%) saturate(520%) hue-rotate(5deg) brightness(92%);
}
.bf-field input[type="date"]:focus::-webkit-calendar-picker-indicator { opacity: 1; }

/* Select: dölj native-pil, rita egen guld-chevron. */
.bf-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a36a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
  cursor: pointer;
}
/* Dropdown-listan ritas av OS → mörk text på ljus bakgrund för läsbarhet. */
.bf-field select option { color: #1a1816; background: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 560px) {
  .bf-fields { grid-template-columns: 1fr; gap: 16px; }
  .bf-dest { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-field input,
  .bf-field select,
  .bf-field textarea { transition-duration: .001ms !important; }
}
