* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Poppins", sans-serif;
  color: #ffffff;
  background: linear-gradient(180deg, #6b4c9a 0%, #07365c 57.4%, #092943 96.41%);
  overflow-x: hidden;
}

.rebrand-banner {
  width: 100%;
  background: linear-gradient(90deg, #603f83 0%, #0e436f 100%);
  color: #ffffff;
  padding: 12px 24px;
  text-align: center;
}

.rebrand-banner-text {
  margin: 0 auto;
  max-width: 960px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 36px;
}

.back-link:hover {
  opacity: 1;
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-header p {
  margin: 14px 0 0;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form-card {
  width: min(100%, 887px);
  border-radius: 16px;
  padding: 40px 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
}

.contact-alerts {
  width: min(100%, 887px);
  margin-bottom: 16px;
}

.contact-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.contact-alert-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.65);
}

.contact-alert-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.65);
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.input-shell {
  position: relative;
}

.icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.icon svg {
  width: 100%;
  height: 100%;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 0.8px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
}

input {
  height: 50px;
  padding: 12px 16px 12px 48px;
}

textarea {
  padding: 12px 16px;
  min-height: 146px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.field-full {
  margin-top: 24px;
}

.send-button {
  margin-top: 36px;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 10px;
  background: #6b4c9a;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
}

.send-button:hover {
  background: #7d5ab3;
}

.contact-email {
  margin-top: 32px;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.contact-email a {
  color: #ffffff;
}

@media (max-width: 900px) {
  .row {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding: 32px 16px 56px;
  }

  .contact-form-card {
    padding: 28px 18px 22px;
  }

  .send-button {
    font-size: 18px;
    height: 52px;
  }

  .rebrand-banner {
    padding: 10px 16px;
  }

  .rebrand-banner-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 30px;
  }

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

  .send-button {
    font-size: 16px;
  }
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin: 8px 0 16px;
}
