/* ============================================================
   HOME PAGE — Animations, Hero, Quote Card
   ============================================================ */

/* ----------------------------------------------------------
   SEO / SCROLL FIX
   overflow-anchor is the real CSS property (there is no
   "scroll-anchor" property). Disabling it stops the browser
   from silently shifting scroll position when content above
   the viewport resizes or loads in — part of the fix for the
   page loading "stuck" partway down.
   ---------------------------------------------------------- */
html {
  overflow-anchor: none;
}

/* ----------------------------------------------------------
   ANIMATION KEYFRAMES
   ---------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ----------------------------------------------------------
   ANIMATION UTILITY CLASSES
   ---------------------------------------------------------- */
.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.animate-scale {
  opacity: 0;
  animation: scaleIn 0.7s ease both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }
.delay-7 { animation-delay: 0.35s; }

/* ----------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: #ffffff;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* ---- Hero Text ---- */
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-text h1 span {
  color: #fcd34d;
}

.hero-text p {
  font-size: 1.1rem;
  color: #f1f5f9;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Primary Button ---- */
.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 16px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.35);
  background: #1d4ed8;
}

.btn-primary:active {
  transform: scale(0.96);
}

/* ----------------------------------------------------------
   QUOTE CARD
   ---------------------------------------------------------- */
.quote-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 40px;
  padding: 40px 36px 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(229, 231, 235, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.quote-card:hover {
  box-shadow: 0 40px 96px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* ---- Quote Header ---- */
.quote-card .quote-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.quote-card .quote-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}

.quote-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.quote-card .subhead {
  color: #475569;
  margin-bottom: 24px;
  font-size: 0.95rem;
  margin-left: 58px;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.5;
}

/* ---- Quote Form Grid ---- */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.form-group label {
  font-weight: 600;
  font-size: 0.7rem;
  color: #334155;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.form-group:hover label {
  color: #2563eb;
}

/*
 * ✅ FIX: background-color instead of background shorthand
 * background shorthand kills background-image on select
 */
.form-group input,
.form-group select {
  padding: 13px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(229, 231, 235, 0.5);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/*
 * ✅ FIX: background-color instead of background
 * so select arrow SVG is not killed
 */
.form-group input:focus,
.form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  background-color: #ffffff;
  transform: scale(1.01);
}

.form-group input:hover,
.form-group select:hover {
  border-color: #2563eb;
}

.form-group.full-width {
  grid-column: span 2;
}

/* ----------------------------------------------------------
   SELECT — CUSTOM ARROW (single clean SVG)
   ✅ FIX: Uses background-image which now survives
   because parent rules use background-color not background
   ---------------------------------------------------------- */
.form-group select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------
   FORM VALIDATION — ERROR STATES
   ---------------------------------------------------------- */
.form-group .field-error {
  display: none;
  font-size: 0.72rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 3px;
  padding-left: 2px;
  align-items: center;
  gap: 4px;
}

.form-group .field-error i {
  font-size: 0.68rem;
}

.form-group.has-error .field-error {
  display: flex;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #dc2626;
  background-color: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
  transform: scale(1);
  /* ✅ Keep arrow visible even in error state */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
  transform: scale(1);
}

.form-group.has-error label {
  color: #dc2626;
}

/* Shake animation for error */
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.form-group.shake-it input,
.form-group.shake-it select {
  animation: fieldShake 0.4s ease;
}

/* Submit button error state */
.btn-submit.btn-error {
  background: #dc2626;
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.2);
}

.btn-submit.btn-error:hover {
  background: #b91c1c;
}

/* ----------------------------------------------------------
   SUBMIT BUTTON
   ---------------------------------------------------------- */
.btn-submit {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 16px 28px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-submit:hover::after {
  opacity: 1;
}

.btn-submit:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 44px rgba(37, 99, 235, 0.3);
  background: #1d4ed8;
}

.btn-submit:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
  }

  .quote-card {
    max-width: 100%;
    margin-left: 0;
  }

  .quote-card .subhead {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 80px 16px 50px;
  }

  .hero-bg {
    object-position: center 25%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 16px 60px;
    min-height: 80vh;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a {
    justify-content: center;
  }

  .quote-card {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .quote-card h2 {
    font-size: 1.4rem;
  }

  .quote-card .subhead {
    margin-left: 0;
    font-size: 0.85rem;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-group input,
  .form-group select {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .form-group.full-width {
    grid-column: span 2;
  }

  .btn-submit {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: 75px 14px 40px;
  }

  .hero-bg {
    object-position: center 20%;
  }
}

@media (max-width: 420px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}


/* =========================================
   How to Book Umrah from the UK
========================================= */

.how-to-book-umrah {
    background: #ffffff;
}


/* Booking Cards */

.booking-card {
    background: #F9F9F9;
    border-radius: 24px;
    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100%;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


.booking-content {
    margin-bottom: 24px;
}


.booking-number {
    display: inline-block;

    color: #008275;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 12px;

    letter-spacing: 1px;
}


.booking-card h3 {
    color: #111827;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 12px;
}


.booking-card p {
    color: #6B7280;

    font-size: 14px;

    line-height: 1.7;

    margin: 0;
}


/* Card Images */

.booking-image {
    width: 100%;
    height: 230px;

    overflow: hidden;

    border-radius: 18px;
}


.booking-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.4s ease;
}


.booking-card:hover .booking-image img {
    transform: scale(1.04);
}


/* =========================================
   Book Umrah Online Now
========================================= */

.book-umrah-online {
    background: #008275;

    border-radius: 24px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 1fr 1fr;

    color: #ffffff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}


/* Left Image */

.book-umrah-image {
    min-height: 350px;
}


.book-umrah-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* Right Content */

.book-umrah-content {
    padding: 64px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 32px;
}


.book-umrah-content h2 {
    color: #ffffff;
}


.book-umrah-content p {
    color: #CCFBF1;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   Stats
========================================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 32px;

    padding-top: 16px;

    border-top:
        1px solid rgba(45, 212, 191, 0.5);
}


.stat-number {
    color: #ffffff;

    font-size: 36px;

    font-weight: 800;

    line-height: 1.2;
}


.stat-label {
    color: #99F6E4;

    font-size: 12px;

    margin-top: 4px;
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 1024px) {

    .book-umrah-content {
        padding: 48px;
    }

    .booking-card {
        padding: 22px;
    }

    .booking-image {
        height: 220px;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .book-umrah-online {
        grid-template-columns: 1fr;
    }

    .book-umrah-image {
        height: 320px;
        min-height: auto;
    }

    .book-umrah-content {
        padding: 36px 24px;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-number {
        font-size: 30px;
    }
}


@media (max-width: 640px) {

    .how-to-book-umrah {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .booking-card {
        border-radius: 20px;
        padding: 20px;
    }

    .booking-card h3 {
        font-size: 18px;
    }

    .booking-card p {
        font-size: 13px;
    }

    .booking-image {
        height: 210px;
        border-radius: 16px;
    }

    .book-umrah-image {
        height: 260px;
    }

    .book-umrah-content {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 27px;
    }
}