/* =========================================
   Forms Page
   File: assets/css/forms-page.css
   Page-only styles for forms.html
   ========================================= */

/* این فایل باید بعد از style.css لود شود:
   <link rel="stylesheet" href="assets/css/style.css">
   <link rel="stylesheet" href="assets/css/forms-page.css">
*/

.forms-page {
  overflow: hidden;
}

/* Hero */
.forms-page .forms-hero {
  position: relative;
  padding: clamp(76px, 8vw, 122px) 0 clamp(70px, 7vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(116, 178, 205, .22), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(91, 151, 190, .18), transparent 36%),
    linear-gradient(135deg, #061827 0%, #0b2740 52%, #123d5f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.forms-page .forms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .65;
  pointer-events: none;
}

.forms-page .forms-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -260px;
  border-radius: 50%;
  background: rgba(143, 215, 231, .10);
  pointer-events: none;
}

.forms-page .forms-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  direction: rtl;
}

.forms-page .forms-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  margin: 0 auto 26px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
  font-size: 14px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.forms-page .forms-kicker::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ed8e8;
  box-shadow: 0 0 0 6px rgba(142, 216, 232, .18);
}

.forms-page .forms-hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  color: #ffffff;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.28;
  font-weight: 950;
  letter-spacing: -1.1px;
  text-align: center;
}

.forms-page .forms-hero p {
  max-width: 740px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 2.15;
  font-weight: 700;
  text-align: center;
}

.forms-page .forms-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.forms-page .forms-hero-actions .btn {
  min-height: 58px;
  padding-inline: 28px;
  border-radius: 999px;
  font-weight: 950;
}

.forms-page .forms-hero-actions .btn-primary {
  background: #ffffff;
  color: #0b2740;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .20);
}

.forms-page .forms-hero-actions .btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
}

.forms-page .forms-hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin: 26px auto 0;
}

.forms-page .forms-hero-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 900;
}

/* Main section */
.forms-page .forms-consult-section {
  padding: clamp(64px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 215, 231, .16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.forms-page .forms-consult-grid {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

/* Info card */
.forms-page .forms-consult-info {
  order: 2;
  padding: clamp(28px, 3.6vw, 46px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 215, 231, .20), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,250,252,.94));
  border: 1px solid rgba(151, 200, 220, .36);
  box-shadow: 0 26px 80px rgba(7, 24, 39, .08);
}

.forms-page .forms-consult-info .eyebrow {
  margin-bottom: 20px;
}

.forms-page .forms-consult-info h2 {
  margin: 0 0 18px;
  color: #0e2034;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.45;
  font-weight: 950;
  letter-spacing: -1px;
}

.forms-page .forms-consult-info p {
  margin: 0 0 26px;
  color: #5d748a;
  font-size: 16px;
  line-height: 2.15;
}

.forms-page .forms-info-cards {
  display: grid;
  gap: 14px;
}

.forms-page .forms-info-cards article {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(151, 200, 220, .34);
}

.forms-page .forms-info-cards strong {
  display: block;
  margin-bottom: 8px;
  color: #0e2034;
  font-size: 16px;
  font-weight: 950;
}

.forms-page .forms-info-cards span {
  display: block;
  color: #607589;
  font-size: 13px;
  line-height: 2;
}

.forms-page .forms-direct-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #eefaff;
  border: 1px solid rgba(142, 216, 232, .55);
}

.forms-page .forms-direct-call span {
  color: #12385b;
  font-weight: 950;
}

.forms-page .forms-direct-call a {
  color: #0d3152;
  text-decoration: none;
  font-weight: 950;
  direction: ltr;
}

/* Form card */
.forms-page .forms-main-form {
  order: 1;
  width: 100%;
  max-width: 520px;
  align-self: stretch;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(151, 200, 220, .34);
  box-shadow: 0 28px 80px rgba(7, 24, 39, .10);
}

.forms-page .forms-main-form .form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.forms-page .forms-main-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  color: #102236;
  font-size: 14px;
  font-weight: 900;
}

.forms-page .forms-main-form input,
.forms-page .forms-main-form select,
.forms-page .forms-main-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(151, 190, 211, .45);
  background: #fbfdfe;
  color: #102236;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.forms-page .forms-main-form textarea {
  min-height: 116px;
  padding-top: 14px;
  line-height: 1.9;
  resize: vertical;
}

.forms-page .forms-main-form input:focus,
.forms-page .forms-main-form select:focus,
.forms-page .forms-main-form textarea:focus {
  border-color: rgba(72, 164, 194, .72);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(142, 216, 232, .18);
}

.forms-page .forms-main-form .form-submit {
  width: 100%;
  justify-content: center;
  min-height: 56px;
  margin-top: 6px;
  border-radius: 18px;
}

.forms-page .forms-main-form .form-note {
  margin: 14px 0 0;
  color: #7890a3;
  font-size: 12.5px;
  line-height: 2;
  text-align: center;
}

.forms-page .forms-careers-section {
  background:
    radial-gradient(circle at 86% 10%, rgba(143, 215, 231, .14), transparent 34%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
  border-top: 1px solid rgba(151, 200, 220, .22);
}

.forms-page .forms-careers-form {
  max-width: 640px;
}

.forms-page .forms-careers-form .form-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.forms-page .forms-careers-form .form-field-full {
  grid-column: 1 / -1;
}

/* Keep honeypot hidden even if base styles fail */
.forms-page .hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .forms-page .forms-consult-grid {
    grid-template-columns: 1fr;
  }

  .forms-page .forms-consult-info,
  .forms-page .forms-main-form {
    order: initial;
    max-width: 760px;
    margin-inline: auto;
  }

  .forms-page .forms-consult-info {
    text-align: center;
  }

  .forms-page .forms-consult-info .eyebrow,
  .forms-page .forms-consult-info h2,
  .forms-page .forms-consult-info p {
    margin-inline: auto;
  }

  .forms-page .forms-direct-call {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .forms-page .forms-hero {
    padding: 58px 0 68px;
  }

  .forms-page .forms-hero h1 {
    font-size: 34px;
    line-height: 1.45;
    letter-spacing: -0.6px;
  }

  .forms-page .forms-hero p {
    font-size: 15px;
    line-height: 2;
  }

  .forms-page .forms-hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .forms-page .forms-consult-info,
  .forms-page .forms-main-form {
    border-radius: 28px;
    padding: 24px;
  }

  .forms-page .forms-consult-info h2 {
    font-size: 31px;
  }

  .forms-page .forms-main-form label {
    text-align: center;
  }

  .forms-page .forms-main-form input,
  .forms-page .forms-main-form select {
    text-align: center;
  }

  .forms-page .forms-main-form textarea {
    text-align: right;
  }

  .forms-page .forms-careers-form .form-fields {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   Forms Hero Title One Line Fix
   یک‌خطی کردن تیتر صفحه فرم‌ها
   ========================================= */

@media (min-width: 1001px) {
  .forms-page .forms-hero h1,
  .forms-page #forms-title {
    white-space: nowrap !important;
    font-size: clamp(38px, 3.8vw, 56px) !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
    letter-spacing: -1px !important;
  }
}

@media (max-width: 1000px) {
  .forms-page .forms-hero h1,
  .forms-page #forms-title {
    white-space: normal !important;
    font-size: 36px !important;
    line-height: 1.45 !important;
  }
}
/* Remove grid pattern from forms page hero */
.forms-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 100%, rgba(143, 215, 231, 0.10), transparent 32%),
    linear-gradient(135deg, var(--navy), var(--brand)) !important;
}

.forms-page .page-hero::before,
.forms-page .page-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}
/* Full clean-up for forms hero mesh */
.forms-hero,
.forms-hero .forms-hero-inner {
  background-image: none !important;
}

.forms-hero {
  background: #061626 !important;
}

.forms-hero::before,
.forms-hero::after,
.forms-hero .forms-hero-inner::before,
.forms-hero .forms-hero-inner::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}
/* =========================================================
   Forms Page Mobile White Screen Fix
   جلوگیری از سفید شدن صفحه فرم‌ها هنگام اسکرول در موبایل
   فقط موبایل / فقط forms.html
   ========================================================= */

@media (max-width: 720px){

  .forms-page{
    overflow: visible !important;
    background: #ffffff !important;
  }

  .forms-page .forms-consult-section,
  .forms-page .forms-careers-section{
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .forms-page .forms-consult-grid{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .forms-page .forms-consult-info,
  .forms-page .forms-main-form,
  .forms-page .forms-careers-form,
  .forms-page [data-animate]{
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.has-reveal .forms-page [data-animate]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .forms-page .lead-form,
  .forms-page .compact-consult-form{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .forms-page .form-fields{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .forms-page .form-field,
  .forms-page .form-field-full{
    width: 100% !important;
    display: grid !important;
    gap: 8px !important;
  }
}