:root {
  --ink: #111111;
  --white: #ffffff;
  --accent: #111111;
  --field-border: #d8d8d8;
  --field-focus: #111111;
  --radius: 14px;
  font-family: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /*background: var(--white);*/
  background: #fab0fb;
  color: var(--ink);
  min-height: 100vh;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 100px;
}

.logo {
  width: clamp(150px, 15vw, 460px);
  height: auto;
  display: block;
}

.mail-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mail-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

.mail-btn:active {
  transform: translateX(-50%);
}

.mail-icon {
  width: 26px;
  height: 26px;
}

/* Overlay + Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  padding: 24px 26px 16px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition: transform 0.2s ease;
  margin: auto;
}

.overlay.hidden .modal {
  transform: translateY(16px);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.close-btn:hover {
  color: var(--ink);
}

.modal h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.modal-sub {
  margin: 0 0 12px;
  color: #666;
  font-size: 0.88rem;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  padding: 8px 12px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--field-focus);
}

.submit-btn {
  width: 100%;
  padding: 11px;
  margin-top: 2px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.submit-btn:hover {
  opacity: 0.88;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 6px 0 0;
  font-size: 0.9rem;
  min-height: 0;
}

.form-status.success { color: #1a7f37; }
.form-status.error { color: #c0392b; }

.verify-timer {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

.link-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  color: #111;
  text-decoration: underline;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
}

.link-btn.hidden {
  display: none;
}