/* =========================================
   CONTACTX PAGE — NON-CRITICAL CSS
   below the fold + form + faq + modal
   ========================================= */

.contactx-page .cx-section-tight {
  padding-top: 28px;
}

.contactx-page .cx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contactx-page .cx-trust-card {
  border-radius: 22px;
  padding: 22px 20px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(37,50,77,0.06);
  box-shadow: 0 12px 28px rgba(28,49,97,0.05);
  text-align: center;
}

.contactx-page .cx-trust-value {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1;
  color: #213252;
  font-weight: 900;
}

.contactx-page .cx-trust-label {
  font-size: 15px;
  line-height: 1.45;
  color: #5a6985;
  font-weight: 700;
}

.contactx-page .cx-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contactx-page .cx-info-card {
  border-radius: 24px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(37,50,77,0.06);
  box-shadow: 0 14px 30px rgba(26,52,108,0.05);
  text-align: center;
}

.contactx-page .cx-info-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf4ff 0%, #eaf7ff 100%);
  color: #247bff;
  font-size: 28px;
  font-weight: 900;
}

.contactx-page .cx-info-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #273555;
  font-weight: 800;
}

.contactx-page .cx-info-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #5a6985;
}

.contactx-page .cx-form-wrap {
  position: relative;
  overflow: visible;
  border-radius: 34px;
  padding: 42px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42,127,255,0.09) 0%, rgba(42,127,255,0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,50,77,0.08);
  box-shadow: 0 28px 64px rgba(26,52,108,0.08);
}

.contactx-page .cx-center {
  text-align: center;
}

.contactx-page .cx-h2 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.05;
  color: #24304f;
  font-weight: 700;
}

.contactx-page .cx-sub {
  max-width: 860px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
  color: #5c6b87;
}

.contactx-page .cx-form-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.contactx-page .cx-form-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f7fe;
  color: #455978;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(37,50,77,0.05);
}

.contactx-page .cx-form-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* =========================================
   FORM ONLY
   ========================================= */

.contactx-page .contactx-form {
  position: relative;
  z-index: 2;
}

.contactx-page .contactx-form .inner-wrapper {
  max-width: 100%;
  margin: 0;
  position: static;
}

.contactx-page .contactx-form .inner-wrapper:after,
.contactx-page .contactx-form .success-tile,
.contactx-page .contactx-form .form-success-msg {
  display: none !important;
  content: none !important;
}

.contactx-page .contactx-form.success .inner-wrapper:after,
.contactx-page .contactx-form.success .success-tile,
.contactx-page .contactx-form.success .form-success-msg {
  display: none !important;
}

.contactx-page .contactx-form .form-group {
  margin-left: -10px;
  margin-right: -10px;
  margin-bottom: 0;
}

.contactx-page .contactx-form .form-input-wrapper {
  position: relative;
  padding: 10px 10px 0;
}

.contactx-page .contactx-form .form-footer {
  margin-top: 20px;
  text-align: center;
}

.contactx-page .contactx-form .form-control {
  display: block;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 20px 16px 8px;
  border: 2px solid #c8d4e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.3;
  color: #25324d;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contactx-page .contactx-form textarea.form-control {
  height: 150px;
  min-height: 150px;
  padding-top: 22px;
  resize: vertical;
}

.contactx-page .contactx-form .form-control.has-value {
  border-color: #c8d4e6;
  box-shadow: none;
}

.contactx-page .contactx-form .form-control:hover,
.contactx-page .contactx-form .form-control:focus {
  border-color: #1f7cff;
  box-shadow: 0 0 0 3px rgba(31,124,255,0.10);
}

.contactx-page .contactx-form .form-control ~ label {
  position: absolute;
  top: 29px;
  left: 24px;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  color: #61728f;
  font-weight: 500;
  background: transparent;
  z-index: 3;
  transition: all .18s ease;
  pointer-events: none;
}

.contactx-page .contactx-form textarea.form-control ~ label {
  top: 24px;
}

.contactx-page .contactx-form .form-control.has-value ~ label,
.contactx-page .contactx-form .form-control:focus ~ label {
  top: 4px;
  left: 18px;
  padding: 0 8px;
  background: #fff;
  color: #1f7cff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.contactx-page .contactx-form .form-input-wrapper.has-error .form-control {
  border-color: #0085ff;
  box-shadow: 0 0 0 3px rgba(0,133,255,0.10);
}

.contactx-page .contactx-form .form-input-wrapper.has-error .form-control ~ label {
  top: 4px;
  left: 18px;
  padding: 0 8px;
  background: #fff;
  color: #0085ff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.contactx-page .contactx-form .label-text {
  display: inline-block;
}

.contactx-page .contactx-form .error-message {
  display: none;
}

.contactx-page .contactx-form .form-input-wrapper.has-error .label-text {
  display: none;
}

.contactx-page .contactx-form .form-input-wrapper.has-error .error-message {
  display: inline-block;
}

.contactx-page .contactx-form .req {
  color: #1f7cff;
}

.contactx-page .contactx-form #contactx-submit {
  min-width: 220px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1483ff 0%, #0d6dff 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800 !important;
  letter-spacing: .06em;
  box-shadow: 0 16px 36px rgba(17,110,255,0.22);
}

.contactx-page .contactx-form #contactx-submit:hover,
.contactx-page .contactx-form #contactx-submit:focus {
  background: linear-gradient(135deg, #1179ec 0%, #0a63ea 100%);
}

.contactx-page .contactx-form .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.28);
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 50%;
  animation: contactx-spin .8s linear infinite;
}

@keyframes contactx-spin {
  to { transform: rotate(360deg); }
}

/* =========================================
   MODAL
   ========================================= */

.contact-success-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.contact-success-modal.active {
  display: block !important;
}

.contact-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 28, 49, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-success-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 520px;
  padding: 40px 32px 32px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(17, 36, 79, 0.22);
  text-align: center;
}

.contact-success-img {
  display: block;
  width: 108px;
  height: auto;
  margin: 0 auto 20px;
}

.contact-success-title {
  display: block;
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  color: #24304f;
}

.contact-success-repeat {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  border-radius: 14px;
}

body.contact-modal-open {
  overflow: hidden;
}

/* =========================================
   FAQ
   ========================================= */

#faq.faq-section {
  background: transparent;
  padding-top: 72px;
  padding-bottom: 72px;
}

.contactx-page .cx-faq-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.contactx-page .cx-faq-item {
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(37,50,77,0.06);
  box-shadow: 0 10px 24px rgba(26,52,108,0.05);
  overflow: hidden;
  margin-bottom: 14px;
  transition: all .25s ease;
}

.contactx-page .cx-faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 22px 24px;
  text-align: left;
  color: #283654;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .25s ease;
}

.contactx-page .cx-faq-answer {
  padding: 0 24px 22px;
  color: #5b6a86;
  font-size: 16px;
  line-height: 1.65;
}

.contactx-page .cx-chevron {
  flex: 0 0 auto;
  color: #6780a8;
  font-size: 18px;
  transition: transform .25s ease, color .25s ease;
}

#faq .faq-item.active .cx-faq-question,
#faq .faq-item.active .faq-question {
  color: #0085ff;
}

#faq .faq-item.active .cx-chevron,
#faq .faq-item.active .chevron {
  color: #0085ff;
  transform: rotate(180deg);
}

#faq .faq-item.active .cx-faq-answer,
#faq .faq-item.active .faq-answer {
  display: block;
}

#faq .cx-faq-answer[hidden],
#faq .faq-answer[hidden] {
  display: none !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 991px) {
  .contactx-page .cx-trust-grid,
  .contactx-page .cx-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .contactx-page .cx-form-wrap {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .contactx-page .cx-h2 {
    font-size: 30px;
  }

  .contactx-page .cx-sub {
    font-size: 16px;
  }

  .contactx-page .cx-faq-question {
    padding: 18px;
    font-size: 17px;
  }

  .contactx-page .cx-faq-answer {
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .contactx-page .contactx-form .form-group {
    margin-left: -6px;
    margin-right: -6px;
  }

  .contactx-page .contactx-form .form-input-wrapper {
    padding: 10px 6px 0;
  }

  .contactx-page .contactx-form .form-control {
    height: 54px;
    min-height: 54px;
    padding: 18px 12px 8px;
    border-radius: 14px;
    font-size: 14px;
  }

  .contactx-page .contactx-form textarea.form-control {
    height: 140px;
    min-height: 140px;
  }

  .contactx-page .contactx-form .form-control ~ label {
    top: 27px;
    left: 18px;
    font-size: 13px;
  }

  .contactx-page .contactx-form textarea.form-control ~ label {
    top: 22px;
  }

  .contactx-page .contactx-form .form-control.has-value ~ label,
  .contactx-page .contactx-form .form-control:focus ~ label,
  .contactx-page .contactx-form .form-input-wrapper.has-error .form-control ~ label {
    top: 3px;
    left: 14px;
    font-size: 10px;
  }

  .contactx-page .contactx-form #contactx-submit {
    width: 100%;
    min-width: 0;
  }

  .contact-success-dialog {
    width: calc(100% - 24px);
    padding: 28px 20px 22px;
    border-radius: 22px;
  }

  .contact-success-img {
    width: 84px;
    margin-bottom: 16px;
  }

  .contact-success-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .contact-success-repeat {
    width: 100%;
    min-width: 0;
  }
}