/* Salam Air Clone - CSS */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Top notification bar */
.top-bar {
  background: #006837;
  color: white;
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.top-bar .marquee {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Header */
.header {
  background: white;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo img {
  height: 50px;
  width: auto;
}

.header .logo h1 {
  font-size: 24px;
  color: #006837;
  font-weight: 800;
}

.header .logo span {
  font-size: 12px;
  color: #8DC63F;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header nav a {
  color: #333;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

.header nav a:hover {
  color: #006837;
}

.header .auth-btn {
  background: #006837;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
}

.header .auth-btn:hover {
  background: #005028;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #006837 0%, #8DC63F 100%);
}

.hero-banner .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s;
}

.hero-banner .slide.active {
  opacity: 1;
}

.hero-banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner .slide-content {
  position: absolute;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-banner .slide-content h2 {
  font-size: 36px;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-banner .slide-content p {
  font-size: 18px;
  margin-top: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Search Section */
.search-section {
  max-width: 900px;
  margin: -60px auto 30px;
  position: relative;
  z-index: 10;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}

.search-tabs {
  display: flex;
  background: #f8f8f8;
  border-bottom: 2px solid #eee;
}

.search-tabs .tab {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.search-tabs .tab.active {
  color: #006837;
  border-bottom-color: #006837;
  background: white;
}

.search-tabs .tab i {
  margin-left: 8px;
  font-size: 18px;
}

.search-form {
  padding: 25px 30px;
}

.search-form .trip-type {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.search-form .trip-type label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #555;
}

.search-form .trip-type input[type="radio"] {
  accent-color: #006837;
  width: 18px;
  height: 18px;
}

.search-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.search-form .form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.search-form .form-group {
  position: relative;
}

.search-form .form-group label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
  font-weight: 500;
}

.search-form .form-group input,
.search-form .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s;
  background: white;
}

.search-form .form-group input:focus,
.search-form .form-group select:focus {
  outline: none;
  border-color: #006837;
}

.search-form .form-group input[type="date"],
.search-form .form-group input.flatpickr-input {
  direction: rtl;
  text-align: right;
  background: white;
}

.flatpickr-calendar {
  direction: ltr;
}

.search-form .form-group .icon {
  position: absolute;
  left: 12px;
  top: 35px;
  color: #006837;
  font-size: 20px;
}

.search-form .passengers-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.search-form .passenger-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px 12px;
}

.search-form .passenger-counter .label {
  font-size: 13px;
  color: #666;
}

.search-form .passenger-counter .controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form .passenger-counter .controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #006837;
  background: white;
  color: #006837;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.search-form .passenger-counter .controls button:hover {
  background: #006837;
  color: white;
}

.search-form .passenger-counter .controls span {
  font-weight: 700;
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.btn-search {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #006837, #8DC63F);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,104,55,0.3);
}

.btn-search:active {
  transform: scale(0.97);
}

/* Services Section */
.services-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.services-section h2 {
  font-size: 28px;
  color: #006837;
  margin-bottom: 30px;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card .icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #006837;
}

.service-card h3 {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

/* Destinations Section */
.destinations-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.destinations-section h2 {
  font-size: 28px;
  color: #006837;
  margin-bottom: 30px;
  font-weight: 700;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dest-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.dest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dest-card .img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.dest-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest-card .price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #006837;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.dest-card .info {
  padding: 15px;
}

.dest-card .info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.dest-card .info p {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* Footer */
.footer {
  background: #006837;
  color: white;
  padding: 40px 30px 20px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* Flights Results Page */
.page-header {
  background: linear-gradient(135deg, #006837, #004d28);
  color: white;
  padding: 20px 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-header .route-info {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
}

.flights-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.flight-card {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.flight-card:hover {
  border-color: #006837;
  box-shadow: 0 6px 20px rgba(0,104,55,0.15);
}

.flight-card.selected {
  border-color: #006837;
  background: #f0faf4;
}

.flight-card .flight-info {
  display: flex;
  align-items: center;
  gap: 30px;
}

.flight-card .time-block {
  text-align: center;
}

.flight-card .time-block .time {
  font-size: 22px;
  font-weight: 800;
  color: #006837;
}

.flight-card .time-block .city {
  font-size: 12px;
  color: #888;
}

.flight-card .flight-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.flight-card .flight-line .duration {
  font-size: 12px;
  color: #888;
}

.flight-card .flight-line .line {
  width: 100%;
  height: 2px;
  background: #ddd;
  position: relative;
  margin: 5px 0;
}

.flight-card .flight-line .line::after {
  content: '✈';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 16px;
  color: #006837;
}

.flight-card .flight-line .type {
  font-size: 11px;
  color: #8DC63F;
  font-weight: 600;
}

.flight-card .price-block {
  text-align: center;
}

.flight-card .price-block .price {
  font-size: 24px;
  font-weight: 800;
  color: #006837;
}

.flight-card .price-block .currency {
  font-size: 12px;
  color: #888;
}

.flight-card .price-block .per-person {
  font-size: 11px;
  color: #aaa;
}

.btn-continue {
  display: block;
  max-width: 400px;
  margin: 30px auto;
  padding: 14px 40px;
  background: linear-gradient(135deg, #006837, #8DC63F);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,104,55,0.3);
}

.btn-continue:active {
  transform: scale(0.97);
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Passenger Form */
.passenger-form-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
}

.passenger-form {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.passenger-form h2 {
  font-size: 22px;
  color: #006837;
  margin-bottom: 25px;
  font-weight: 700;
}

.passenger-form .form-group {
  margin-bottom: 18px;
}

.passenger-form .form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.passenger-form .form-group input,
.passenger-form .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s;
}

.passenger-form .form-group input:focus,
.passenger-form .form-group select:focus {
  outline: none;
  border-color: #006837;
}

.passenger-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Payment Page */
.payment-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 20px;
}

.payment-form {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.payment-form h2 {
  font-size: 22px;
  color: #006837;
  margin-bottom: 10px;
  font-weight: 700;
}

.payment-form .summary-box {
  background: #f0faf4;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
}

.payment-form .summary-box .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.payment-form .summary-box .row.total {
  font-weight: 700;
  font-size: 16px;
  color: #006837;
  border-top: 1px solid #c8e6c9;
  padding-top: 8px;
  margin-top: 8px;
}

.payment-form .form-group {
  margin-bottom: 18px;
}

.payment-form .form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.payment-form .form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s;
  direction: ltr;
  text-align: left;
}

.payment-form .form-group input:focus {
  outline: none;
  border-color: #006837;
}

.payment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.payment-form .card-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.payment-form .card-icons svg {
  opacity: 0.3;
  transition: all 0.3s;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.payment-form .card-icons svg.active {
  opacity: 1;
  transform: scale(1.1);
}

.btn-pay {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #006837, #8DC63F);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-top: 10px;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,104,55,0.3);
}

.btn-pay:active {
  transform: scale(0.97);
}

.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* OTP Page */
.otp-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.otp-box {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.otp-box .icon-lock {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #006837;
}

.otp-box h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.otp-box p {
  font-size: 14px;
  color: #888;
  margin-bottom: 25px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  direction: ltr;
}

.otp-inputs input {
  width: 50px;
  height: 55px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s;
}

.otp-inputs input:focus {
  outline: none;
  border-color: #006837;
}

.btn-verify {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #006837, #8DC63F);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-verify:hover {
  transform: translateY(-2px);
}

.btn-verify:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Page */
.loading-container {
  max-width: 500px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.loading-box {
  background: white;
  border-radius: 16px;
  padding: 50px 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.loading-box .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e0e0e0;
  border-top-color: #006837;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-box h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.loading-box p {
  font-size: 14px;
  color: #888;
}

/* Progress Steps */
.progress-steps {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.progress-steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-steps .step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.progress-steps .step.active .num {
  background: #006837;
  color: white;
}

.progress-steps .step.done .num {
  background: #8DC63F;
  color: white;
}

.progress-steps .step .text {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.progress-steps .step.active .text {
  color: #006837;
  font-weight: 700;
}

.progress-steps .connector {
  width: 40px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 5px;
}

.progress-steps .connector.done {
  background: #8DC63F;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header {
    padding: 10px 15px;
  }
  
  .header nav {
    display: none;
  }
  
  .header .logo h1 {
    font-size: 20px;
  }
  
  .hero-banner {
    height: 250px;
  }
  
  .search-section {
    margin: -40px 15px 20px;
  }
  
  .search-form {
    padding: 20px 15px;
  }
  
  .search-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .search-form .form-row.three-col {
    grid-template-columns: 1fr;
  }
  
  .search-form .passengers-row {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flight-card {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .flight-card .flight-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .passenger-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .payment-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .destinations-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .otp-inputs input {
    width: 42px;
    height: 48px;
    font-size: 18px;
  }
}
