/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #050505;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   HERO
========================================================= */

.contact-hero {
  --hero-image: url("/img/heroes/contact.webp");
  min-height: 100vh;
  position: relative;
  padding: 150px 60px;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.96),
      rgba(0, 0, 0, 0.62),
      rgba(0, 0, 0, 0.25)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.88)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.03);
  z-index: -2;
}

.hero-content {
  max-width: 980px;
}

h1 {
  font-size: clamp(72px, 8.8vw, 125px);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
}

h1 span {
  color: #e10600;
}

.hero-content p {
  margin-top: 28px;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
  padding: 120px 60px;
}

.contact-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* =========================================================
   FORM
========================================================= */

.contact-form {
  position: relative;
  padding: 46px;
  border-radius: 34px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* =========================================================
   FORM HEADER
========================================================= */

.contact-form-header {
  position: relative;
  z-index: 2;
  margin-bottom: 38px;
  text-align: center;
}

.contact-form-header h2 {
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 34px;
  color: #fff;
}

.contact-form-header p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 600;
}

.contact-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-socials {
  display: flex;
  gap: 14px;
  margin: 18px 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-socials a {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.contact-socials a:hover {
  transform: translateY(-3px);
  border-color: #ef0000;
  background: rgba(239, 0, 0, 0.12);
}

.contact-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 19px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.25s;
}

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

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(225, 6, 0, 0.75);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.12);
}

.form-group input.is-error,
.form-group textarea.is-error {
  border-color: rgba(225, 6, 0, 0.95);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.16);
}

/* =========================================================
   BUTTON
========================================================= */

.submit-btn {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 18px;
  background: #e10600;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Montserrat", sans-serif;
}

.submit-btn:hover {
  background: #850000;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.form-status.is-error {
  color: #ff6a5f;
}

.form-status.is-success {
  color: #9be28f;
}

@media (max-width: 620px) {
  .contact-hero {
    --hero-image: url("/img/heroes/mobile/contact.webp");
  }
}

.contact-toast {
  position: fixed;
  top: 112px;
  left: 50%;
  z-index: 1400;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid rgba(123, 220, 109, 0.48);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.96);
  color: #d9ffd4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {
  .contact-hero {
    min-height: 90vh;
    padding: 140px 24px 70px;
    align-items: center;
  }

  h1 {
    font-size: clamp(64px, 11vw, 82px);
  }

  .hero-content p {
    font-size: 17px;
  }

  .contact-section {
    padding: 90px 24px;
  }

  .contact-form {
    padding: 36px;
    border-radius: 28px;
  }

  .contact-form-header h2 {
    font-size: 48px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {
  .contact-toast {
    top: 82px;
    font-size: 12px;
  }

  .contact-hero {
    min-height: 100svh;
    padding: 128px 18px 56px;
  }

  h1 {
    font-size: 52px;
    line-height: 0.95;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.7;
  }

  .contact-section {
    padding: 76px 18px;
  }

  .contact-form {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .contact-form-header {
    margin-bottom: 30px;
  }

  .contact-form-header h2 {
    font-size: 36px;
    margin-bottom: 26px;
  }

  .contact-form-header p {
    font-size: 15px;
  }

  .contact-item {
    align-items: flex-start;
    justify-content: center;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
  }

  .contact-socials {
    flex-wrap: wrap;
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .form-group input,
  .form-group textarea {
    padding: 17px 16px;
    border-radius: 14px;
  }

  .form-group textarea {
    min-height: 160px;
  }

  .submit-btn {
    height: 58px;
    border-radius: 14px;
  }
}
