.page-content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.overlay_contact {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 999;
  pointer-events: none;
  transform: translateY(100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-logo {
  width: clamp(80px, 12vw, 160px);
  height: auto;
  color: var(--color-logo-contact);
}

.overlay_contact.active {
  animation: contactReveal 2.5s ease-in-out forwards;
}

.overlay_contact.closing {
  animation: contactClose 2s ease-in-out forwards;
}

@keyframes contactClose {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(0%); }
}

@keyframes contactReveal {
  0%   { transform: translateY(100%); }
  25%  { transform: translateY(0%); }
  65%  { transform: translateY(0%); }
  100% { transform: translateY(-100%); }
}

.contact-section {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 120px 20px 60px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-section.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-inner h1 {
  font-size: clamp(48px, 8vw, 120px);
  margin: 0 0 16px;
  line-height: 0.95;
}

.contact-inner p {
  font-size: clamp(18px, 2.5vw, 20px);
  margin-bottom: 40px;
  color: #666;
  max-width: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  background: #fff;
  color: #111;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

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

.contact-form button {
  align-self: flex-start;
  padding: 14px 28px;
  border: none;
  border-radius: 9999px;
  background: #111;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 768px) {
  .header { padding: 20px; }
  .contact-section { padding: 100px 20px 40px; }
  .contact-inner { max-width: 100%; }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 15px 18px;
    border-radius: 10px;
  }

  .contact-form button {
    width: 100%;
    align-self: stretch;
  }
}


.overlay_contact.uncovering {
  animation: contactUncover 1.1s ease-in-out forwards;
}

@keyframes contactUncover {
  0%   { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}
