
/* ══════════════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════════════ */
.contact-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.contact-section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #64748b;
}

.contact-alert {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}

.contact-alert--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.contact-alert--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.contact-alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.contact-required {
  color: #ef4444;
}

.contact-optional {
  font-weight: 500;
  color: #94a3b8;
  font-size: 12px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.contact-field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
}

.contact-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-consent a {
  color: #667eea;
  font-weight: 600;
}

.contact-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.vet-landing .contact-submit {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.35);
}

.practitioner-landing .contact-submit {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.35);
}

.contact-form.is-sending .contact-form-fields,
.contact-form.is-sending .contact-honeypot,
.contact-form.is-sending .contact-consent,
.contact-form.is-sending .contact-submit {
  opacity: 0.45;
  pointer-events: none;
}

.contact-progress {
  margin-bottom: 20px;
}

.contact-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.contact-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #0d9488);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.contact-progress-label {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.contact-feedback {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}

.contact-feedback.is-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.contact-feedback.is-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.contact-antispam-note {
  max-width: 720px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .contact-form {
    padding: 22px 18px;
  }

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

.hero-split {
  text-align: left;
  padding: 100px 20px 80px;
}

.hero-split .container.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-split .logo {
  margin: 0 0 24px;
}

.hero-split .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-split .hero-guarantees {
  justify-content: flex-start;
}

.cta-buttons--left {
  justify-content: flex-start;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

/* Showcase composition */
.device-showcase {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 400px;
}

.device-showcase-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.35) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.device-showcase--vet .device-showcase-glow {
  background: radial-gradient(ellipse at center, rgba(13, 148, 136, 0.35) 0%, transparent 70%);
}

.device-showcase--pract .device-showcase-glow {
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
}

.device-mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-mockup-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.device-showcase .device-mockup--back {
  position: absolute;
  right: -8%;
  top: 8%;
  transform: rotate(8deg) scale(0.92);
  opacity: 0.95;
  z-index: 1;
}

.device-showcase .device-mockup--front {
  position: relative;
  z-index: 3;
  transform: rotate(-4deg);
  animation: device-float 5s ease-in-out infinite;
}

.device-showcase .device-mockup--back {
  animation: device-float-back 6s ease-in-out infinite;
}

@keyframes device-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-12px); }
}

@keyframes device-float-back {
  0%, 100% { transform: rotate(8deg) scale(0.92) translateY(0); }
  50% { transform: rotate(8deg) scale(0.92) translateY(-8px); }
}

/* iPhone frame */
.device-mockup--iphone .device-frame {
  width: 220px;
  background: linear-gradient(145deg, #2a2a2e 0%, #0f0f12 100%);
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #3a3a40,
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.device-island {
  width: 72px;
  height: 22px;
  background: #0a0a0c;
  border-radius: 20px;
  margin: 4px auto 8px;
}

.device-home-bar {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  margin: 8px auto 4px;
}

/* iPad frame */
.device-mockup--ipad .device-frame {
  width: 300px;
  background: linear-gradient(145deg, #2a2a2e 0%, #0f0f12 100%);
  border-radius: 22px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #3a3a40,
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-camera {
  width: 8px;
  height: 8px;
  background: #1a1a1e;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: inset 0 0 0 1px #444;
}

.device-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 9 / 19.5;
}

.device-mockup--ipad .device-screen {
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

/* App UI inside devices */
.app-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 9px;
  line-height: 1.35;
  color: #1a1a2e;
  background: #f4f7fb;
}

.device-mockup--ipad .app-ui {
  font-size: 10px;
}

.app-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px 2px;
  font-size: 8px;
  font-weight: 700;
  color: #1a1a2e;
}

.app-statusbar--dark {
  color: #fff;
}

.app-header {
  padding: 10px 12px 12px;
  color: #fff;
}

.app-header--green { background: linear-gradient(135deg, #2A6B40, #1C4A2E); }
.app-header--teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.app-header--purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.app-header--vet { background: linear-gradient(135deg, #0e7490, #155e75); }
.app-header--amber { background: linear-gradient(135deg, #d97706, #b45309); }

.app-header-label {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 2px;
}

.app-header-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.device-mockup--ipad .app-header-title {
  font-size: 15px;
}

.app-header-sub {
  font-size: 8px;
  opacity: 0.9;
  margin-top: 2px;
}

.app-body {
  flex: 1;
  padding: 8px;
  overflow: hidden;
}

.app-body--compact { padding: 6px 8px; }
.app-body--timeline { padding-top: 4px; }

.app-horse-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.app-horse-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f5ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.app-horse-info { flex: 1; min-width: 0; }
.app-horse-name { font-weight: 800; font-size: 10px; }
.app-horse-meta { font-size: 7px; color: #64748b; }

.app-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-top: 4px;
  overflow: hidden;
}

.app-progress span {
  display: block;
  height: 100%;
  background: #10b981;
  border-radius: 4px;
}

.app-progress--warn { background: #f59e0b !important; }

.app-badge {
  font-size: 7px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.app-badge--ok { background: #d1fae5; color: #065f46; }
.app-badge--warn { background: #fef3c7; color: #92400e; }

.app-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 10px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}

.app-tab { opacity: 0.35; }
.app-tab--active { opacity: 1; }

.app-timeline-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

.app-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  margin-top: 4px;
  flex-shrink: 0;
}

.app-timeline-dot--green { background: #10b981; }
.app-timeline-title { font-weight: 700; font-size: 9px; }
.app-timeline-meta { font-size: 7px; color: #64748b; }

.app-export-btn {
  margin-top: 8px;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 700;
  font-size: 8px;
  padding: 8px;
  border-radius: 8px;
}

.app-export-btn--vet { background: linear-gradient(135deg, #0e7490, #155e75); }
.app-export-btn--pract { background: linear-gradient(135deg, #d97706, #b45309); }

.app-map-placeholder {
  height: 72px;
  margin: 0 8px;
  border-radius: 10px;
  background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
  position: relative;
  overflow: hidden;
}

.app-map-route {
  position: absolute;
  inset: 20% 15%;
  border: 2px dashed rgba(14, 116, 144, 0.5);
  border-radius: 40% 60% 50% 40%;
}

.app-map-pin {
  position: absolute;
  font-size: 12px;
}

.app-map-pin--1 { top: 18%; left: 22%; }
.app-map-pin--2 { top: 42%; left: 55%; }
.app-map-pin--3 { top: 28%; right: 18%; }

.app-visit-card {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 5px;
}

.app-visit-card--next {
  border-left: 3px solid #0e7490;
}

.app-visit-time {
  font-weight: 800;
  font-size: 9px;
  color: #0e7490;
  min-width: 28px;
}

.app-visit-name { font-weight: 700; font-size: 8px; }
.app-visit-meta { font-size: 7px; color: #64748b; }

.app-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.app-stat {
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  font-size: 7px;
}

.app-stat span { font-size: 14px; display: block; }
.app-stat strong { display: block; font-size: 8px; margin-top: 2px; }

.app-note-card {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 7px;
  color: #475569;
}

.app-note-card--accent {
  border-left: 3px solid #0e7490;
}

.app-note-label {
  font-weight: 800;
  font-size: 7px;
  color: #0f172a;
  margin-bottom: 3px;
}

.app-hoof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.app-hoof {
  background: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-weight: 800;
  font-size: 10px;
  border: 2px solid #e2e8f0;
}

.app-hoof--done {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.app-hoof--active {
  border-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}

.app-agenda-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
}

.app-agenda-item--alert {
  border-left: 3px solid #ef4444;
}

.app-agenda-date {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 800;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-agenda-title { font-weight: 700; font-size: 9px; }
.app-agenda-meta { font-size: 7px; color: #64748b; }

/* App showcase section */
.app-showcase {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.app-showcase .section-subtitle {
  text-align: center;
  margin-bottom: 48px;
}

.device-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
}

.device-row .device-mockup-label {
  color: #64748b;
}

.device-row .device-mockup--raised {
  transform: translateY(-16px);
}

.device-row .device-mockup--iphone .device-frame {
  width: 200px;
}

.device-row .device-mockup--ipad .device-frame {
  width: 280px;
}

/* Testimonials */
.testimonials {
  padding: 80px 20px;
  background: #fff;
}

.testimonials .section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #64748b;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card--vet {
  border-top: 4px solid #0d9488;
}

.testimonial-card--owner {
  border-top: 4px solid #667eea;
}

.testimonial-card--practitioner {
  border-top: 4px solid #f59e0b;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card--vet .testimonial-avatar {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.testimonial-card--practitioner .testimonial-avatar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.testimonial-name {
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  display: block;
}

.testimonial-role {
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
}

.testimonial-context {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Responsive hero split */
@media (max-width: 960px) {
  .hero-split .container.hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-width: 0;
    width: 100%;
  }

  .hero-split .hero-content,
  .hero-split .hero-visual {
    min-width: 0;
    max-width: 100%;
  }

  .hero-split .logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-split .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-split .hero-guarantees,
  .cta-buttons--left {
    justify-content: center;
  }

  .hero-visual {
    min-height: 360px;
    margin-top: 20px;
    overflow: hidden;
    max-width: 100%;
  }

  .device-showcase {
    max-width: 100%;
  }

  .device-showcase .device-mockup--back {
    right: 0;
    top: 12%;
  }
}

@media (max-width: 480px) {
  .vet-landing .cta-buttons,
  .practitioner-landing .cta-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .vet-landing .cta-buttons .btn,
  .practitioner-landing .cta-buttons .btn {
    white-space: normal;
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.35;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .device-showcase .device-mockup--iphone .device-frame {
    width: 190px;
  }

  .device-showcase .device-mockup--ipad .device-frame {
    width: 240px;
  }

  .device-row {
    gap: 20px;
  }

  .device-row .device-mockup--raised {
    transform: none;
  }
}
