/* ============================================================
   Tenali Double Horse — Appointment Booking Page
   Theme matched to tenalidoublehorse.com
   ─────────────────────────────────────────────
   Primary Red:    #D70004 (CTA buttons)
   Dark Red:       #BD1F1E (accents)
   Hover Red:      #E85052
   Navy Text:      #050B26 (headings, dark text)
   Warm Beige:     #F5EDE9 / #EBE0DE (section backgrounds)
   White:          #FFFFFF (main background)
   Body Font:      Lato, sans-serif
   Heading Font:   Roboto, sans-serif
   Corners:        0px (buttons/inputs) — 10px (cards)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red-primary:  #D70004;
  --red-dark:     #BD1F1E;
  --red-hover:    #E85052;
  --red-light:    #F66B6B;
  --navy:         #050B26;
  --navy-75:      rgba(5,11,38,.75);
  --beige:        #F5EDE9;
  --beige-dark:   #EBE0DE;
  --white:        #FFFFFF;
  --off-white:    #F7F7F7;
  --text-dark:    #050B26;
  --text-body:    rgba(5,11,38,.75);
  --text-light:   #888888;
  --border:       #DADADA;
  --shadow-sm:    0 0 10px rgba(214,214,214,.39);
  --shadow-card:  0 4px 24px rgba(5,11,38,.08);
  --transition:   0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  letter-spacing: 0.06rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 8px 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  font-family: 'Lato', sans-serif;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  padding: 0 2rem;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 86%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: var(--white);
  border-radius: 10px;
  position: relative;
  margin-top: -8px;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-company {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--red-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--navy-75);
}

.header-contact a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

.header-contact a:hover {
  color: var(--red-hover);
}

/* ---------- Hero / Banner ---------- */
.hero {
  background: var(--navy);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial accent like TDH site */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(215,0,4,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}

.hero h1 span {
  color: var(--red-primary);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

/* Red accent strip (matches TDH brand line) */
.hero-accent {
  height: 4px;
  background: var(--red-primary);
}

/* ---------- Form Section ---------- */
.form-section {
  padding: 4.5rem 2rem 5rem;
  background: var(--beige);
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 3rem 2.5rem 2.5rem;
  border: 1px solid var(--border);
}

.form-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-card-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}

.form-card-header p {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.2px;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
}

.form-group label .required {
  color: var(--red-primary);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  letter-spacing: 0.04rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--red-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 2px rgba(215,0,4,.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23050B26' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

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

/* Honeypot — hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Submit button — matches TDH CTA style */
.form-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--red-primary);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 3rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 16px rgba(189,31,30,.25);
}

.btn-submit:active {
  background: #A01818;
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Confirmation / Error Messages ---------- */
.msg-box {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 0;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

.msg-success {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #2E7D32;
}

.msg-error {
  background: #FDECEA;
  border: 1px solid #F5C6CB;
  color: #B71C1C;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
  font-family: 'Lato', sans-serif;
}

.footer-company {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-address {
  margin-bottom: 0.5rem;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-inner {
    max-width: 95%;
    height: 68px;
    padding: 0 16px;
    margin-top: -4px;
  }

  .logo-img {
    height: 42px;
  }

  .logo-company {
    font-size: 1rem;
  }

  .logo-tagline {
    font-size: 0.62rem;
  }

  .header-contact {
    display: none;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .form-section {
    padding: 2.5rem 1rem 3rem;
  }

  .form-card {
    padding: 2rem 1.5rem 1.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 0.5rem;
  }

  .announcement-bar {
    font-size: 0.75rem;
    padding: 6px 1rem;
  }

  .header-inner {
    max-width: 98%;
    border-radius: 8px;
  }

  .logo-img {
    height: 36px;
  }

  .logo-company {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .form-card {
    padding: 1.5rem 1.2rem 1.5rem;
    border-radius: 8px;
  }

  .form-card-header h2 {
    font-size: 1.25rem;
  }
}
