/* =========================================
   CONTACT PAGE STYLING
   ========================================= */

.navbar {
  background: white;
}

.bg-light-pink-gradient {
  padding-top: 160px;
  background: none;
}

.deco-lines-img {
  position: absolute;
  top: -25%;
  left: 0%;
  opacity: 1;
}

/* --- MAIN LAYOUT --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 50px;
  align-items: flex-end;
  max-width: 1230px;
  margin: 0 auto;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.info-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background-color: #fff;
  border-radius: 20px;

  padding: 140px 50px 40px;
  gap: 34px;
}

.illustration-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 2;
}

.contact-img {
  max-width: 100%;
  height: auto;
  width: 340px;
}

.contact-checklist {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.contact-checklist li {
  display: flex;
  align-items: center;
  gap: 34px;
  text-align: left;
  font-size: 20px;
  font-weight: 400;
  color: var(--neutral-900);
}

.check-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.check-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- RIGHT SIDE: FORM --- */
.contact-form-side {
  display: flex;
  flex-direction: column;
}

.form-title {
  margin-bottom: 30px;
}

/* The Red Form Container */
.form-box {
  background-color: var(--primary-500); /* #fa1239 */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(250, 18, 57, 0.2);
}

form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Form Grid for Name & Phone/Email rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Input Styling */
input,
textarea {
  width: 100%;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #6b7684;
}

textarea {
  resize: vertical;
  border: 1px solid transparent;
  min-height: 270px;
}

input:focus,
textarea:focus {
  background-color: #fff5f7;
  border: 1px solid #b20d28;
}

/* Button Styling (Black Filled) */
.btn-black-filled {
  background-color: #1b0506;
  color: white;
  border: 1px solid transparent;
  padding: 14px 22px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  width: max-content;
  margin-bottom: 10px;
}

.btn-black-filled:hover {
  background: white;
  color: var(--primary-500);
  border: 1px solid rgba(250, 18, 57);
  box-shadow: 0 0 12px 0 rgba(250, 18, 57, 0.58);
}

.form-group {
  position: relative;
}

.floating-label {
  position: absolute;
  left: 23px;
  top: -6px; /* Aligned with input text initially */
  color: #878787;
  font-size: 14px;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none; /* Allows clicking "through" the label to the input */
  background-color: transparent;
}

/* ONLY SHOW WHEN TYPING:
   Triggered only when the placeholder is NOT shown
*/
.form-input:not(:placeholder-shown) ~ .floating-label {
  visibility: visible;
}

.form-input:not(:placeholder-shown) {
  padding: 19px 22px 5px;
}

/* Base Tooltip Styling */
.error-tooltip {
  display: none; /* Hidden by default, toggled via .active class */
  position: absolute;
  top: 54px;
  left: 15px;
  margin-top: 0px; /* Aligns arrow precisely with the input border */
  z-index: 3;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.15));
}

.error-tooltip.active {
  display: block;
}

/* Tooltip Body */
.tooltip-content {
  background-color: #fffd8b; /* Soft yellow background */
  border: 1px solid #e89c45; /* Yellow/Orange border */
  border-radius: 2px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

/* The Orange Warning Icon */
.error-icon {
  width: 23px;
  height: 23px;
  background-color: #e79333; /* Deep orange */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 16px;
}

/* Base Arrow (The Border) */
.tooltip-arrow {
  width: 0;
  height: 0;
  position: absolute;
  left: 19.5px;
  top: -17px; /* Positioned to overlap the content border */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #e89c45; /* Matches content border color */
  z-index: 6;
}

/* Inner Arrow (The Mask) */
/* This hides the 1px border of the tooltip-content */
.tooltip-arrow::after {
  content: "";
  position: absolute;
  left: -8.5px; /* Slightly smaller than parent to center */
  top: 2px; /* Pushes it down to cover the content border */
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 17px solid rgba(255, 253, 139, 1); /* Matches content background color */
  z-index: 7; /* Placed above everything to hide the border line */
}

@media (max-width: 1200px) {
  .bg-light-pink-gradient {
    padding-top: 200px;
  }
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
  .bg-light-pink-gradient {
    padding-top: 240px;
    padding-bottom: 50px;
  }

  .deco-lines-img {
    top: 0%;
  }
  .contact-layout {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 36px;
    max-width: 650px;
    margin: 0 auto;
  }

  .info-content {
    gap: 24px;
    padding-inline: 20px;
  }

  .contact-img {
    width: 290px;
  }

  .contact-checklist {
    gap: 24px;
  }

  .form-title {
    text-align: center;
    margin-bottom: 36px;
  }
}

/* Mobile (Max 768px) */
@media (max-width: 767px) {
  .bg-light-pink-gradient {
    padding-top: 180px;
  }

  .deco-lines-img {
    opacity: 0.5;
    display: block;
    top: -25%;
    height: 250%;
  }
  .contact-img {
    width: 210px;
  }

  .contact-checklist {
    gap: 34px;
  }

  .info-content {
    gap: 34px;
    padding-top: 120px;
    padding-bottom: 20px;
  }

  /* Stack form inputs vertically on mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .btn-black-filled {
    max-width: 100%;
    width: 100%;
  }

  /* Base Arrow (The Border) */
  .tooltip-arrow {
    left: 19px;
  }
}
