.contact-hero {
  padding: 190px 0 135px;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(53, 87, 125, 0.22),
      transparent 45%
    ),
    linear-gradient(
      105deg,
      #050a12 0%,
      #07111f 42%,
      #0d1e34 72%,
      #193451 100%
    );

  color: white;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 50px;
}

.contact-hero .eyebrow {
  color: #afc2d3;
  margin-bottom: 25px;
}

.contact-hero h1 {
  max-width: 950px;

  margin-bottom: 35px;

  font-size: clamp(58px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -4px;
}

.contact-hero h1 em {
  color: #bdd0df;
}

.contact-hero p:last-child {
  max-width: 670px;

  color: #d2dce5;

  font-size: 18px;
  line-height: 1.8;
}


/* Main section */

.contact-main {
  padding: 145px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: start;
}


/* Contact information */

.contact-info h2 {
  margin: 28px 0 35px;
}

.contact-info > p {
  max-width: 470px;

  margin-bottom: 50px;

  color: var(--muted);
  line-height: 1.8;
}

.contact-details {
  border-top: 1px solid var(--line);
}

.contact-details > div {
  display: grid;
  grid-template-columns: 110px 1fr;

  padding: 20px 0;

  border-bottom: 1px solid var(--line);
}

.contact-details span {
  color: #8294a2;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-details a,
.contact-details p {
  margin: 0;

  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
}


/* Form container */

.form-wrapper {
  padding: 50px;

  background:
    linear-gradient(
      145deg,
      #e7edf2,
      #d8e2e9
    );
}

.free-label {
  display: inline-block;

  margin-bottom: 20px;
  padding: 8px 12px;

  background: var(--navy);
  color: white;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.form-wrapper h3 {
  margin-bottom: 12px;

  color: var(--navy);
  font-size: 35px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.form-reassurance {
  max-width: 500px;
  margin: 0 0 38px;
  color: #5e7284;
  font-size: 13px;
  line-height: 1.65;
}

.form-group textarea::placeholder {
  color: #788c9c;
  opacity: 0.8;
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--navy);
  background: rgba(255, 255, 255, 0.66);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
}

.form-status--error {
  border-left-color: #9b3e3e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 8px;

  min-width: 0;
}

.form-group label {
  color: #5e7284;

  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}


/* Inputs */

.form-group input:not([type="hidden"]),
.form-group textarea {
  width: 100%;

  padding: 12px 2px;

  border: 0;
  border-bottom: 1px solid #93a6b5;
  border-radius: 0;
  outline: 0;

  background: transparent;
  color: var(--navy);

  font: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:not([type="hidden"]):focus,
.form-group textarea:focus {
  border-color: var(--navy);
}


/* Custom dropdown */

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__button {
  position: relative;

  width: 100%;
  min-height: 47px;

  display: flex;
  align-items: center;

  padding: 12px 36px 12px 2px;

  border: 0;
  border-bottom: 1px solid #93a6b5;
  border-radius: 0;
  outline: 0;

  background: transparent;
  color: var(--navy);

  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.custom-select__button:hover {
  border-color: #58789a;
}

.custom-select__button:focus-visible,
.custom-select.is-open .custom-select__button {
  border-color: var(--navy);
}

.custom-select__arrow {
  position: absolute;
  top: 50%;
  right: 7px;

  width: 8px;
  height: 8px;

  border-right: 1.5px solid #58789a;
  border-bottom: 1.5px solid #58789a;

  transform: translateY(-70%) rotate(45deg);

  transition: transform 0.2s ease;

  pointer-events: none;
}

.custom-select.is-open .custom-select__arrow {
  transform: translateY(-25%) rotate(225deg);
}

.custom-select__options {
  position: absolute;
  z-index: 200;

  top: calc(100% + 7px);
  left: 0;

  width: 100%;

  margin: 0;
  padding: 7px;

  border: 1px solid rgba(53, 87, 125, 0.28);
  border-radius: 3px;

  background: #f7fafc;

  box-shadow:
    0 18px 45px rgba(20, 30, 48, 0.17);

  list-style: none;
}

.custom-select__options[hidden] {
  display: none;
}

.custom-select__options li {
  padding: 11px 13px;

  border-radius: 2px;
  outline: none;

  color: var(--navy);

  font-size: 15px;
  line-height: 1.35;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.custom-select__options li:hover,
.custom-select__options li:focus {
  background: #dbe5ed;
  color: #274d73;
}

.custom-select__options li.is-selected {
  background: #35577d;
  color: white;
}


/* Submit button */

.contact-form .submit-button {
  width: max-content;

  margin-top: 10px;
  padding: 15px 23px;

  border: 1px solid var(--navy);

  background: var(--navy);
  color: white;

  font: inherit;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.contact-form .submit-button:hover {
  border-color: var(--blue);
  background: var(--blue);

  transform: translateY(-2px);
}


/* Tablet */

@media (max-width: 850px) {
  .contact-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 70px;
  }

  .contact-hero h1 {
    font-size: 58px;
    letter-spacing: -2px;
  }
}


/* Mobile */

@media (max-width: 520px) {
  .contact-hero {
    padding: 145px 0 95px;
  }

  .contact-main {
    padding: 90px 0;
  }

  .form-wrapper {
    padding: 32px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .custom-select__options {
    position: absolute;
  }

  .contact-form .submit-button {
    width: 100%;
  }
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5e7284;
  font-size: 12px;
  line-height: 1.5;
}

.privacy-check input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--navy);
}

.privacy-check a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-error {
  display: none;
  color: #8c3340;
  font-size: 11px;
}

.custom-select.has-error .custom-select__button {
  border-color: #8c3340;
}

.custom-select.has-error + .field-error {
  display: block;
}


/* Add this at the end of kontakt.css */

.contact-hero:only-child {
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  place-items: center;

  padding: clamp(80px, 10vw, 140px) 0;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(53, 87, 125, 0.34),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(86, 120, 154, 0.18),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #050a12 0%,
      #07111f 40%,
      #0d1e34 72%,
      #193451 100%
    );

  text-align: center;
}

.contact-hero:only-child .contact-hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;

  width: min(780px, calc(100% - 48px));
  gap: 22px;
}

.contact-hero:only-child .section-label {
  padding: 0;
}

.contact-hero:only-child .eyebrow {
  margin-bottom: 24px;
}

.contact-hero:only-child h1 {
  max-width: 780px;
  margin: 0 auto 32px;

  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -3px;
}

.contact-hero:only-child h1 + p {
  max-width: 610px;
  margin: 0 auto 36px;

  color: #d2dce5;
  font-size: 18px;
  line-height: 1.8;
}

.contact-hero:only-child .button {
  margin-top: 4px;
}

@media (max-width: 520px) {
  .contact-hero:only-child {
    padding: 70px 0;
  }

  .contact-hero:only-child .contact-hero-grid {
    width: min(100% - 36px, 780px);
    gap: 18px;
  }

  .contact-hero:only-child h1 {
    margin-bottom: 26px;

    font-size: 47px;
    letter-spacing: -2px;
  }

  .contact-hero:only-child h1 + p {
    margin-bottom: 30px;

    font-size: 16px;
    line-height: 1.7;
  }
}

/* ==================================================
   Preferred trial lesson time
   ================================================== */

.preferred-time-section {
  padding: 22px 24px;

  border: 1px solid rgba(53, 87, 125, 0.16);

  background: rgba(255, 255, 255, 0.28);
}


.preferred-time-heading {
  margin-bottom: 22px;
}


.preferred-time-heading > span {
  display: block;

  margin-bottom: 7px;

  color: var(--navy);

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}


.preferred-time-heading small {
  color: #6f8292;

  font-size: 11px;
  font-weight: 400;
}


.preferred-time-heading p {
  max-width: 500px;

  margin: 0;

  color: #5e7284;

  font-size: 13px;
  line-height: 1.6;
}


.preferred-time-other {
  margin-top: 22px;
}


.preferred-time-other[hidden] {
  display: none;
}


.preferred-time-note {
  margin: 16px 0 0;

  color: #718493;

  font-size: 11px;
  line-height: 1.55;
}


@media (max-width: 520px) {

  .preferred-time-section {
    padding: 19px 17px;
  }

}