/* "Customize My Trip" floating button + side panel (markup: inc/trip-drawer.php).
   Moved unchanged from the custom CSS of footer template 41, plus link + focus styles. */

/* =====================================================
   BTM Floating Trip Customizer — Premium Styled CSS
   Replace your existing BTM CSS block with this one
   ===================================================== */

#btm-wrap * { box-sizing: border-box; }

/* ── Floating button ── */
#btm-fab {
  text-decoration: none;
  position: fixed; bottom: 28px; right: 28px; z-index: 9990;
  background: #ff681a;
  color: #fff; border: none; border-radius: 50px;
  padding: 15px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 24px rgba(255,104,26,.42), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  font-family: inherit; letter-spacing: .02em;
}
#btm-fab:hover,
#btm-fab:focus-visible {
  color: #fff;

  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255,104,26,.48), 0 4px 10px rgba(0,0,0,.18);
}
#btm-fab:active { transform: scale(.97); }

.btm-dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.95); border-radius: 50%;
  animation: btm-pulse 2.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes btm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.75); }
}

/* ── Overlay ── */
#btm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10, 6, 2, .55); z-index: 9991;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

/* ── Drawer shell ── */
#btm-drawer {
  position: fixed; bottom: 0; right: 0;
  width: 460px; max-width: 100vw; max-height: 94vh;
  background: #FDFAF7;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,.22), 0 -2px 12px rgba(0,0,0,.1);
  z-index: 9992;
  transform: translateY(102%);
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  visibility: hidden;
  display: flex; flex-direction: column; overflow: hidden;
}
#btm-drawer.btm-open { transform: translateY(0);visibility: visible; }

/* ── Header ── */
.btm-head {
  background: #ff681a;
  color: #fff;
  padding: 20px 22px 18px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
/* subtle pattern overlay on header */
.btm-head::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.btm-head-text { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.btm-head-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btm-head h2 {
  font-size: 17px; font-weight: 800; margin: 0;
  letter-spacing: -.01em; font-family: inherit;
  line-height: 1.2;color:white!important; 
}
.btm-head p {
  font-size: 12px; opacity: .8; margin: 3px 0 0;
  font-family: inherit; letter-spacing: .01em;color:white!important; 
}
.btm-close {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: background .15s, transform .15s;
  flex-shrink: 0; position: relative; z-index: 1; font-family: inherit;
  line-height: 1;
}
.btm-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }

/* ── Scroll body ── */
.btm-body {
  flex: 1; overflow-y: auto; padding: 22px 24px 28px;
  scrollbar-width: thin; scrollbar-color: #e0d8d0 transparent;
}
.btm-body::-webkit-scrollbar { width: 4px; }
.btm-body::-webkit-scrollbar-thumb { background: #ddd4c8; border-radius: 4px; }

/* ── Step bar ── */
.gdm-steps-bar {
visibility: hidden;
  display: flex; align-items: center;
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid #EDE7DF;
}

#btm-drawer.btm-open .gdm-steps-bar {
  visibility: visible;
}

.gdm-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1;
}
.gdm-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #DDD5CC;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #BBB0A6; background: #fff;
  transition: all .28s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
}
.gdm-step.active .gdm-step-circle {
  background: #ff681a;
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(255,104,26,.38);
  transform: scale(1.08);
}
.gdm-step.done .gdm-step-circle {
  background: rgba(255,104,26,.08); border-color: #ff681a; color: #ff681a;
}
.gdm-step-label {
  font-size: 10px; font-weight: 600; color: #C5BAB3;
  display: flex; align-items: center; gap: 3px;
  white-space: nowrap; font-family: inherit; letter-spacing: .03em;
  text-transform: uppercase;
}
.gdm-step-label svg { opacity: .5; }
.gdm-step.active .gdm-step-label { color: #ff681a; }
.gdm-step.done   .gdm-step-label { color: #ff681a; }
.gdm-step-line {
  height: 1.5px; flex: 0 0 16px;
  background: #EDE7DF; margin-bottom: 16px;
  transition: background .28s;
}
.gdm-step-line.done { background: #ff681a; }

/* ── CF7 field labels ── */
#btm-drawer .wpcf7 label,
#btm-drawer .wpcf7 .wpcf7-form-control-wrap > label {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #8A8078;
  display: block; margin-bottom: 6px; font-family: inherit;
}

/* ── Text / email / tel / number / date inputs ── */
#btm-drawer .wpcf7 input[type="text"],
#btm-drawer .wpcf7 input[type="email"],
#btm-drawer .wpcf7 input[type="tel"],
#btm-drawer .wpcf7 input[type="date"],
#btm-drawer .wpcf7 input[type="number"],
#btm-drawer .wpcf7 select,
#btm-drawer .wpcf7 textarea {
  width: 100%;
  border: 1.5px solid #E8E0D8;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px; font-family: inherit;
  background: #fff;
  color: #1C1612;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none; appearance: none; -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
#btm-drawer .wpcf7 input::placeholder,
#btm-drawer .wpcf7 textarea::placeholder { color: #BFB8B0; }

#btm-drawer .wpcf7 input[type="text"]:focus,
#btm-drawer .wpcf7 input[type="email"]:focus,
#btm-drawer .wpcf7 input[type="tel"]:focus,
#btm-drawer .wpcf7 input[type="date"]:focus,
#btm-drawer .wpcf7 input[type="number"]:focus,
#btm-drawer .wpcf7 select:focus,
#btm-drawer .wpcf7 textarea:focus {
  border-color: #ff681a;
  box-shadow: 0 0 0 3px rgba(255,104,26,.12);
  background: #fff;
}

/* ── Select dropdown ── */
#btm-drawer .wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A09890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}

/* ── Textarea ── */
#btm-drawer .wpcf7 textarea {
  min-height: 88px; resize: vertical; line-height: 1.6;
}

/* ── Form paragraph / row spacing ── */
#btm-drawer .wpcf7 p,
#btm-drawer .wpcf7 .form-row,
#btm-drawer .wpcf7 br + br { margin-bottom: 16px; }
#btm-drawer .wpcf7 p:last-of-type { margin-bottom: 0; }

/* ── Submit button ── */
#btm-drawer .wpcf7 .wpcf7-submit,
#btm-drawer .wpcf7 input[type="submit"] {
  width: 100%;
  background: #ff681a;
  color: #fff; border: none;
  border-radius: 12px; padding: 15px;
  font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  letter-spacing: .03em;
  box-shadow: 0 4px 16px rgba(255,104,26,.38), 0 1px 4px rgba(0,0,0,.12);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  margin-top: 8px;
}
#btm-drawer .wpcf7 .wpcf7-submit:hover,
#btm-drawer .wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,104,26,.44), 0 2px 6px rgba(0,0,0,.14);
}
#btm-drawer .wpcf7 .wpcf7-submit:active,
#btm-drawer .wpcf7 input[type="submit"]:active {
  transform: scale(.98);
}

/* ── CF7 response / validation ── */
#btm-drawer .wpcf7-response-output {
  border-radius: 10px; padding: 11px 15px;
  font-size: 13px; margin-top: 14px;
  font-family: inherit; border: none !important;
}
#btm-drawer .wpcf7-mail-sent-ok {
  background: #EDF7EE; color: #2D6A30;
}
#btm-drawer .wpcf7-validation-errors,
#btm-drawer .wpcf7-mail-sent-ng {
  background: rgba(255,104,26,.08); color: #ff681a;
}
#btm-drawer .wpcf7 .wpcf7-not-valid-tip {
  font-size: 11px; color: #ff681a;
  margin-top: 4px; font-family: inherit;
}
#btm-drawer .wpcf7 .wpcf7-not-valid input,
#btm-drawer .wpcf7 .wpcf7-not-valid select,
#btm-drawer .wpcf7 .wpcf7-not-valid textarea {
  border-color: #ff681a;
  box-shadow: 0 0 0 3px rgba(255,104,26,.10);
}

/* ── UACF7 Next/Prev buttons ── */
#btm-drawer .wpcf7 .uacf7-next,
#btm-drawer .wpcf7 .uacf7-prev,
#btm-drawer .wpcf7 input[type="button"] {
  border-radius: 10px; padding: 12px 22px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; letter-spacing: .02em;
  transition: transform .18s, box-shadow .18s;
}
#btm-drawer .wpcf7 .uacf7-next,
#btm-drawer .wpcf7 input[type="button"][value="Next"],
#btm-drawer .wpcf7 input[type="button"][value="next"] {
  background: #ff681a;
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(255,104,26,.34);
}
#btm-drawer .wpcf7 .uacf7-next:hover,
#btm-drawer .wpcf7 input[type="button"][value="Next"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(255,104,26,.42);
}
#btm-drawer .wpcf7 .uacf7-prev,
#btm-drawer .wpcf7 input[type="button"][value="Previous"],
#btm-drawer .wpcf7 input[type="button"][value="Back"],
#btm-drawer .wpcf7 input[type="button"][value="previous"],
#btm-drawer .wpcf7 input[type="button"][value="back"] {
  background: #F0EAE3; color: #7A6E66;
  border: none;
}
#btm-drawer .wpcf7 .uacf7-prev:hover { background: #E8E0D6; }

/* ── Trust row at bottom ── */
.btm-promise {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: #A89E96; margin-top: 18px;
  padding: 14px 16px; border-radius: 12px;
  background: #F5EFE8;
  border: 1px solid #EDE5DC;
  font-family: inherit; line-height: 1.6;
}
.btm-promise svg { flex-shrink: 0; margin-top: 1px; opacity: .5; }

/* ── Mobile ── */
@media (max-width: 480px) {
  #btm-fab { bottom: 16px; right: 16px; padding: 13px 20px; font-size: 13px; }
  #btm-drawer { width: 100vw; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .btm-body { padding: 18px 18px 24px; }
  .btm-head { padding: 17px 18px 15px; }
}

#btm-fab:focus-visible { outline: 3px solid #0B335C; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btm-dot { animation: none; } #btm-drawer { transition: none; } }
