.contact-section {
  position: relative;
  scroll-margin-top: 130px;
  padding: 70px 0 110px;
  background:
    radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.16), transparent 32%),
    transparent;
}

.contact-section-container {
  display: flex;
  justify-content: center;
}

.contact-panel {
  position: relative;
  width: min(960px, 100%);
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 30%),
    rgba(8, 8, 8, 0.9);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(212, 175, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(120deg, transparent, rgba(212, 175, 55, 0.12), transparent);
  opacity: 0.8;
}

.contact-panel-header,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-panel-header {
  max-width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

.contact-panel-header span {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: #d4af37;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel-header h2 {
  margin: 0 auto 14px;
  color: #fff6c9;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 0.96;
  text-shadow: 0.04em 0.04em 0 #050505;
  white-space: nowrap;
}

.contact-panel-header p,
.contact-note {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.contact-panel-header p {
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #d4af37;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 15px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.contact-form select option {
  background: #111;
  color: #fff;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(212, 175, 55, 0.86);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.14);
}

.contact-submit {
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f7e08a);
  color: #080808;
  font-weight: 950;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(212, 175, 55, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.contact-submit:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(212, 175, 55, 0.34);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.contact-note {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.contact-note[data-type="loading"] {
  color: #f7e08a;
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.12);
}

.contact-note[data-type="success"] {
  color: #d8ffca;
  border-color: rgba(132, 255, 118, 0.32);
  background: rgba(50, 140, 48, 0.14);
}

.contact-note[data-type="error"] {
  color: #ffd0d0;
  border-color: rgba(255, 92, 92, 0.38);
  background: rgba(145, 24, 24, 0.16);
}

@media (max-width: 760px) {
  .contact-section {
    padding: 48px 0 80px;
  }

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

  .contact-panel {
    border-radius: 22px;
  }

  .contact-panel-header h2 {
    white-space: normal;
  }
}
