.contact-page {
  background: #0b0d12;
  color: #f5f7fb;
}

/* HERO */
.contact-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-hero__bg,
.contact-hero__overlay {
  position: absolute;
  inset: 0;
}

.contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero__overlay {
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.35) 0%, rgba(8, 10, 14, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 10, 14, 0.86) 0%, rgba(8, 10, 14, 0.40) 100%);
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.contact-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.contact-hero__text {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.contact-hero__meta {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* PAGE */
.contact-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.contact-section__intro {
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info,
.contact-form-wrap {
  min-width: 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.contact-card + .contact-card {
  margin-top: 1rem;
}

.contact-card h3 {
  margin: 0.25rem 0 1rem;
  font-size: 1.35rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-info-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-info-list__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
}

.contact-info-list a,
.contact-info-list span {
  color: #ffffff;
  text-decoration: none;
  word-break: break-word;
}

.contact-info-list a:hover {
  opacity: 0.82;
}

.contact-feature-list {
  margin-top: 1rem;
}

/* FORM */
.contact-form {
  background: #12161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: #f4f7fb;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-field select option {
  background: #12161f;
  color: #ffffff;
}

.form-field textarea {
  resize: vertical;
  min-height: 180px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.08);
}

.form-error {
  min-height: 1.2rem;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: #ff8d8d;
}

.contact-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form__submit {
  min-width: 180px;
}

.contact-inline-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-inline-status.is-error {
  color: #ff9d9d;
}

.contact-inline-status.is-success {
  color: #98f0b0;
}

/* ALERTS */
.contact-alert {
  margin: 1.5rem auto 0;
  max-width: 820px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid transparent;
  line-height: 1.6;
}

.contact-alert--success {
  background: rgba(63, 185, 80, 0.12);
  border-color: rgba(63, 185, 80, 0.28);
  color: #c7f5cf;
}

.contact-alert--error {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.24);
  color: #ffc0c0;
}

/* HONEYPOT */
.contact-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-hero {
    min-height: 56vh;
  }

  .contact-hero__content {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .contact-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__submit {
    width: 100%;
  }
}