/**
 * NEW AIRPORT TAXI - INTERACTIVE FARE CALCULATOR WIDGET STYLES
 * Luxury Dark Glassmorphism | Google 2026/2027 UX Standards
 */

.nat-calc-widget {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: relative;
  overflow: hidden;
  accent-color: #d4af37;
}

.nat-calc-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, #fef08a, #d4af37, transparent);
}

.nat-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nat-calc-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nat-calc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nat-calc-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nat-calc-badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nat-calc-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: natPulse 2s infinite;
}

@keyframes natPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.nat-calc-currency-pills {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nat-calc-curr-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition:color 0.2s ease,background-color 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease,opacity 0.2s ease,transform 0.2s ease;
}

.nat-calc-curr-btn:hover {
  color: #ffffff;
}

.nat-calc-curr-btn.active {
  background: #d4af37;
  color: #0b1120;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.nat-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.nat-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nat-calc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nat-calc-select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #ffffff;
  font-size: 1rem; /* 16px to prevent iOS Safari auto-zoom */
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.nat-calc-select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.nat-calc-select option {
  background: #0f172a;
  color: #ffffff;
}

.nat-calc-vehicles {
  margin-bottom: 1.25rem;
}

.nat-calc-vehicle-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.nat-calc-chip {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  text-align: left;
  cursor: pointer;
  transition:color 0.2s ease,background-color 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease,opacity 0.2s ease,transform 0.2s ease;
  color: #e2e8f0;
}

.nat-calc-chip:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(30, 41, 59, 0.85);
}

.nat-calc-chip.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.nat-calc-chip-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  color: #ffffff;
}

.nat-calc-chip.active .nat-calc-chip-name {
  color: #fef08a;
}

.nat-calc-chip-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.15rem;
}

.nat-calc-result-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nat-calc-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.nat-calc-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nat-calc-price-val {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  line-height: 1;
  letter-spacing: -0.02em;
}

.nat-calc-price-tag {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nat-calc-route-details {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nat-calc-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}

.nat-calc-guarantee-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nat-calc-guarantee-strip::-webkit-scrollbar {
  display: none;
}

.nat-calc-feat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.nat-calc-check {
  width: 14px;
  height: 14px;
  color: #34d399;
  flex-shrink: 0;
}

.nat-calc-sep {
  color: rgba(212, 175, 55, 0.45);
  font-size: 0.75rem;
  user-select: none;
}

.nat-calc-cta-col {
  flex-shrink: 0;
}

.nat-calc-btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 18px rgba(16, 185, 129, 0.3);
  transition:color 0.2s cubic-bezier(0.4, 0, 0.2, 1),background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nat-calc-btn-whatsapp:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 24px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

.nat-calc-btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .nat-calc-widget {
    padding: 1.15rem 0.9rem;
    margin: 1.5rem 0;
    border-radius: 14px;
  }
  .nat-calc-title {
    font-size: 1.05rem;
    gap: 0.4rem;
  }
  .nat-calc-title-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }
  .nat-calc-vehicle-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .nat-calc-result-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
    padding: 1.1rem 0.95rem;
    border-radius: 12px;
  }
  .nat-calc-price-row {
    justify-content: center;
    gap: 0.55rem;
  }
  .nat-calc-fare {
    font-size: 1.85rem;
  }
  .nat-calc-route-details {
    justify-content: center;
    font-size: 0.82rem;
  }
  .nat-calc-guarantee-strip {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.4rem 0.65rem;
    font-size: 0.76rem;
    line-height: 1.4;
  }
  .nat-calc-btn-whatsapp {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
    box-sizing: border-box;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .nat-calc-widget {
    padding: 0.95rem 0.7rem;
    border-radius: 12px;
  }
  .nat-calc-title {
    font-size: 0.96rem;
  }
  .nat-calc-select {
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
  }
  .nat-calc-vehicle-chips {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .nat-calc-chip {
    padding: 0.55rem 0.65rem;
  }
  .nat-calc-fare {
    font-size: 1.65rem;
  }
  .nat-calc-guarantee-strip {
    font-size: 0.73rem;
  }
}
