/* ==========================================================================
   Contact Page Styles (contact.css)
   ========================================================================== */

.page-template-page-contact .entry .entry-title {
  text-align: center;
  margin-bottom: 12px;
}

.page-template-page-contact .contact-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-top: 4px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.page-template-page-contact .contact-card-head {
  padding: 14px 16px 0 16px;
  text-align: center;
}

.page-template-page-contact .contact-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.page-template-page-contact .contact-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.page-template-page-contact .contact-form {
  padding: 12px 16px 18px;
}

.page-template-page-contact .f-row {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.page-template-page-contact .f-row label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.page-template-page-contact .f-row input,
.page-template-page-contact .f-row textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.page-template-page-contact .f-row textarea {
  resize: vertical;
}

.page-template-page-contact .f-row input:focus,
.page-template-page-contact .f-row textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 60%, #000 0%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, #fff);
}

.page-template-page-contact .contact-alert {
  max-width: 720px;
  margin: 0 auto 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid transparent;
}

.page-template-page-contact .contact-alert.success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.page-template-page-contact .contact-alert.error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}

.page-template-page-contact .f-actions {
  margin-top: 12px;
}

.page-template-page-contact .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .15s ease, filter .15s ease;
}

.page-template-page-contact .btn-primary:hover {
  filter: brightness(.98);
}

.page-template-page-contact .btn-primary:active {
  transform: translateY(1px);
}

.page-template-page-contact .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .page-template-page-contact .contact-form {
    padding: 10px 12px 16px;
  }

  .page-template-page-contact .contact-title {
    font-size: 18px;
  }
}
