/* =============================================
   Miyabi India Tour — Book Your Tour Widget
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Lato:wght@400;700&display=swap');

:root {
  --mibt-gold:       #c8922a;
  --mibt-gold-light: #e8b84b;
  --mibt-dark:       #1a1208;
  --mibt-cream:      #fdf8f0;
  --mibt-border:     #e6d9c0;
  --mibt-text:       #3d2e12;
  --mibt-muted:      #8a7455;
  --mibt-error:      #c0392b;
  --mibt-success:    #27ae60;
  --mibt-radius:     10px;
}

/* ── Container ── */
.mibt-widget {
  font-family: 'Lato', sans-serif;
  background: var(--mibt-cream);
  border: 1px solid var(--mibt-border);
  border-radius: var(--mibt-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(200, 146, 42, 0.12);
  max-width: 380px;
  width: 100%;
}

/* ── Header ── */
.mibt-widget__header {
  background: linear-gradient(135deg, #1a1208 0%, #2e1f08 50%, #c8922a 100%);
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mibt-widget__icon {
  font-size: 20px;
  line-height: 1;
}
.mibt-widget__title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Form Body ── */
#mibt-booking-form {
  padding: 18px 20px 4px;
}

/* ── Fields ── */
.mibt-field {
  margin-bottom: 14px;
}
.mibt-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mibt-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.mibt-field small {
  display: block;
  font-size: 0.71rem;
  color: var(--mibt-muted);
  margin-bottom: 4px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.req { color: var(--mibt-gold); }

.mibt-field input[type="text"],
.mibt-field input[type="email"],
.mibt-field input[type="tel"],
.mibt-field input[type="date"],
.mibt-field select,
.mibt-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--mibt-border);
  border-radius: 7px;
  background: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  color: var(--mibt-text);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.mibt-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7455' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.mibt-field input:focus,
.mibt-field select:focus,
.mibt-field textarea:focus {
  outline: none;
  border-color: var(--mibt-gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}
.mibt-field textarea {
  resize: vertical;
  min-height: 72px;
}

/* ── Inline Fields (Adults / Children) ── */
.mibt-field--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mibt-field--inline > div label {
  display: block;
}

/* ── Phone Row ── */
.mibt-phone-row {
  display: flex;
  gap: 8px;
}
.mibt-phone-row select {
  width: 120px;
  flex-shrink: 0;
}
.mibt-phone-row input {
  flex: 1;
}

/* ── Submit Button ── */
.mibt-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--mibt-gold) 0%, var(--mibt-gold-light) 100%);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(200, 146, 42, 0.35);
}
.mibt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 146, 42, 0.45);
}
.mibt-btn:active { transform: translateY(0); }
.mibt-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* ── Messages ── */
.mibt-message {
  margin: 12px 0 6px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 700;
  text-align: center;
}
.mibt-message.success {
  background: #eafaf1;
  color: var(--mibt-success);
  border: 1px solid #a9dfbf;
}
.mibt-message.error {
  background: #fdedec;
  color: var(--mibt-error);
  border: 1px solid #f5b7b1;
}

/* ── WhatsApp CTA ── */
.mibt-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  margin: 14px 20px 20px;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.mibt-whatsapp:hover {
  background: #20ba5a;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Validation States ── */
.mibt-field input.invalid,
.mibt-field select.invalid,
.mibt-field textarea.invalid {
  border-color: var(--mibt-error);
}

/* ── Mobile Responsive ── */
@media (max-width: 480px) {
  .mibt-widget {
    max-width: 100%;
    border-radius: 0;
  }
  #mibt-booking-form {
    padding: 14px 14px 4px;
  }
  .mibt-whatsapp {
    margin: 10px 14px 16px;
  }
  .mibt-field--inline {
    grid-template-columns: 1fr;
  }
  .mibt-phone-row select { width: 100px; }
}
