/* =============================================================
   Contact page styles
   ============================================================= */

.contact-section {
  max-width: 520px;
}

/* Contact info */
.contact-info {
  margin-bottom: 2.5rem;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.contact-email {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #c0522e;
  text-decoration: none;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form__row {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .contact-form__row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.contact-form__row .form-field {
  flex: 1;
}

/* Floating label fields */
.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: #111;
  padding: 1.4rem 0 0.4rem;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.form-field textarea {
  resize: none;
  height: 120px;
}

.form-field label {
  position: absolute;
  top: 0.9rem;
  left: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

/* Float label up when filled or focused */
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:not(:placeholder-shown) ~ label,
.form-field input:focus ~ label,
.form-field textarea:focus ~ label {
  top: 0;
  font-size: 0.62rem;
  color: #aaa;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #111;
}

.form-field input:focus ~ label,
.form-field textarea:focus ~ label {
  color: #c0522e;
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #c0522e;
}

/* Submit button */
.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid #111;
  border-radius: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  padding: 0.7rem 1.6rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
  background: #111;
  color: #fff;
}

/* Success page */
.contact-success {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a9e3a;
}
