.contact-page {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 121, 107, 0.85)),
    url(pics/cover2.jpg) center / cover no-repeat scroll;
  padding: calc(var(--header-height, 72px) + clamp(24px, 5vw, 48px)) clamp(16px, 4vw, 24px) clamp(48px, 8vw, 80px);
}

.contact-page-inner {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.contact-page .class-title {
  text-align: center;
  color: white;
  margin-bottom: clamp(24px, 5vw, 40px);
}

.contact-page .class-title h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 6vw, 2.8rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-page .class-title h2 {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.5;
  padding: 0 8px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.97);
  padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 32px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 6px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form .form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-family: 'Inter', Arial, sans-serif;
  color: #2d3436;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: #009688;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form .submit-btn {
  width: 100%;
  background: #f7980a;
  border: none;
  color: #2d3436;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
  min-height: 48px;
}

.contact-form .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247, 152, 10, 0.4);
}

.contact-info-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 32px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-align: center;
}

.contact-info-bar a {
  color: white;
  text-decoration: none;
  word-break: break-all;
}

.contact-info-bar a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 480px) {
  .contact-info-bar {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

@media screen and (max-width: 380px) {
  .contact-form .form-control {
    padding: 12px 14px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .contact-form .submit-btn:hover {
    transform: none;
  }
}

@supports (padding: max(0px)) {
  .contact-page {
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }
}
