
/* ==========================================
   8 TECHIES — MODERN CONTACT PAGE
   ========================================== */

.contact-page {
  --contact-blue: #246bfe;
  --contact-blue-dark: #1555df;
  --contact-ink: #14213d;
  --contact-muted: #738097;
  --contact-line: #e7ebf3;
  --contact-soft-blue: #edf4ff;
  font-family: "DM Sans", sans-serif;
  color: var(--contact-ink);
  background: #ffffff;
  overflow-x: hidden;
}

.contact-page * {
  box-sizing: border-box;
}

.contact-page a {
  text-decoration: none;
}

.contact-page button,
.contact-page input,
.contact-page select,
.contact-page textarea {
  font: inherit;
}

.contact-page .site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 233, 245, 0.8);
}

.contact-page .navbar {
  min-height: 78px;
}

.contact-page .nav-links a {
  transition: color 0.2s ease;
}

.contact-page .nav-links a:hover,
.contact-page .nav-links a[aria-current="page"] {
  color: var(--contact-blue);
}

.contact-page .nav-links .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #dce7ff;
  border-radius: 11px;
  background: #f3f7ff;
}

.contact-page .nav-contact span {
  font-size: 17px;
}

/* Hero layout */

.contact-hero {
  position: relative;
  isolation: isolate;
  padding: 74px 24px 92px;
  background:
    radial-gradient(ellipse at 6% 8%, rgba(220, 234, 255, 0.8), transparent 32%),
    radial-gradient(ellipse at 93% 92%, rgba(231, 241, 255, 0.7), transparent 31%),
    #fbfcff;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  padding: 18px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #dce7ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #4264a0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.hero-copy h1 {
  margin: 29px 0 22px;
  color: #15213a;
  font-family: "Manrope", sans-serif;
  font-size: clamp(43px, 5vw, 67px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -3.3px;
}

.hero-copy h1 > span {
  display: block;
}

.hero-copy h1 .heading-blue {
  color: var(--contact-blue);
}

.hero-description {
  max-width: 440px;
  margin: 0;
  color: #718097;
  font-size: 15px;
  line-height: 1.9;
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 29px;
}

.hint-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: #246bfe;
  color: white;
  font-size: 24px;
}

.form-hint p {
  margin: 0;
  color: #728098;
  font-size: 13px;
  line-height: 1.7;
}

.form-hint strong {
  color: #263955;
  font-weight: 700;
}

.contact-quick-info {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid #e5ebf5;
}

.quick-info-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid #e1eaff;
  border-radius: 13px;
  background: white;
  color: var(--contact-blue);
}

.quick-info-icon svg {
  width: 21px;
  height: 21px;
}

.quick-label {
  display: block;
  margin-bottom: 5px;
  color: #8a96a9;
  font-size: 11px;
}

.contact-quick-info a {
  color: #263955;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-quick-info a:hover {
  color: var(--contact-blue);
}

.hero-decoration {
  position: absolute;
  right: 2px;
  bottom: -27px;
  width: 160px;
  color: #7ba5ff;
  opacity: 0.7;
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero-decoration svg {
  display: block;
  width: 100%;
}

/* Form card */

.contact-form-card {
  position: relative;
  padding: clamp(25px, 3.5vw, 42px);
  border: 1px solid rgba(224, 231, 244, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 70px rgba(31, 61, 112, 0.075),
    0 3px 12px rgba(31, 61, 112, 0.025);
  animation: contact-rise 0.65s ease both;
}

.form-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 29px;
}

.form-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--contact-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.form-card-heading h2 {
  margin: 0;
  color: #17233d;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.25;
}

.form-card-heading h2 span {
  color: var(--contact-blue);
}

.form-card-heading p {
  margin: 10px 0 0;
  color: #8490a3;
  font-size: 12px;
  line-height: 1.7;
}

.form-heading-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #edf4ff, #f8faff);
  color: var(--contact-blue);
}

.form-heading-icon svg {
  width: 22px;
  height: 22px;
}

/* Form fields */

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  color: #35445e;
  font-size: 12px;
  font-weight: 700;
}

.form-field label > span:not(.optional) {
  color: var(--contact-blue);
}

.form-field label .optional {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  outline: none;
  background: #fbfcfe;
  color: #263955;
  font-size: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
  min-height: 47px;
  padding: 0 13px;
}

.form-field textarea {
  min-height: 112px;
  padding: 13px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a4adbc;
}

.form-field select {
  color: #65738a;
  cursor: pointer;
}

.form-field select:valid {
  color: #263955;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #8db2ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.09);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.submit-button:focus-visible,
.email-cta:focus-visible {
  outline: 2px solid #246bfe;
  outline-offset: 3px;
}

.message-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #9aa4b4;
  font-size: 10px;
  line-height: 1.5;
}

#character-count {
  flex-shrink: 0;
}

/* Submit button */

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  min-height: 53px;
  margin-top: 1px;
  padding: 0 17px 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #246bfe, #3679ff);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(36, 107, 254, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(105deg, #1555df, #246bfe);
  box-shadow: 0 12px 25px rgba(36, 107, 254, 0.25);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 19px;
  transition: transform 0.2s ease;
}

.submit-button:hover .button-arrow {
  transform: translate(2px, -2px);
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -3px 0 0;
  color: #9aa4b4;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.form-privacy svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border: 1px solid #f4cccc;
  background: #fff5f5;
  color: #a82f2f;
}

/* Next steps */

.next-section {
  padding: 87px 24px 95px;
  background: #ffffff;
}

.next-container {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-intro {
  margin-bottom: 37px;
  text-align: center;
}

.section-label,
.bottom-label {
  color: var(--contact-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.section-intro h2 {
  margin: 13px 0 10px;
  color: #17233d;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 39px);
  font-weight: 800;
  letter-spacing: -1.6px;
}

.section-intro h2 span {
  color: var(--contact-blue);
}

.section-intro > p {
  margin: 0;
  color: #8490a3;
  font-size: 13px;
  line-height: 1.8;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.next-card {
  position: relative;
  min-height: 208px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: 17px;
  background: #ffffff;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.next-card:hover {
  transform: translateY(-5px);
  border-color: #d2e1ff;
  box-shadow: 0 15px 35px rgba(31, 61, 112, 0.07);
}

.next-number {
  color: #c6d6f4;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.next-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 23px 0 15px;
  place-items: center;
  border: 1px solid #e0eaff;
  border-radius: 11px;
  background: #f1f6ff;
  color: var(--contact-blue);
  font-size: 20px;
}

.next-card h3 {
  margin: 0 0 9px;
  color: #253550;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.next-card p {
  margin: 0;
  color: #8490a3;
  font-size: 12px;
  line-height: 1.85;
}

/* Bottom CTA */

.contact-bottom {
  padding: 0 24px 82px;
}

.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 34px 39px;
  border: 1px solid #e0eaff;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(216, 231, 255, 0.7), transparent 48%),
    #f6f9ff;
}

.bottom-inner h2 {
  max-width: 560px;
  margin: 10px 0 0;
  color: #17233d;
  font-family: "Manrope", sans-serif;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.4;
}

.email-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #d6e3ff;
  border-radius: 11px;
  background: #ffffff;
  color: var(--contact-blue);
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.email-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(36, 107, 254, 0.1);
}

.email-cta span {
  font-size: 18px;
}

/* Footer */

.contact-page .site-footer {
  border-top: 1px solid #e8edf5;
  background: #ffffff;
}

.contact-page .footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.contact-page .footer-brand .logo {
  color: #17233d;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.contact-page .footer-brand > p {
  margin: 7px 0 0;
  color: #8490a3;
  font-size: 11px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
}

.footer-contact a {
  color: #68778f;
  font-size: 11px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--contact-blue);
}

.contact-page .footer-copy {
  margin: 0;
  color: #9aa4b4;
  font-size: 10px;
}

/* Entrance animation */

@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 950px) {
  .contact-hero {
    padding-top: 55px;
    padding-bottom: 70px;
  }

  .contact-shell {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 35px;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 5.5vw, 55px);
    letter-spacing: -2.5px;
  }

  .contact-form-card {
    padding: 25px;
  }

  .hero-decoration {
    width: 120px;
  }

  .next-section {
    padding-top: 65px;
    padding-bottom: 70px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .contact-hero {
    padding: 39px 17px 55px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 31px;
    max-width: 520px;
  }

  .hero-copy {
    padding: 0;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }

  .hero-copy h1 {
    margin-top: 24px;
    margin-bottom: 17px;
    font-size: clamp(43px, 11vw, 58px);
    letter-spacing: -2.7px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.85;
  }

  .form-hint {
    margin-top: 23px;
  }

  .contact-quick-info {
    margin-top: 28px;
    padding-top: 20px;
  }

  .hero-decoration {
    right: 0;
    bottom: -7px;
    width: 100px;
  }

  .contact-form-card {
    padding: 25px 20px;
    border-radius: 19px;
  }

  .form-card-heading {
    margin-bottom: 25px;
  }

  .form-card-heading h2 {
    font-size: 27px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  #contact-form {
    gap: 18px;
  }

  .form-field input,
  .form-field select {
    min-height: 49px;
  }

  .next-section {
    padding: 60px 17px;
  }

  .section-intro {
    margin-bottom: 28px;
  }

  .next-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .next-card {
    min-height: auto;
    padding: 22px;
  }

  .next-icon {
    margin-top: 17px;
  }

  .contact-bottom {
    padding: 0 17px 55px;
  }

  .bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 22px;
    border-radius: 17px;
  }

  .bottom-inner h2 {
    font-size: 24px;
  }

  .email-cta {
    width: 100%;
  }

  .contact-page .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

/* Small phones */

@media (max-width: 380px) {
  .contact-form-card {
    padding: 22px 16px;
  }

  .form-heading-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .message-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
