/* ===============================
   CONTACT US SECTION
================================= */
.contact-us-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-block: var(--section-spacing-desktop);
  padding-inline: var(--page-gutter);
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(16, 16, 18, 0.3), rgba(16, 16, 18, 0.54)),
    url("https://affluentfit.com/golden%20wave%20particle.png") no-repeat center center / cover;
  background-attachment: fixed;
}

.contact-content {
  flex: 1 1 45%;
  max-width: 560px;
  min-width: 0;
}

.contact-content h2 {
  color: #f2d675;
  margin: 0 0 18px 0;
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-content h4 {
  margin: 0 0 24px 0;
  font-size: 1.18rem;
  color: rgba(246, 241, 232, 0.86);
}

.contact-content p {
  margin: 0;
  line-height: 1.72;
  font-size: 1.03rem;
  color: rgba(246, 241, 232, 0.74);
}

.contact-form-container {
  flex: 1 1 55%;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(23, 23, 25, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

/* ===============================
   FORM
================================= */
#contact-us-form {
  width: 100%;
  transition: opacity 0.35s ease;
}

.form-group {
  position: relative;
  margin-bottom: 22px;
}

.form-group input {
  width: 100%;
  padding: 20px 14px 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024)),
    #202023;
  color: #fff8e8;
  font-size: 16px;
  font-weight: 650;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
}

.form-group input:hover {
  border-color: rgba(212, 175, 55, 0.42);
}

.form-group input:focus {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.form-group label {
  position: absolute;
  top: -9px;
  left: 14px;
  background: #202023;
  color: #f2d675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 7px;
  line-height: 1;
  border-radius: 999px;
}

/* ===============================
   TURNSTILE
================================= */
.turnstile-wrap {
  margin: 8px 0 22px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

.turnstile-wrap .cf-turnstile {
  max-width: 100%;
}

/* ===============================
   BUTTON
================================= */
#contact-us-form .primary-cta {
  width: auto;
  min-width: 140px;
}

/* ===============================
   FORM ERRORS / STATUS
================================= */
.input-error {
  border-color: #ff8f8f !important;
}

.error-message {
  color: #ffb4b4;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.4;
}

.success-message,
.sent-message {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
}

.success-message {
  color: #f2d675;
}

.sent-message {
  color: #ffb4b4;
}

.shake {
  animation: shake 0.25s linear;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ===============================
   SUCCESS PANEL
================================= */
.contact-success-panel {
  display: none;
  width: 100%;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.45s ease forwards;
}

.contact-success-panel.show {
  display: flex;
}

.contact-success-inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024)),
    rgba(23, 23, 25, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.16);
}

.contact-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f2d675;
  font-size: 30px;
  font-weight: 800;
}

.contact-success-panel h3 {
  margin: 0 0 14px 0;
  color: #f2d675;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.contact-success-panel p {
  margin: 0 auto 12px auto;
  color: rgba(246, 241, 232, 0.88);
  font-size: 17px;
  line-height: 1.65;
  max-width: 380px;
}

.contact-success-subtext {
  color: rgba(246, 241, 232, 0.68) !important;
  font-size: 15px !important;
  margin-top: 8px !important;
}

/* ===============================
   OPTIONAL ICON
================================= */
#paper-airplane {
  display: none;
}

/* ===============================
   FADE IN
================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 1024px) {
  .contact-us-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: var(--section-spacing-tablet);
  }

  .contact-content,
  .contact-form-container {
    max-width: min(720px, 100%);
    width: 100%;
  }

  .contact-content {
    margin-bottom: 10px;
  }

  .turnstile-wrap {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-us-section {
    padding-block: var(--mobile-section-spacing);
    gap: 24px;
    background-attachment: scroll;
  }

  .contact-content h2 {
    font-size: 2.4rem;
  }

  .contact-content h4 {
    font-size: 1.1rem;
  }

  .contact-form-container {
    border-radius: 18px;
  }

  .form-group input {
    font-size: 16px;
    padding: 18px 12px 12px 12px;
  }

  .contact-success-panel {
    min-height: 280px;
  }

  .contact-success-inner {
    padding: 30px 22px;
  }

  .contact-success-panel h3 {
    font-size: 26px;
  }

  .contact-success-panel p {
    font-size: 16px;
  }

  .contact-success-subtext {
    font-size: 14px !important;
  }
}
