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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #1a2b2b;
  background: #f4f7f6;
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: linear-gradient(135deg, #0d6e6e 0%, #095555 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
}
.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header p {
  margin: 0;
  opacity: 0.92;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1.05rem;
}

.page-main {
  flex: 1;
  padding: 0 1.5rem 3rem;
  margin-top: -2rem;
}

.card {
  max-width: 32rem;
  margin-inline: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 110, 110, 0.08);
  padding: 2rem;
  border: 1px solid #d4dede;
}

.card--wide {
  max-width: 56rem;
}

.form-intro {
  margin: 0 0 1.25rem;
  color: #1a2b2b;
  font-size: 0.98rem;
  line-height: 1.55;
}

.example-box {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(13, 110, 110, 0.06);
  border: 1px solid rgba(13, 110, 110, 0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #5c6b6b;
}
.example-box__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #095555;
}
.example-box__list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
}
.example-box__list li {
  margin-bottom: 0.2rem;
}
.example-box__list strong {
  color: #1a2b2b;
  font-weight: 600;
}

.form-footer--card {
  margin-top: 1.25rem;
  text-align: left;
}

.form-section-label {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c6b6b;
}
.form-section-label:first-of-type {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #1a2b2b;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d4dede;
  border-radius: 8px;
  font: inherit;
  color: #1a2b2b;
  background: #fafbfb;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0d6e6e;
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.15);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa8a8;
}
.form-group .hint {
  font-size: 0.8rem;
  color: #5c6b6b;
  margin-top: 0.35rem;
}
.form-group.has-error input {
  border-color: #c0392b;
}
.form-group .field-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:not(:disabled):active {
  transform: scale(0.98);
}

.btn-primary {
  width: 100%;
  background: #0d6e6e;
  color: #fff;
}
.btn-primary:not(:disabled):hover {
  background: #095555;
}

.btn-secondary {
  background: transparent;
  color: #0d6e6e;
  border: 1px solid #0d6e6e;
}
.btn-secondary:hover {
  background: rgba(13, 110, 110, 0.06);
}

.btn-ghost {
  background: transparent;
  color: #5c6b6b;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-ghost:hover {
  color: #1a2b2b;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.alert--success {
  background: rgba(30, 122, 74, 0.12);
  color: rgb(8.6068111455%, 35.0010319917%, 21.2301341589%);
  border: 1px solid rgba(30, 122, 74, 0.25);
}
.alert--error {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.25);
}
.alert[hidden] {
  display: none !important;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #5c6b6b;
}
.form-footer a {
  color: #0d6e6e;
  text-decoration: none;
  font-weight: 600;
}
.form-footer a:hover {
  text-decoration: underline;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-toolbar h2 {
  margin: 0;
  font-size: 1.35rem;
}
.admin-toolbar .meta {
  color: #5c6b6b;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #d4dede;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.leads-table th,
.leads-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #d4dede;
}
.leads-table th {
  background: #eef3f3;
  font-weight: 600;
  white-space: nowrap;
}
.leads-table tr:last-child td {
  border-bottom: none;
}
.leads-table tbody tr:hover {
  background: rgba(13, 110, 110, 0.04);
}
.leads-table .empty-row td {
  text-align: center;
  color: #5c6b6b;
  padding: 2rem;
}

.login-panel[hidden],
.dashboard[hidden] {
  display: none !important;
}
