/* calmaker – minimal mobile-first styles */

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: #f5f5f4;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}

/* Brand */
.brand {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #a3a3a3;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.intro {
  color: #737373;
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form */
.field {
  margin-bottom: 1.35rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #525252;
  letter-spacing: 0.01em;
}

.optional {
  font-weight: 400;
  color: #a3a3a3;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #a3a3a3;
  box-shadow: 0 0 0 3px rgba(163, 163, 163, 0.15);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fafafa;
  background: #171717;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-appearance: none;
}

button[type="submit"]:hover {
  background: #333;
}

button[type="submit"]:active {
  transform: scale(0.985);
}

button[type="submit"]:disabled {
  background: #a3a3a3;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot – must be invisible */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* States */
.hidden {
  display: none;
}

.success p {
  padding: 1.1rem 1.25rem;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.error p {
  padding: 1.1rem 1.25rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
}

/* Fallback email */
.fallback {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #a3a3a3;
}

.fallback a {
  color: #737373;
  text-decoration: none;
  border-bottom: 1px solid #d4d4d4;
  transition: border-color 0.15s;
}

.fallback a:hover {
  border-color: #737373;
}

/* Validation – only show after user has attempted to submit */
form.submitted input:invalid,
form.submitted textarea:invalid {
  border-color: #fca5a5;
}

form.submitted input:invalid:focus,
form.submitted textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.2);
}
