/* -- VARIABLES -- */
:root {
  --white: #ffffff;
  --blue: #1a56db;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --accent: #0ea5e9;
  --text: #1e293b;
  --muted: #64748b;
  --border: #cbd5e1;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 16px;
}

/* -- Reset -- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  font-family: 'Funnel Display', sans-serif;
  color: var(--text);
  background: #e8f4fd;
}

/* -- Background used by both pages -- */
.background {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(14, 165, 233, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(26, 86, 219, 0.11) 0%, transparent 55%);
}

/* -- Navbar styling is shared with register page -- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  padding: 0 2rem;
}

/* -- Contact section container -- */
.contact-section {
  margin-top: 50px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7vh auto 4rem;
}

/* -- Light card that mirrors the registration layout -- */
.contact-card {
  max-width: 800px;
  /* made wider */
  width: 90%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(30, 80, 180, 0.10);
  overflow: hidden;
  padding: 2.4rem;
}

.contact-card h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.contact-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* -- Form and inner grid -- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1rem;
}

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

.contact-form-grid .column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: 'Funnel Display', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
  resize: none;
  line-height: 1.5;
  min-height: 100px;
  padding-top: 12px;
}

/* position submit on right column */
.contact-form .btn-submit-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b0bec5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

/* -- Submit button -- */
.contact-form button[type="submit"] {
  align-self: flex-end;
  margin-top: 1rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-family: 'Funnel Display', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button[type="submit"]:hover {
  background: var(--blue-light);
}

/* -- Grid layout -- */
/* stacked version already defined above; keep column orientation */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

/* media query can still adjust spacing if needed */
@media (max-width: 768px) {
  .contact-grid {
    gap: 32px;
  }
}

/* -- Responsive tweaks -- */
@media (max-width: 520px) {
  .contact-card {
    padding: 32px 24px;
  }

  .contact-card h2 {
    font-size: 1.2rem;
  }
}