/* ================= GLOBAL ================= */

body {
  font-family: "Outfit", sans-serif;
  color: #000;
}

.jenazah-intro-section p,
.jenazah-process-section p,
.jenazah-documents-section p,
.jenazah-documents-list li,
.jenazah-fees-section p,
.jenazah-form-section p,
.jenazah-faq-section p,
.jenazah-page label,
.jenazah-page h3 {
  color: #000;
  font-family: "Outfit", sans-serif;
}

.jenazah-page input[type="file"] {
  color: #000;
  font-family: "Outfit", sans-serif;
}

/* ================= JENAZAH BANNER ================= */

.jenazah-banner-section {
  width: 100%;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(41, 110, 86, 0.95),
    rgba(22, 60, 48, 0.95)
  );
  overflow: hidden;
}

.jenazah-banner-section::before,
.jenazah-banner-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: url("img/islamic-pattern2.png") center/contain no-repeat;
  opacity: 0.08;
  animation: jenazahRotate 40s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.jenazah-banner-section::before {
  top: -180px;
  left: -180px;
}

.jenazah-banner-section::after {
  bottom: -180px;
  right: -180px;
  animation-direction: reverse;
}

@keyframes jenazahRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.jenazah-banner-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 5;
}

.jenazah-banner-title {
  font-size: clamp(32px, 5vw, 60px);
  font-family: "Playfair Display", serif;
  margin-bottom: 15px;
  font-weight: 600;
}

.jenazah-banner-subtext {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 20px;
  color: #c9c9c9;
}

.jenazah-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffffff, #f2f2f2);
  color: #296e56;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.jenazah-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .main-content {
    padding: 20px;
  }

  .jenazah-banner-section {
    height: 60vh;
    padding: 20px;
  }

  .jenazah-banner-section::before,
  .jenazah-banner-section::after {
    width: 300px;
    height: 300px;
    opacity: 0.04;
  }

  .jenazah-banner-section::before {
    top: -120px;
    left: -120px;
  }

  .jenazah-banner-section::after {
    bottom: -120px;
    right: -120px;
  }

  .jenazah-banner-title {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 60px;
  }

  .jenazah-banner-subtext {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
  }
}

/* ================= SECTION TITLES ================= */

.jenazah-section-title {
  color: #296e56;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  text-align: center;
  font-size: 34px;
}

.jenazah-section-title::after {
  content: "";
  display: block;
  width: clamp(60px, 8vw, 120px);
  height: 4px;
  background: linear-gradient(to right, #caa83a, #9f7f1f);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

/* ================= INTRO ================= */

.jenazah-intro-section {
  padding: 60px 0;
  text-align: center;
  background: #f8fbf9;
}

.jenazah-intro-section p {
  max-width: 1000px;
  margin: 20px auto 0;
  font-size: 20px;
  line-height: 1.8;
  color: #444;
}

/* ================= PROCESS ================= */

.jenazah-process-section {
  padding: 60px 0;
  background-color: #eef5f1;
  text-align: center;
}

.jenazah-process-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.jenazah-process-card:nth-child(1),
.jenazah-process-card:nth-child(2),
.jenazah-process-card:nth-child(3) {
  grid-column: span 2;
}

.jenazah-process-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.jenazah-process-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.jenazah-process-card {
  position: relative;
  background: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.process-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.jenazah-process-card h3 {
  font-size: 18px;
  margin: 15px 0 10px;
  font-weight: 700;
  color: #296e56;
}

.jenazah-process-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.jenazah-process-card:hover {
  transform: translateY(-6px);
}

/* ================= PROCESS ICON ================= */

.jenazah-process-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: #e6f0ec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.jenazah-process-icon img {
  width: 34px;
  height: 34px;
  transition: 0.3s ease;
}

.jenazah-process-card:hover .jenazah-process-icon {
  background: #296e56;
}

.jenazah-process-card:hover .jenazah-process-icon img {
  filter: brightness(0) invert(1);
}

/* ================= DOCUMENTS ================= */

.jenazah-documents-section {
  padding: 80px 20px;
  background: #fff;
}

.jenazah-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.jenazah-doc-card {
  background: #f6f9f7;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 35px 25px;
  text-align: center;
  transition: 0.3s ease;
}

.jenazah-doc-card span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.jenazah-doc-card p {
  font-size: 18px;
  font-weight: 600;
  color: #296e56;
}

.jenazah-doc-card:hover {
  transform: translateY(-6px);
}

/* ================= FEES ================= */

.jenazah-fees-section {
  padding: 60px 0;
  background-color: #eef5f1;
}

.jenazah-fees-section .jenazah-fees-text {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 20px;
}

.jenazah-fees-list {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: 20px auto;
}

.jenazah-fees-list li {
  background: #ffffff;
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: 10px;

  font-size: 16px;
  color: #296e56;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  transition: all 0.3s ease;
}

.jenazah-fees-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.jenazah-fees-list li::before {
  content: "✔";
  color: #2e7d65;
  font-weight: bold;
  font-size: 14px;
}

/* ================= FORM ================= */

.jenazah-form-section {
  padding: 60px 40px;
  background: #fff;
  width: 100%;
}

.jenazah-form-group {
  margin-bottom: 20px;
}

.jenazah-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.jenazah-form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.jenazah-submit-btn {
  display: inline-block;
  background: #296e56;
  color: #fff;
  padding: 12px 25px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.jenazah-submit-btn:hover {
  background: #18352c;
}

/* Dropdown select with custom arrow */
.jenazah-form-group select {
  width: 100%;
  padding: 10px 40px 10px 12px; /* extra right space for arrow */
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;

  /* hide default browser arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23296e56' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* for old Microsoft browsers */
.jenazah-form-group select::-ms-expand {
  display: none;
}

/* ================= 2 COLUMN FORM ================= */

.jenazah-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.jenazah-full-width {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .jenazah-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= PAYMENT BOX ================= */

.payment-box {
  background: #f8fbf8;
  border: 1px solid #e3eee7;
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 10px;
}

.payment-title {
  font-weight: 600;
  color: #296e56;
  margin-bottom: 10px;
}

.payment-box p {
  margin: 6px 0;
  color: #444;
  line-height: 1.5;
}

.payment-box strong {
  color: #222;
}

/* QR styling */
.qr-container {
  text-align: center;
}

.qr-container img {
  max-width: 180px;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 6px;
  background: #fff;
  margin-top: 10px;
}

/* ================= PREMIUM TOGGLE ================= */

.toggle-arrow {
  text-align: center;
  margin: 10px 0 30px 0;
  cursor: pointer;
}

.toggle-arrow img {
  width: 32px;
  opacity: 0.7;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.toggle-arrow:hover img {
  opacity: 1;
  transform: translateY(4px);
}

.toggle-arrow.active img {
  transform: rotate(180deg);
  opacity: 1;
}

#formWrapper {
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);

  transition:
    max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    transform 0.6s ease;
}

#formWrapper.show {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
}

.jenazah-section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #caa64b;
  margin: 10px auto 0;
  transition: opacity 0.3s ease;
}

.toggle-arrow.active + #formWrapper {
  margin-top: 20px;
}

/* ================= FAQ ================= */

.jenazah-faq-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #eef5f1, #f7fbf9);
}

.jenazah-faq {
  max-width: 900px;
  margin: 40px auto 0;
}

.jenazah-faq-item {
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.jenazah-faq-question {
  width: 100%;
  background: white;
  border: none;
  padding: 20px 24px;
  font-size: 20px;
  color: #296e56;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.jenazah-faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.35s ease;
  padding: 0 24px;
}

.jenazah-faq-answer p {
  padding: 15px 0 20px;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.jenazah-faq-item.active .jenazah-faq-answer {
  max-height: 200px;
}

.jenazah-icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.jenazah-icon::before,
.jenazah-icon::after {
  content: "";
  position: absolute;
  background: #2f6b4f;
  transition: 0.3s;
}

.jenazah-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.jenazah-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.jenazah-faq-item.active .jenazah-icon::after {
  transform: scaleY(0);
}

.jenazah-faq-item.active .jenazah-faq-answer {
  max-height: 200px;
}

/* ================= ANIMATION ================= */

.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .jenazah-section-title {
    font-size: 24px;
  }

  .jenazah-intro-section {
    padding: 40px 20px;
  }

  .jenazah-intro-section p {
    font-size: 15px;
    line-height: 1.6;
  }

  .jenazah-process-section {
    padding: 40px 20px;
  }

  .jenazah-process-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jenazah-process-card:nth-child(n) {
    grid-column: auto;
  }

  .jenazah-process-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .jenazah-process-card h3 {
    font-size: 16px;
  }

  .jenazah-process-card p {
    font-size: 14px;
  }

  .process-number {
    font-size: 20px;
  }

  .jenazah-process-icon {
    width: 55px;
    height: 55px;
  }

  .jenazah-process-icon img {
    width: 26px;
    height: 26px;
  }

  /* ===== DOCUMENTS ===== */

  .jenazah-documents-section {
    padding: 50px 20px;
  }

  .jenazah-doc-card {
    padding: 25px 20px;
  }

  .jenazah-doc-card p {
    font-size: 15px;
  }

  /* ===== FEES ===== */

  .jenazah-fees-section {
    padding: 40px 20px;
  }

  .jenazah-fees-text {
    font-size: 15px;
  }

  /* ===== FORM ===== */

  .jenazah-form-section {
    padding: 40px 20px;
  }

  .jenazah-form-group input {
    font-size: 14px;
  }

  .jenazah-submit-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  /* ===== FAQ ===== */

  .jenazah-faq-section {
    padding: 50px 20px;
  }

  .jenazah-faq-question {
    font-size: 16px;
    padding: 16px 18px;
  }

  .jenazah-faq-answer p {
    font-size: 14px;
  }

  .jenazah-process-card:hover,
  .jenazah-doc-card:hover,
  .jenazah-cta-btn:hover {
    transform: none;
  }
}

.jenazah-error {
  color: #ff1504;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 500;
}

.input-error {
  border-color: #ff1504 !important;
  box-shadow: 0 0 5px rgba(217, 48, 37, 0.3);
}

#khairat-section {
  transition: all 0.3s ease;
}

.khairat-status-box {
  display: none;
  grid-column: 1 / -1;

  padding: 14px 16px;
  border-radius: 20px;

  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;

  margin-top: -20px;
  margin-bottom: 20px;
}
