/* =========================================================
   File: contact-formgent.css
   Scoped styling for FormGent contact form wrapper
   ========================================================= */

.fg-contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 18px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.10), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.fg-contact-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.fg-contact-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

.fg-contact-header {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.fg-contact-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fg-contact-header h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fg-contact-header p {
  margin: 0;
  color: #475569;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.fg-contact-form-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 16px 35px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Decorative shapes */
.fg-contact-decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.fg-contact-decor--one {
  top: -80px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 72%);
}

.fg-contact-decor--two {
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 72%);
}

/* Generic field spacing safety */
.fg-contact-form-wrap *,
.fg-contact-form-wrap *::before,
.fg-contact-form-wrap *::after {
  box-sizing: border-box;
}

/* Better mobile breathing room for most form plugins */
.fg-contact-form-wrap input,
.fg-contact-form-wrap select,
.fg-contact-form-wrap textarea,
.fg-contact-form-wrap button {
  max-width: 100%;
  min-width: 0;
}

/* Optional refinement for common form layouts */
.fg-contact-form-wrap input,
.fg-contact-form-wrap select,
.fg-contact-form-wrap textarea {
  border-radius: 12px;
}

/* Tablet */
@media (max-width: 991px) {
  .fg-contact-section {
    padding: 36px 16px;
  }

  .fg-contact-card {
    border-radius: 20px;
  }

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

/* Mobile */
@media (max-width: 640px) {
  .fg-contact-section {
    padding: 28px 14px;
  }

  .fg-contact-card {
    padding: 18px;
    border-radius: 18px;
  }

  .fg-contact-header {
    margin-bottom: 18px;
  }

  .fg-contact-header h2 {
    font-size: 28px;
  }

  .fg-contact-header p {
    font-size: 15px;
    line-height: 1.65;
  }

  .fg-contact-form-wrap {
    padding: 14px;
    border-radius: 16px;
  }

  .fg-contact-decor--one {
    top: -70px;
    left: -90px;
    width: 180px;
    height: 180px;
  }

  .fg-contact-decor--two {
    right: -90px;
    bottom: -90px;
    width: 200px;
    height: 200px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fg-contact-section,
  .fg-contact-card,
  .fg-contact-form-wrap,
  .fg-contact-decor {
    animation: none !important;
    transition: none !important;
  }
}