/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, rgba(244, 210, 142, 0.5876), #fff 70%);
  padding: 20px 20px 50px;
  gap: 30px; /* Clean spacing between content and breadcrumb */
}

.gem-clipper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Clips the gems but not the breadcrumb */
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 980px;
  width: 70%;
  text-align: center;

  /* Flex layout for internals */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.content-wrapper h1 {
  margin: 0;
  color: #000;
}

.content-wrapper h1 span {
  color: #cd7f32;
}

.content-wrapper p {
  /* main.css Desktop P */
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.content-wrapper p strong {
  font-weight: bold;
}

/* Decorative Gems */
.gem-container {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.gem-container img {
  max-width: 245px;
  display: block;
  aspect-ratio: 245/276; /* Approximate aspect ratio */
}

.gem-container.left-gems {
  left: 0;
}

.gem-container.right-gems {
  right: 0;
}

.breadcrumb {
  position: absolute;
  bottom: -24px;
}

/* --- CONSULTATION SECTION --- */
.consultation-section {
  background: linear-gradient(to left, rgba(244, 210, 142, 0.3), #fff 70%);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 1350px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 60px; /* Clean gap between text and image columns */
}

.text-content {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-icon {
  width: fit-content;
}

.top-icon img {
  max-width: 60px;
  width: 100%;
  aspect-ratio: 1/1;
}

.text-content h2 {
  color: #000;
  margin: 0;
}

.text-content h2 span {
  color: #d28500;
}

.description {
  color: black;
  line-height: 1.6;
  max-width: 90%;
  margin: 0;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spacing between list items */
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.trust-list li span {
  color: black;
}

.icon-box {
  background-color: black;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.icon-box img {
  width: 60%;
  height: auto;
  aspect-ratio: 1/1;
}

/* Image Side */
.image-content {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-top: 7%; /* Visual alignment */
}

.image-content .consultation-img {
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: 13px;
  object-fit: cover;
  z-index: 2;
  aspect-ratio: 1/1; /* Added */
}

/* --- HOW IT WORKS --- */
.hiw-section {
  padding: 80px 20px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 229, 179, 0.4853), #fff 30%);
}

.hiw-container {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.hiw-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hiw-header h2 {
  margin: 0;
  text-align: center;
}

.hiw-h-img img {
  width: 60px;
  height: auto;
  aspect-ratio: 1/1;
}

.hiw-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.gem-cluster-wrapper {
  flex: 1;
  width: 100%;
  max-width: 578px;
}

.gem-cluster-wrapper img {
  width: 100%;
  aspect-ratio: 578 / 571;
  object-fit: contain;
}

.steps-wrapper {
  width: 100%;
  flex: 1;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step-card {
  background: #fff;
  padding: 20px 25px;
  border-radius: 5px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 0 14.4px 0 rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-5px); /* Lifts up */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Shadow gets deeper */
}

.step-card .icon-box {
  background-color: black;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.step-card .icon-box img {
  width: 30px;
  aspect-ratio: 1/1;
}

.text-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-box h3 {
  margin: 0;
  font-size: 22px; /* main.css h3 style */
}

.text-box p {
  margin: 0;

  line-height: 1.5;
}

/* --- FREE CONSULTATION FORM --- */
.fec-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(
    to right,
    rgba(255, 233, 189, 0.6),
    #ffffff60,
    rgba(249, 215, 148, 0.6)
  );
}

.fec-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fec-section .header-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fec-section .header-section h2 {
  margin: 0;
}

.subtitle {
  margin: 0;
}

/* Form Grid */
form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.row-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.row-3-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

/* Input Styling */
.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
}

label {
  font-weight: bold;
  color: #d0751c;
}

input,
select,
textarea {
  padding: 12px 15px;
  border: 1.2px solid black;
  border-radius: 6px;
  background-color: transparent;
  font-size: 20px;
  color: black;
  width: 100%;
  transition: border-color 0.3s;
}

/* Add to bottom of consultation.css */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(208, 130, 54, 0.3);
  border-color: #d08236;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Birth Details Header */
.fec-section .section-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}

.section-header img {
  width: 30px;
  height: auto;
  aspect-ratio: 1/1;
}

.section-header h3 {
  font-size: 28px;
  margin: 0;
}

/* Input Wrappers */
.input-wrapper {
  position: relative;
}

.input-wrapper input {
  padding-right: 40px;
  height: 51px;
}

/* Chrome, Edge, Safari */
.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator,
.input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  top: 30%;
  width: 20px;
  opacity: 0; /* Keeps it invisible */
  cursor: pointer;
  pointer-events: all; /* CRITICAL: Must be 'all' so clicks work */
  z-index: 2; /* Sits on top of your custom icon */
}

/* Remove extra padding added by browser */
.input-wrapper input[type="date"],
.input-wrapper input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
}

/* --- CUSTOM DROPDOWN ARROW --- */

/* 1. Wrapper: Needed to position the arrow */
.select-wrapper {
  position: relative;
  width: 100%;
}

/* 2. The Select Field: Remove default browser arrow */
.form-select {
  /* CRITICAL: Hides the default ugly arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 3. The Custom Arrow (Using CSS to draw a 'V') */
.select-wrapper::after {
  content: "";
  position: absolute;
  right: 20px; /* Distance from right */
  top: 45%; /* Center vertically */

  /* Size of the arrow */
  width: 8px;
  height: 8px;

  /* Draw the arrow lines */
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;

  /* Rotate it 45 degrees to make it point down */
  transform: translateY(-50%) rotate(45deg);

  /* Important: Allows clicks to pass through the arrow to the dropdown */
  pointer-events: none;
}

/* Style the select itself when the disabled option is selected */
select:invalid,
select:has(option[value=""]:checked) {
  color: rgba(0, 0, 0, 0.37); /* Lighter color for the "placeholder" */
}

/* Style the actual options inside so they stay black */
select option {
  color: black;
  background-color: white;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  aspect-ratio: 1/1;
}

/* Button */
.btn-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

form button {
  background-color: #d08236;
  color: white;
  border: none;
  height: 66px;
  padding: 15px 30px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 345px;
}

form button:hover {
  background-color: black;
}

form button img {
  width: 32px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(0, 0, 0, 0.74);
}

.secure-icon {
  width: 14px;
  height: 14px;
  aspect-ratio: 1/1;
}

/* --- TRUST SECTION --- */
.trust-section {
  max-width: 1380px;
  padding: 50px 20px;
  margin: auto;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 10rem; /* Space between title and grid */
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12rem 7%; /* Vertical gap large for floating icons, Horizontal gap */
}

.trust-card {
  background-color: black;
  max-width: 371px;
  height: 290px;
  border-radius: 12px;
  padding: 3rem 2rem 1.5rem 2rem;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.icon-wrapper {
  width: 180px;
  height: 180px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: -90px; /* pull up half height */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -3px 20px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-card:hover {
  transform: translateY(-5px); /* Keep centered (-50%) and grow */
}

/* On hover, scale the icon up */
.trust-card:hover .icon-wrapper {
  transform: translateX(-50%) scale(1.03); /* Keep centered (-50%) and grow */
}

.icon-wrapper img {
  width: 60%;
  height: auto;
  aspect-ratio: 1/1;
}

.trust-card .card-title {
  color: #ffb872;
  font-size: 22px;
  margin-top: 60px; /* Push down to clear icon */
  font-weight: bold;
}

.trust-card .card-text {
  color: white;

  line-height: 1.5;
  margin: 0;
}

/* ================= MEDIA QUERY: TABLET (max-width: 1024px) ================= */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 0;
  }

  .content-wrapper {
    width: 100%;
    gap: 10px;
  }

  .content-wrapper p {
    width: 80%;
  }

  .gem-container {
    top: 50%;
  }

  .gem-container img {
    max-width: 180px;
  }

  .gem-container.left-gems {
    left: -7%;
  }

  .gem-container.right-gems {
    right: -7%;
  }

  /* Consultation Section */
  .container {
    gap: 20px;
  }

  .consultation-section {
    padding: 40px 20px;
  }

  .text-content h2 {
    font-size: 32px;
  }

  .trust-list {
    text-align: left;
    gap: 12px;
  }

  .image-content {
    justify-content: center;
    margin-top: 15%;
  }

  .image-content .consultation-img {
    max-width: 250px;
  }

  .hiw-section {
    padding: 40px 20px;
  }

  .hiw-container {
    gap: 30px;
  }

  /* How It Works */
  .hiw-header h2 {
    font-size: 32px;
  }

  .hiw-h-img img {
    width: 52px;
  }

  .hiw-content {
    flex-direction: column;
    gap: 30px;
  }

  .step-card {
    border-radius: 0;
  }

  .gem-cluster-wrapper {
    max-width: 400px;
  }

  /* Form Section */
  .fec-section .header-section h2 {
    font-size: 32px;
  }

  .fec-section {
    padding: 50px 20px;
  }

  .row-2-cols {
    gap: 35px;
  }

  textarea {
    margin-top: 20px;
  }

  .section-header h3 {
    font-size: 24px;
  }

  .trust-card {
    width: 333px;
  }

  .icon-wrapper {
    width: 140px;
    height: 140px;
    top: -70px;
  }

  .trust-card .card-title {
    margin-top: 50px;
  }

  .trust-section {
    gap: 8rem;
  }

  .trust-card {
    padding: 3rem 1rem 1.5rem 1rem;
  }

  .features-grid {
    gap: 6rem 3%;
  }
}

/* ================= MEDIA QUERY: MOBILE (max-width: 767px) ================= */
@media (max-width: 767px) {
  .breadcrumb {
    bottom: -6%;
  }

  /* Hero */
  .hero-section {
    padding: 10px 20px 15%;
    min-height: auto;
  }

  .gem-container {
    display: none; /* Hide floating gems on mobile to save space */
  }

  .content-wrapper p {
    padding: 0;
    width: 95%;
  }

  /* Consultation */
  .consultation-section {
    padding: 50px 20px;
  }

  .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .text-content {
    text-align: center;
    gap: 18px;
  }

  .text-content h2 {
    font-size: 30px;
    line-height: 1.3;
  }

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

  .image-content .consultation-img {
    width: 100%;
    max-width: 100%;
  }

  .image-content {
    margin-top: 5%;
  }

  /* How It Works */
  .hiw-header {
    flex-direction: column;
    gap: 10px;
  }

  .hiw-header h2 {
    font-size: 30px;
  }

  .hiw-h-img {
    display: none;
  }

  .steps-wrapper {
    padding: 0;
  }

  .text-box h3 {
    font-size: 22px;
  }

  /* Form */
  .fec-section {
    padding: 30px 20px;
  }

  .fec-section .header-section {
    gap: 8px;
  }

  .fec-section .header-section h2 {
    font-size: 30px;
  }

  form {
    gap: 15px;
  }

  .row-2-cols,
  .row-3-cols {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  form button {
    font-size: 20px;
  }

  /* Trust */
  .trust-section {
    padding: 40px 20px;
    gap: 5rem;
  }

  .section-title {
    margin-bottom: 1rem;
  }

  .features-grid {
    gap: 6rem; /* large vertical gap for icons */
  }

  .trust-card {
    width: 100%;
    width: 327px;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }

  .icon-wrapper {
    width: 130px;
    height: 130px;
    top: -65px;
  }
}
