html { scroll-behavior: smooth; }
body { scroll-padding-top: 5rem; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.95rem;
  color: #0A2540;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: #1560A8;
  box-shadow: 0 0 0 3px rgba(21, 96, 168, 0.12);
}
.form-input::placeholder { color: #9ca3af; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-aos].aos-in { opacity: 1; transform: translateY(0); }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -12px;
  width: 2px;
  background: #e5e7eb;
}
.timeline-item:last-child::before { display: none; }

.toast-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: #fff;
  font-weight: 500;
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RTL (Arabic) support ===== */
body.rtl { direction: rtl; text-align: right; }
body.rtl .timeline-item::before { left: auto; right: 15px; }
/* Flip horizontal margins/space utilities commonly used in the layout */
body.rtl .toast-card { flex-direction: row-reverse; }
/* Keep language menu / dropdown aligned to the correct side in RTL */
body.rtl #lang-menu { right: auto; left: 0; }
/* Preserve LTR for inputs that hold codes / numbers (tracking number, email, phone) */
body.rtl input[type="email"],
body.rtl input[type="tel"],
body.rtl #tracking-input {
  direction: ltr;
  text-align: left;
}
/* Language switcher menu items */
#lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #0A2540;
  transition: background .15s;
}
#lang-menu li:hover { background: #f3f4f6; }
#lang-menu li .lang-check { margin-left: auto; color: #1560A8; }
body.rtl #lang-menu li .lang-check { margin-left: 0; margin-right: auto; }
