/* Bluegrass Restoration Group — GBP + Social intake form styles */

:root {
  --forest: #1a3c2e;
  --forest-deep: #0f241c;
  --moss: #2d6a4f;
  --amber: #d4a017;
  --amber-soft: #e8c547;
  --cream-mist: rgba(245, 240, 230, 0.06);
  --surface: rgba(255, 252, 247, 0.94);
  --surface-border: rgba(26, 60, 46, 0.12);
  --ink: #1c1a17;
  --ink-muted: #5c574e;
  --danger: #b42318;
  --success: #1b7a45;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(15, 36, 28, 0.18);
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--forest-deep);
  line-height: 1.55;
}

/* Atmospheric layered background */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(212, 160, 23, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(45, 106, 79, 0.45), transparent 50%),
    linear-gradient(165deg, #143328 0%, #0f241c 40%, #1a2e24 70%, #0c1c16 100%);
}

.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.container {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.75rem 0 0.5rem;
  animation: fadeDown 0.6s ease both;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(232, 197, 71, 0.28);
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #f7f1e4;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  margin: 0.35rem 0 0;
  color: var(--amber-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.agency-tag {
  margin: 0;
  color: rgba(247, 241, 228, 0.65);
  font-size: 0.85rem;
}

/* Intro */
.intro {
  padding: 2rem 0 1.25rem;
  animation: fadeUp 0.65s ease 0.1s both;
}

.intro h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #f7f1e4;
}

.intro p {
  margin: 0 0 0.85rem;
  color: rgba(247, 241, 228, 0.82);
  max-width: 62ch;
}

.security-note {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--amber);
  background: rgba(212, 160, 23, 0.12);
  color: #f7f1e4 !important;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
}

.security-note strong {
  color: var(--amber-soft);
}

/* Progress */
.progress-wrap {
  height: 4px;
  background: rgba(247, 241, 228, 0.12);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--moss), var(--amber));
  border-radius: inherit;
  transition: width 0.35s ease;
}

/* Form sections */
.form-section {
  margin: 0 0 1.35rem;
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: fadeUp 0.55s ease both;
}

.form-section:nth-of-type(2) { animation-delay: 0.05s; }
.form-section:nth-of-type(3) { animation-delay: 0.08s; }

.form-section legend {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
}

.section-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(212, 160, 23, 0.15);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.section-hint {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 1rem;
}

.field label,
.label-text {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(26, 60, 46, 0.2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
}

textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.grid-2,
.grid-3,
.access-grid {
  display: grid;
  gap: 0.85rem 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.access-grid {
  grid-template-columns: 1fr;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.choice-row.wrap {
  gap: 0.5rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(26, 60, 46, 0.16);
  border-radius: 8px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.choice:has(input:checked) {
  border-color: var(--moss);
  background: rgba(45, 106, 79, 0.08);
}

.choice input {
  accent-color: var(--moss);
}

.mt-sm {
  margin-top: 0.5rem;
}

/* Services priority rows */
.services-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) auto 1.2fr;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(26, 60, 46, 0.04);
  border: 1px solid rgba(26, 60, 46, 0.08);
}

.service-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}

.choice-row.compact .choice {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.confirm-check input {
  margin-top: 0.25rem;
  accent-color: var(--moss);
}

/* Actions */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin: 1.5rem 0 1rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--moss), var(--forest));
  color: #f7f1e4;
  box-shadow: 0 8px 24px rgba(26, 60, 46, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #347a5a, var(--moss));
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  color: #f7f1e4;
  border: 1px solid rgba(247, 241, 228, 0.35);
}

.btn-ghost:hover {
  background: rgba(247, 241, 228, 0.08);
}

.form-message {
  margin-bottom: 2rem;
  padding: 0.95rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
}

.form-message.success {
  background: rgba(27, 122, 69, 0.15);
  border: 1px solid rgba(27, 122, 69, 0.4);
  color: #d4f5e4;
}

.form-message.error {
  background: rgba(180, 35, 24, 0.18);
  border: 1px solid rgba(180, 35, 24, 0.45);
  color: #ffd4d0;
}

.form-message.info {
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: #f7f1e4;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--danger);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  color: rgba(247, 241, 228, 0.45);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
