/* public/css/umroh-theme.css
   Revised full CSS: improved contrast, spacing, responsive, and mobile full-width.
   Keep purple theme but fix text contrast and layout issues.
*/

:root{
  --purple-900: #3e1650;
  --purple-800: #61497e;
  --purple-700: #77508d;
  --accent: #6f2dbd;
  --muted: #6b7280;
  --danger: #d62828;
  --bg-start: #7a2fa6;
  --bg-end: #5b216f;
  --card-radius: 12px;
  --white: #ffffff;
  --black-900: #0f1724;
  --surface: #ffffff;
  --glass: rgba(255,255,255,0.06);
}

/* ---------- Page background & base ---------- */
body.umroh-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--black-900);
  /* background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%); */
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Ensure container used in layout spans full width for hero layout */
.umroh-hero .container,
.umroh-wrapper .container {
  max-width: 1200px;
}

/* ---------- Wrapper / centering ---------- */
.umroh-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 140px); /* adjust for header/footer */
  padding: 48px 16px;
  box-sizing: border-box;
}

/* ---------- Card / Form container ---------- */
/* Use transparent card or white surface depending on design.
   Default: white surface for inputs (better readability).
*/
.umroh-card {
  width: 100%;
  max-width: 880px;
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(9,7,22,0.12);
  margin: 0 auto;
  box-sizing: border-box;
}

/* If you choose a clean (no-card) layout, use .umroh-form-container instead:
   .umroh-form-container { background: transparent; box-shadow:none; padding:0; }
*/

/* ---------- Headings / hero ---------- */
.umroh-hero-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.umroh-hero-sub {
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}

/* Card title placed inside white card should be dark */
.umroh-card .card-title,
.umroh-card .umroh-card-title {
  color: var(--black-900);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Form labels & inputs ---------- */
/* Labels on white surface should be dark for contrast */
.umroh-card label.form-label,
.umroh-form label.form-label {
  color: var(--black-900);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Helper / muted text */
.umroh-card .form-text,
.umroh-form .form-text,
.text-umroh-muted {
  color: var(--muted);
  font-size: .9rem;
}

/* Inputs: white background with dark text for readability */
.umroh-card .form-control,
.umroh-card .form-select,
.umroh-form .form-control,
.umroh-form .form-select {
  background: var(--white);
  color: var(--black-900);
  border: 1px solid rgba(15,23,36,0.06);
  border-radius: 8px;
  padding: 10px 12px;
  transition: box-shadow .12s ease, border-color .12s ease;
  box-shadow: none;
}

/* Placeholder */
.umroh-card .form-control::placeholder,
.umroh-form .form-control::placeholder {
  color: #bfb6d6;
}

/* Focus state */
.umroh-card .form-control:focus,
.umroh-card .form-select:focus,
.umroh-form .form-control:focus,
.umroh-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(111,45,189,0.08);
  outline: none;
}

/* ---------- Buttons ---------- */
.umroh-btn-primary,
.btn-primary {
  background: linear-gradient(180deg,var(--purple-800),var(--purple-700));
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  width: 100%;
  box-shadow: 0 8px 20px rgba(111,45,189,0.12);
  transition: transform .06s ease, filter .08s ease;
}
.umroh-btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
}

/* Teal-style CTA for modal close (if used) */
.umroh-teal-btn {
  background: linear-gradient(180deg,#12b886,#0b8f73);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
}

/* ---------- Modal ---------- */
.modal-content.umroh-modal-content {
  border-radius: 10px;
  overflow: hidden;
}
.umroh-modal {
  padding: 22px;
  background: var(--surface);
}
.umroh-modal-title {
  color: var(--purple-900);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .6rem;
}
.umroh-hotel-label { color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
.umroh-hotel-name { font-weight: 600; color: var(--black-900); }

/* Price highlight */
.umroh-price {
  color: var(--danger);
  font-weight: 800;
  font-size: 1.7rem;
  margin-top: .3rem;
}

/* Includes text (teal-like) */
.umroh-includes {
  color: #5a2651;
  line-height: 1.45;
  font-size: .95rem;
}

/* Note */
.umroh-note {
  color: #b02a6b;
  font-size: .92rem;
}

/* ---------- Footer ---------- */
.umroh-footer {
  position: static; /* not fixed so doesn't overlap */
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.04);
  color: #fff;
  text-align: center;
  padding: 12px 0;
  margin-top: 24px;
}

/* ---------- Layout variations (hero style with image) ---------- */
.umroh-hero-section {
  padding: 48px 0;
}
.umroh-row { display:flex; align-items:center; gap:2rem; }
.umroh-left { flex:1 1 520px; }
.umroh-right { flex:0 0 420px; display:flex; justify-content:center; }
.umroh-hero-img { width:320px; height:320px; border-radius:50%; overflow:hidden; box-shadow:0 18px 40px rgba(9,7,22,0.08); }
.umroh-hero-img img { width:100%; height:100%; object-fit:cover; }

/* ---------- Accessibility & small tweaks ---------- */
.invalid-feedback { font-size: .85rem; }
select.form-select option { color: var(--black-900); }

/* ---------- Responsive: mobile-first adjustments ---------- */
@media (max-width: 991.98px) {
  .umroh-row { flex-direction: column-reverse; }
  .umroh-right { margin-bottom: 18px; }
  .umroh-hero-img { width:260px; height:260px; }
}

@media (max-width: 575.98px) {
  .umroh-wrapper { padding: 18px 12px; min-height: auto; }
  .umroh-card { padding: 18px; border-radius: 12px; }
  .umroh-hero-img { display:none; } /* hide image for compactness */
  .umroh-btn-primary { padding: 12px; font-size: 1rem; }
  .umroh-price { font-size: 1.4rem; }
}

/* Hero circle image: fixed size, rounded, responsive, object-fit cover */
.hero-circle {
  width: 450px;               /* desktop size */
  height: 450px;
  max-width: 40vw;            /* prevent overflow on very wide screens */
  max-height: 40vw;
  min-width: 220px;           /* keep reasonable min size */
  min-height: 220px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 18px 40px rgba(9,7,22,0.08);
  background: #fff;           /* optional background if image has transparency */
}

/* Image inside circle */
.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* crop to fill circle without distortion */
  display: block;
}

/* On smaller screens make it smaller or hide */
@media (max-width: 991.98px) {
  .hero-circle {
    width: 260px;
    height: 260px;
    max-width: 60vw;
    max-height: 60vw;
  }
}

@media (max-width: 575.98px) {
  .hero-circle { display: none; } /* hide on very small screens for compact layout */
}

/* Styling untuk bar paling atas (topbar) */
.topbar {
    background-color: #603f6d; /* Warna latar belakang gelap */
    color: #fff; /* Warna teks putih */
    padding: 5px 0; /* Padding atas dan bawah untuk ketebalan bar */
    border-bottom: 1px solid #444; /* Garis tipis di bawah */
    font-family: Arial, sans-serif; /* Font yang mudah dibaca */
}

/* Container untuk membatasi lebar konten di tengah */
/* Asumsi Anda menggunakan class 'container' yang umum (misalnya dari Bootstrap,
   tapi saya buatkan versi dasar di sini jika Anda tidak menggunakannya) */
.container {
    width: 90%; /* Lebar konten 90% */
    max-width: 1200px; /* Lebar maksimal */
    margin: 0 auto; /* Pusatkan di tengah */
}

/* Mengatur Flexbox untuk elemen dalam container */
/* d-flex, justify-content-between, align-items-center adalah konvensi Bootstrap,
   saya terapkan fungsi-fungsinya di sini: */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between; /* Konten di kiri dan kanan */
}

.align-items-center {
    align-items: center; /* Konten sejajar vertikal di tengah */
}

/* Mengatur ukuran font yang kecil */
.small {
    font-size: 0.8rem; /* Ukuran font lebih kecil dari normal */
}

/* Styling untuk jarak antar elemen di top-left */
.top-left span.me-3 {
    margin-right: 15px; /* Jarak antara ikon tanggal dan teks 'Indonesia' */
}

/* Styling tambahan (opsional) untuk teks di top-right */
.top-right span {
    font-weight: bold; /* Membuat nilai uang lebih menonjol */
    color: #fff; /* Warna keemasan untuk nilai uang */
}
/* =================================
   BENDERA MERAH PUTIH (CSS ONLY)
   ================================= */
.indonesia-flag {
    /* Menjadikan elemen bendera sebagai inline-block untuk dapat mengatur ukuran */
    display: inline-block;
    /* Ukuran total bendera */
    width: 18px; /* Lebar bendera */
    height: 12px; /* Tinggi bendera */
    /* Jarak bendera dari elemen di sekitarnya */
    margin-right: 5px;
    /* Menghilangkan margin di kanan bendera */
    vertical-align: middle; /* Pastikan bendera sejajar dengan teks */
    /* Membuat garis luar bendera sedikit terlihat */
    border: 1px solid #777;
    overflow: hidden; /* Penting untuk menyembunyikan bagian yang tumpang tindih */
    position: relative; /* Penting untuk pseudo-element */
}

/* Bagian Merah (di atas) */
.indonesia-flag::before {
    content: ""; /* Pseudo-element harus memiliki content */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Setengah bagian atas */
    background-color: #e4002b; /* Warna Merah Bendera Indonesia (Hex Resmi) */
}

/* Bagian Putih (di bawah) - ini adalah setengah bagian bawah dari elemen .indonesia-flag */
.indonesia-flag::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Setengah bagian bawah */
    background-color: #ffffff; /* Warna Putih */
}

/* Styling untuk Footer */
.site-footer {
    /* Background dan Warna Teks */
    background-color: #603f6d; /* Latar belakang gelap */
    color: #fff; /* Teks berwarna putih */

    /* Padding untuk ruang di dalam footer */
    padding: 10px 0; /* Padding atas dan bawah */

    /* Mengatasi 'mt-auto' dari Bootstrap jika digunakan */
    margin-top: auto;

    /* Menghindari border atau shadow default */
    border-top: 1px solid #444;
}

/* Container untuk membatasi lebar konten (asumsi default 90% atau 1200px) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Penataan Teks */
.text-center {
    text-align: center; /* Memastikan teks berada di tengah */
}

/* Ukuran Font */
.small {
    font-size: 0.85rem; /* Ukuran font lebih kecil */
    opacity: 0.8; /* Sedikit transparansi agar tidak terlalu mencolok */
}
/* includes text teal */
.umroh-includes { color: #4b2047; line-height: 1.45; font-size:.95rem; }

/* teal full-width button like example */
.umroh-teal-btn {
  background: linear-gradient(180deg,#765496,#674775);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
}
/* Hilangkan filter brightness dan ubah HANYA warna teks saat hover */
.umroh-teal-btn:hover {
  filter: none !important;
  color: #f0e6ff !important; /* warna teks saat hover â€” ubah sesuai preferensi */
  transform: translateY(-1px);
}
/* Warna ungu khas Safir (contoh hex bisa diganti sesuai kebutuhan) */
.btn-safir {
  color: #fff;
  background-color: #3e1650; /* Ungu Safir */
  border-color: #6f42c1;
}

.btn-safir:hover {
  background-color: #61497e;
  border-color: #512c96;
}

