/* hero */
.hero-carousel {
  position: relative;
  height: 800px;
  min-height: 20vh;
  overflow: hidden;
  background-color: #000; /* fallback background */
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

.oval-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot-indicator {
  width: 28px;
  height: 10px;
  border-radius: 35px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot-indicator.active {
  background-color: #fff;
}

/* payment section */

/* Section styling */
.payment-section {
  background-color: #e9ecef;
  padding: 60px 20px;
}

.payment-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-container {
  max-width: 100%;
  margin: 0 auto;
}

.payment-container h1 {
  font-size: 2rem;
  color: #1b2c57;
  margin-bottom: 0.5rem;
}

.payment-container p {
  color: #333;
  margin-bottom: 1.5rem;
}

.payment-guides-wrapper {
  margin: 0 160px;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.payment-guide-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.payment-guide-head p {
  font-family: var(--font-henry);
  font-size: 20px;
  color: var(--color-primary-blue);
}

.btn-payment {
  display: flex;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  height: 47px;
  width: 240px;
  padding: 0 20px;
  color: #fff;
  background-color: #1f3b73;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-payment:hover {
  background-color: #d8bfaa;
  color: #1f3b73;
}

.button-guide-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Modal Button */
.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* prevents touching top on small screens */
  z-index: 9999;
}

.payment-modal.hidden {
  display: none;
}

.payment-modal.active {
  display: flex;
}

.modal-content-payment {
  background: #fff;
  padding: 30px;
  max-width: 700px;
  width: 90%; /* responsive */
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-content-payment {
  background: #fff;
  padding: 30px;
  width: 700px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
  font-size: 40px;
}

.close-modal:hover {
  color: #1f3b73;
}

/* Modal backdrop and layout */
.payment-form-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #001845b4;
  justify-content: center;
  align-items: center;
}

.payment-form-modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  height: 500px;
  position: relative;
  overflow: auto;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

/* Tab content */
.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  background: #1f3b73;
  color: #fff;
  padding: 10px 20px;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn.active {
  background: #d8bfaa;
  color: #1f3b73;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Prevent scroll when modal is active */
body.no-scroll {
  overflow: hidden;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.resrevation-form,
.amortization-form {
  height: 700px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  overflow-y: auto;
  padding: 0 2rem;
}

.flex-cont {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.file-upload {
  border: 2px dashed #ccc;
  padding: 1rem;
  text-align: center;
  background-color: #faf9f6;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.file-upload p {
  margin: 0.5rem 0;
}

.center {
  align-items: center;
  justify-content: center;
}

/* partner logo */
.partner-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  margin: 0 160px;
  gap: 40px;
}

.logo-pyramid {
  display: flex;
  flex-direction: column;
  gap: 40px; /* spacing between rows */
}

.logo-row {
  display: flex;
  justify-content: center; /* center each row */
  gap: 40px; /* spacing between logos */
  flex-wrap: wrap; /* allows wrapping if screen too small */
}

.logo-item picture,
.logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Tablet (landscape and portrait) */
@media (max-width: 1024px) {
  .hero-carousel {
    height: 500px;
  }

  .payment-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .resrevation-form,
  .amortization-form {
    height: auto;
    padding: 1rem;
  }

  .modal-content {
    max-width: 90%;
    padding: 1.5rem;
  }

  .flex-cont {
    flex-direction: column;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .partner-logo-wrapper {
    margin: 0 20px;
  }

  .hero-carousel {
    height: 400px;
  }

  .carousel-wrapper img {
    object-position: center;
  }

  .modal-content {
    height: 500px;
    overflow-x: auto;
  }

  .btn {
    height: 50px;
    font-size: 15px;
  }

  .header-logo,
  .header-logo h5 {
    width: 100%;
  }

  .payment-container h1 {
    font-size: 1.5rem;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .partner-logo-wrapper {
    margin: 0 20px;
  }

  .hero-carousel {
    height: 152px;
  }

  .carousel-wrapper img {
    object-position: center;
  }

  .oval-pagination {
    bottom: 15px;
    gap: 6px;
  }

  .dot-indicator {
    width: 20px;
    height: 8px;
  }

  .payment-container h1 {
    font-size: 1.25rem;
    text-align: center;
  }

  .payment-container p {
    font-size: 0.9rem;
    text-align: center;
  }

  .payment-buttons {
    flex-direction: column;
  }

  .button-guide-group {
    flex-direction: column;
    gap: 20px;
  }

  .btn {
    width: 100%;
    font-size: 14px;
    height: 48px;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab {
    width: 100%;
    text-align: center;
  }

  .resrevation-form,
  .amortization-form {
    padding: 1rem;
    gap: 0.75rem;
  }

  .modal-content {
    padding: 1rem;
    max-width: 95%;
    height: 500px !important;
  }

  .flex-cont {
    flex-direction: column;
    gap: 0.5rem;
  }

  .amort-btn,
  .reserv-btn {
    width: 100%;
    max-width: 140px;
    height: 42px;
  }
}
