*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f5f7ff;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fix for navbar-cta imported from home page style */
.navbar-cta {
  box-sizing: content-box;
}

/* ── MAIN LAYOUT ── */
.eq-main {
  flex: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  width: 100%;
  margin: 0px auto 0px;
  text-align: left;
  background-color: #f7f7f7;
  border-radius: 10px;
  padding: 40px 50px;
  flex-wrap: wrap;
}

/* ── LEFT PANEL ── */
.eq-left {
  flex: 1;
  display: flex;
  justify-content: center;
  /* align-items: center; */
}

.eq-left-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #325ff4;
  margin-bottom: 16px;
  background: rgba(50, 95, 244, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.eq-heading {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  color: #0a0e1a;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.eq-sub {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Contact chips */
.eq-contact-chips {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 40px;
}

.eq-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1.5px solid rgba(50, 95, 244, 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  width: 250px;
  color: #1a1a2e;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.eq-chip:hover {
  border-color: #325ff4;
  box-shadow: 0 4px 16px rgba(50, 95, 244, 0.12);
  transform: translateY(-1px);
}

.eq-chip-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Illustration */
.eq-illustration {
  width: 100%;
  height: auto;
}

.eq-illustration .eq-img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

/* ── RIGHT PANEL ── */
.eq-right {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

/* Card */
.eq-card {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 0;
}

.eq-card-header {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}

.eq-card-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.eq-card-header p {
  font-size: 14px;
  color: #64748b;
}

/* Form */
.eq-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-full {
  grid-column: 1 / -1;
}

.eq-field label {
  font-size: 14px;
  font-weight: 500;
}

.eq-field .req {
  color: #ef4444;
}

.eq-field input,
.eq-field select,
.eq-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.eq-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: poMontserrat;
}

.eq-field input::placeholder,
.eq-field textarea::placeholder {
  color: #94a3b8;
}

.eq-field input:focus,
.eq-field select:focus,
.eq-field textarea:focus {
  border-color: #325ff4;
  box-shadow: 0 0 0 3px rgba(50, 95, 244, 0.1);
}

.eq-field input.error,
.eq-field select.error,
.eq-field textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.eq-field textarea {
  resize: vertical;
  min-height: 100px;
}

input::placeholder {
  opacity: 0.5;
  /* only placeholder text */
}

/* Submit button */
.eq-submit {
  background: linear-gradient(135deg, #306BCA 0%, #2F70B9 30%, #2D7C8F 70%, #28a84a 90%);
  color: #FFFFFF;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  white-space: nowrap;
  margin: 10px auto 0;
  width: 100%;
  max-width: 150px;
  line-height: normal;
}

.eq-submit:hover {
  background: #1e4be0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(50, 95, 244, 0.3);
}

.eq-submit:active {
  transform: translateY(0);
}

.eq-submit:disabled {
  background: #93a8f4;
  cursor: not-allowed;
  transform: none;
}

/* ── SUCCESS STATE ── */
.eq-success {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 20px;
  box-shadow:
    0 8px 40px rgba(50, 95, 244, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 1000;
  width: 90%;
  max-width: 450px;
}

.eq-success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.eq-success-icon {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.eq-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.eq-success p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

.eq-back-btn {
  box-sizing: content-box;
  background: linear-gradient(135deg, #306BCA 0%, #2F70B9 30%, #2D7C8F 70%, #28a84a 90%);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  height: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-family: "Arial", sans-serif;
  padding: 7px 18px;
  border-radius: 8px;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
  width: max-content;
  margin: 0 auto;
}

.eq-back-btn:hover {
  background: #1e4be0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .eq-main {
    flex-direction: column;
    padding: 32px 20px;
    gap: 32px;
  }

  .eq-left {
    justify-content: center;
  }

  .eq-left-inner {
    max-width: 100%;
    text-align: center;
  }

  .eq-sub {
    max-width: 100%;
  }

  .eq-contact-chips {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .eq-chip {
    max-width: none;
  }

  .eq-illustration {
    max-width: 280px;
    margin: 0 auto;
  }

  .eq-right {
    width: 100%;
  }

  .eq-card {
    padding: 28px 20px;
  }
}

@media (max-width: 600px) {
  .eq-header {
    padding: 12px 20px;
  }

  .eq-row {
    grid-template-columns: 1fr;
  }

  .eq-heading {
    font-size: 26px;
  }

  .eq-card {
    border-radius: 14px;
    padding: 24px 16px;
  }
}

/* ── Form Error & Validation styles ── */
.eq-field input.error,
.eq-field select.error,
.eq-field textarea.error {
  background: #fff8f8 !important;
}

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 4px;
  font-weight: 500;
  text-align: left;
  animation: fieldErrorFadeIn 0.2s ease forwards;
}

@keyframes fieldErrorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Captcha styles ── */
.captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#captchaCanvas,
#captchaCanvasWL {
  background: #f0f3ff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: block;
  cursor: default;
}

.btn-refresh-captcha {
  background: none;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-captcha svg {
  transition: transform 0.2s ease;
}

.btn-refresh-captcha:hover {
  background: #f8fbff;
  color: #325ff4;
  border-color: rgba(50, 95, 244, 0.3);
}

.btn-refresh-captcha:hover svg {
  transform: rotate(60deg);
}

.captcha-container input {
  flex: 1;
  min-width: 140px;
  height: 46px;
  box-sizing: border-box;
}
