/* Contact Us page – Easify Landing 2026 */

/* ── Section ── */
.eas26-page--contact .eas26-contact {
  position: relative;
  z-index: 2;
  padding: clamp(150px, 20vh, 190px) 0 160px;
  background: var(--eas-black);
  overflow: hidden;
}

.eas26-page--contact .eas26-contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.eas26-page--contact .eas26-contact__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#262626 1px, transparent 1px),
    linear-gradient(90deg, #262626 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.75;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
}

.eas26-page--contact .eas26-contact__gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 360px;
  background: linear-gradient(180deg, rgba(53, 0, 26, 0) 0%, var(--eas-footer-top) 100%);
}

.eas26-page--contact .eas26-contact__inner {
  position: relative;
  max-width: var(--eas-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ── Intro ── */
.eas26-page--contact .eas26-contact__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.eas26-page--contact .eas26-contact__heading {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--eas-white);
  letter-spacing: -0.02em;
}

.eas26-page--contact .eas26-contact__subtitle {
  margin: 0;
  max-width: 720px;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.4;
  color: var(--eas-white);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ── Two-column grid ── */
.eas26-page--contact .eas26-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.eas26-page--contact .eas26-contact__form-col {
  min-width: 0;
}

.eas26-page--contact .eas26-contact__side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ── Side cards ── */
.eas26-page--contact .eas26-contact__card {
  border-radius: var(--eas-radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: background 0.2s ease-out;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.eas26-page--contact .eas26-contact__card--email {
  background: #fffbb1;
  box-shadow: inset 0 0 0 2px #e0d500;
  color: #2e2b00;
  --_ul: 0;
}

.eas26-page--contact a.eas26-contact__card--email:hover {
  background: #fff88f;
  color: #2e2b00;
  --_ul: 1;
}

.eas26-page--contact .eas26-contact__card--chat {
  background: #ffe0ef;
  box-shadow: inset 0 0 0 2px #ff8eca;
  color: #640035;
}

.eas26-page--contact .eas26-contact__card--chat:hover {
  background: #ffcce6;
}

.eas26-page--contact .eas26-contact__card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--eas-radius-card);
  background: var(--eas-white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.eas26-page--contact .eas26-contact__card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--eas-black);
}

.eas26-page--contact .eas26-contact__card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eas26-page--contact .eas26-contact__card-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  text-wrap: pretty;
}

.eas26-page--contact .eas26-contact__card--email .eas26-contact__card-body strong {
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: calc(var(--_ul, 0) * 100%) 1.5px;
  transition: background-size 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Success state ── */
.eas26-page--contact .eas26-contact__sent[hidden] {
  display: none;
}

.eas26-page--contact .eas26-contact__sent {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.eas26-page--contact .eas26-contact__sent-mascot {
  width: 132px;
  height: auto;
}

.eas26-page--contact .eas26-contact__sent-title {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--eas-white);
  letter-spacing: -0.02em;
}

.eas26-page--contact .eas26-contact__sent-body {
  margin: 0;
  max-width: 460px;
  font-size: 18px;
  line-height: 1.5;
  color: #d8d8d8;
  text-wrap: pretty;
}

.eas26-page--contact .eas26-contact__sent-body strong {
  color: var(--eas-white);
}

.eas26-page--contact .eas26-contact__sent-reset {
  margin-top: 8px;
  height: 60px;
  padding: 0 28px;
  border-radius: var(--eas-radius-card);
  border: 0;
  background: var(--eas-white);
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--eas-black);
  transition: background 0.18s ease-out;
}

.eas26-page--contact .eas26-contact__sent-reset:hover {
  background: #efe7ff;
}

/* ── CF7 form styling ── */
.eas26-page--contact .eas26-contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eas26-page--contact .eas26-contact-form .wpcf7-form-control-wrap {
  display: block;
}

.eas26-page--contact .eas26-contact-form label,
.eas26-page--contact .eas26-contact-form .eas26-cf7-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--eas-white);
}

.eas26-page--contact .eas26-contact-form .eas26-cf7-label-text {
  display: inline;
}

.eas26-page--contact .eas26-contact-form .eas26-cf7-label-hint {
  color: #a3a3a3;
  font-weight: 400;
}

/* Row pairs: name + email, topic + app.
   CF7 auto-paragraph wraps row contents in <p>; target that as the grid. */
.eas26-page--contact .eas26-contact-form .eas26-cf7-row > p {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 0;
}

/* Fallback when wpcf7_autop is disabled and labels are direct children. */
.eas26-page--contact .eas26-contact-form .eas26-cf7-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

/* CF7 auto-paragraph: suppress stray <br> inside all form labels */
.eas26-page--contact .eas26-contact-form .eas26-cf7-row > p > br,
.eas26-page--contact .eas26-contact-form .eas26-cf7-row label br,
.eas26-page--contact .eas26-contact-form > p > label br,
.eas26-page--contact .eas26-contact-form .pix-contact7-form > p > label br {
  display: none;
}

/* Theme wrapper: neutralise pix-contact7-form spacing */
.eas26-page--contact .eas26-contact-form .pix-contact7-form {
  display: contents;
}

/* CF7 auto-paragraph: standalone <p> wrapping single-field labels */
.eas26-page--contact .eas26-contact-form > .pix-contact7-form > p,
.eas26-page--contact .eas26-contact-form > p {
  margin: 0;
}

/* Inputs */
.eas26-page--contact .eas26-contact-form input[type="text"],
.eas26-page--contact .eas26-contact-form input[type="email"],
.eas26-page--contact .eas26-contact-form input[type="url"],
.eas26-page--contact .eas26-contact-form input[type="tel"] {
  height: 60px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--eas-white);
  font-size: 18px;
  color: var(--eas-black);
  width: 100%;
  min-width: 0;
}

.eas26-page--contact .eas26-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  height: 60px;
  padding: 0 52px 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--eas-white);
  font-size: 18px;
  color: var(--eas-black);
  width: 100%;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* Custom chevron for select */
.eas26-page--contact .eas26-contact-form .eas26-cf7-select-wrap {
  position: relative;
  display: block;
}

.eas26-page--contact .eas26-contact-form .eas26-cf7-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9.5 L12 15.5 L18 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.eas26-page--contact .eas26-contact-form textarea {
  padding: 16px 18px;
  border-radius: 12px;
  border: 0;
  background: var(--eas-white);
  font-size: 18px;
  line-height: 1.5;
  color: var(--eas-black);
  width: 100%;
  min-width: 0;
  min-height: 180px;
  resize: vertical;
}

.eas26-page--contact .eas26-contact-form input::placeholder,
.eas26-page--contact .eas26-contact-form textarea::placeholder {
  color: #8a8397;
}

.eas26-page--contact .eas26-contact-form input:focus-visible,
.eas26-page--contact .eas26-contact-form select:focus-visible,
.eas26-page--contact .eas26-contact-form textarea:focus-visible {
  outline: none;
  background: #efe7ff;
}

/* Select placeholder color when no value chosen */
.eas26-page--contact .eas26-contact-form select option[value=""][disabled] {
  color: #8a8397;
}

/* ── Submit button ── */
.eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
  min-height: 76px;
  padding: 10px 10px 10px 28px;
  border-radius: var(--eas-radius-card);
  background: var(--eas-hover);
  box-shadow: 0 10px 30px rgba(195, 31, 112, 0.35);
  cursor: pointer;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  transition:
    transform 0.18s ease-out,
    background 0.18s ease-out;
}

.eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap:hover {
  background: #a81760;
  transform: translateY(-3px);
}

.eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap:has(:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.eas26-page--contact .eas26-contact-form input[type="submit"],
.eas26-page--contact .eas26-contact-form .wpcf7-submit {
  border: 0;
  background: none;
  padding: 0;
  color: var(--eas-white);
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  cursor: inherit;
  white-space: nowrap;
  transform: translateY(8px);
}

/* White circle with magenta chevron */
.eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap::after {
  content: "";
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23C31F70' stroke-width='2' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5 L16 12 L9 19'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

/* ── CF7 spinner ── */
.eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap {
  position: relative;
}

.eas26-page--contact .eas26-contact-form .wpcf7-spinner {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* ── CF7 validation tips ── */
.eas26-page--contact .eas26-contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #ff8eca;
}

.eas26-page--contact .eas26-contact-form .wpcf7-not-valid {
  box-shadow: inset 0 0 0 2px #ff8eca;
}

/* ── CF7 response output ── */
.eas26-page--contact .eas26-contact-form .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.45;
  border: 0;
}

.eas26-page--contact .eas26-contact-form .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(0, 200, 83, 0.12);
  color: #00e676;
}

.eas26-page--contact .eas26-contact-form .wpcf7-form.invalid .wpcf7-response-output,
.eas26-page--contact .eas26-contact-form .wpcf7-form.unaccepted .wpcf7-response-output,
.eas26-page--contact .eas26-contact-form .wpcf7-form.spam .wpcf7-response-output,
.eas26-page--contact .eas26-contact-form .wpcf7-form.aborted .wpcf7-response-output,
.eas26-page--contact .eas26-contact-form .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(255, 142, 202, 0.12);
  color: #ff8eca;
}

/* ── CF7 submitting state ── */
.eas26-page--contact .eas26-contact-form .wpcf7-form.submitting .eas26-cf7-submit-wrap {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
  .eas26-page--contact .eas26-contact {
    padding: calc(104px + env(safe-area-inset-top)) 0 96px;
  }

  .eas26-page--contact .eas26-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 72px;
  }

  .eas26-page--contact .eas26-contact__heading {
    font-size: 4.5rem;
    line-height: 1.06;
  }

  .eas26-page--contact .eas26-contact__subtitle {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .eas26-page--contact .eas26-contact-form input[type="submit"],
  .eas26-page--contact .eas26-contact-form .wpcf7-submit {
    font-size: 16px;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 767px) {
  .eas26-page--contact .eas26-contact {
    padding: calc(96px + env(safe-area-inset-top)) 0 72px;
  }

  .eas26-page--contact .eas26-contact__grid {
    gap: 60px;
  }

  .eas26-page--contact .eas26-contact__heading {
    font-size: clamp(2rem, 10.4vw, 2.625rem);
    line-height: 1.08;
  }

  .eas26-page--contact .eas26-contact__subtitle {
    font-size: 1.125rem;
  }

  .eas26-page--contact .eas26-contact__card {
    padding: 24px;
    gap: 12px;
  }

  .eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap {
    padding-left: 24px;
  }
}

/* ── Short viewports ── */
@media (max-height: 700px) and (max-width: 1024px) {
  .eas26-page--contact .eas26-contact {
    padding-top: calc(88px + env(safe-area-inset-top));
    padding-bottom: 64px;
  }

  .eas26-page--contact .eas26-contact__grid {
    gap: 56px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .eas26-page--contact .eas26-contact__card,
  .eas26-page--contact .eas26-contact-form .eas26-cf7-submit-wrap {
    transition: none;
  }
}
