/* Homepage contact panel, dark card with info on the left, message form on the right */
.contact-panel {
  --cp-card: #141416;
  --cp-card-2: #202024;
  --cp-ink: #ffffff;
  --cp-muted: #c7c9ce;
  --cp-field: #ffffff;
  --cp-field-ink: #1c2539;
  --cp-accent: #fa8b17;
  --cp-radius: 30px;
  position: relative;
  padding: clamp(48px, 6vw, 90px) 0;
  background: var(--gotezu-bg, #f7f4ef);
}

.contact-panel__inner {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-panel__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--cp-radius);
  padding: clamp(34px, 4.4vw, 68px);
  background:
    radial-gradient(120% 90% at 88% 12%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%), radial-gradient(90% 80% at 8% 92%, rgba(250, 139, 23, 0.1) 0%, rgba(250, 139, 23, 0) 60%), linear-gradient(150deg, var(--cp-card-2) 0%, var(--cp-card) 48%, #0d0d0f 100%);
  box-shadow: 0 30px 70px rgba(14, 16, 22, 0.28);
}

.contact-panel__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact-panel__title {
  margin: 0 0 clamp(24px, 2.4vw, 38px);
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cp-ink);
}

/* Left column */
.contact-panel__list {
  list-style: none;
  margin: 0 0 clamp(28px, 3vw, 44px);
  padding: 0;
}

.contact-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 clamp(20px, 2vw, 28px);
}

.contact-panel__item:last-child {
  padding-bottom: 0;
}

.contact-panel__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--cp-muted);
}

.contact-panel__icon svg {
  width: 100%;
  height: 100%;
}

.contact-panel__text {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.62;
  color: var(--cp-muted);
}

.contact-panel__text a {
  color: var(--cp-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-panel__text a:hover {
  color: var(--cp-accent);
}

.contact-panel__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-panel__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--cp-muted);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-panel__social a:hover {
  background: var(--cp-accent);
  color: #fff;
  transform: translateY(-2px);
}

.contact-panel__social svg {
  width: 17px;
  height: 17px;
}

/* Right column, pill fields */
.contact-panel__form input[type="text"],
.contact-panel__form input[type="email"],
.contact-panel__form input[type="number"],
.contact-panel__form input[type="tel"],
.contact-panel__form select,
.contact-panel__form textarea {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 19px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cp-field);
  color: var(--cp-field-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-panel__form select {
  height: auto;
  /* rounded rectangle rather than a full pill */
  border-radius: 16px;
  padding-right: 52px;
  cursor: pointer;
  accent-color: var(--cp-accent);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* chevron drawn in, since the native arrow can't be styled inside a pill */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2539' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 26px center;
  background-size: 16px 16px;
}

.contact-panel__form textarea {
  height: 132px;
  border-radius: 28px;
  resize: vertical;
}

.contact-panel__form input::placeholder,
.contact-panel__form textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.contact-panel__form input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.contact-panel__form input[type="number"]::-webkit-outer-spin-button,
.contact-panel__form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contact-panel__form select:invalid {
  color: #6b7280;
}

/* Dropdown list: replace the browser's blue highlight with Gotezu orange */
.contact-panel__form select option {
  color: var(--cp-field-ink);
  background: #fff;
}

.contact-panel__form select option:checked {
  color: #fff;
  /* inset shadow is what actually paints an option row in Chromium */
  box-shadow: inset 0 0 0 100px var(--cp-accent);
  background: var(--cp-accent);
}

/* Browsers with the styleable picker get orange on hover and keyboard focus too */
@supports (appearance: base-select) {
  .contact-panel__form select, .contact-panel__form select::picker(select) {
    appearance: base-select;
  }

  .contact-panel__form select::picker-icon {
    display: none;
  }

  .contact-panel__form select::picker(select) {
    border: 0;
    border-radius: 16px;
    margin-top: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(15, 20, 30, 0.2);
  }

  .contact-panel__form select option {
    padding: 11px 16px;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
  }

  .contact-panel__form select option::checkmark {
    display: none;
  }

  .contact-panel__form select option:hover, .contact-panel__form select option:focus, .contact-panel__form select option:checked {
    box-shadow: none;
    background: var(--cp-accent);
    color: #fff;
  }
}

.contact-panel__form input:focus,
.contact-panel__form select:focus,
.contact-panel__form textarea:focus {
  outline: none;
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 4px rgba(250, 139, 23, 0.18);
}

.contact-panel__submit {
  /* style.css stretches every button to width:100% */
  width: auto;
  min-width: 190px;
  margin-top: 6px;
  padding: 19px 42px;
  border: 0;
  border-radius: 999px;
  background: var(--cp-field);
  color: var(--cp-field-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-panel__submit:hover {
  background: var(--cp-accent);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .contact-panel__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .contact-panel__card {
    border-radius: 22px;
    padding: 28px 22px;
  }

  .contact-panel__form input[type="text"],
  .contact-panel__form input[type="email"],
  .contact-panel__form input[type="number"],
  .contact-panel__form input[type="tel"],
  .contact-panel__form select,
  .contact-panel__form textarea {
    padding: 16px 22px;
  }

  .contact-panel__form select {
    padding-right: 46px;
    background-position: right 20px center;
  }

  .contact-panel__submit {
    width: 100%;
    padding: 17px 30px;
  }
}
