/* ============================================
   DIVINE BEHAVIORAL SOLUTIONS - MAIN STYLESHEET
   Colors extracted from logo: Teal + Charcoal
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --teal: #4a9a9a;
  --teal-dark: #3a7a7a;
  --teal-light: #6ab8b8;
  --teal-glow: rgba(74, 154, 154, 0.15);
  --charcoal: #3a3a3c;
  --charcoal-light: #525254;
  --slate: #6e6e73;
  --silver: #a1a1a6;
  --cloud: #f0f0f2;
  --snow: #f8f8fa;
  --white: #ffffff;
  --black: #1d1d1f;
  --success: #34c759;
  --error: #ff3b30;
  --warning: #ff9500;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
  --shadow-teal: 0 8px 30px rgba(74, 154, 154, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--slate); font-size: 1.05rem; }

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.teal-text { color: var(--teal); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 148px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.nav-logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

.nav-logo-tagline {
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--teal-glow);
  color: var(--teal-dark);
}

.nav-links .btn-apply {
  background: var(--teal);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 600;
}

.nav-links .btn-apply:hover {
  background: var(--teal-dark);
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--snow) 0%, var(--white) 40%, var(--teal-glow) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 154, 154, 0.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 154, 154, 0.06) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 148px;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(74, 154, 154, 0.1);
  border: 1px solid rgba(74, 154, 154, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

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

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .highlight {
  color: var(--teal);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(74, 154, 154, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(74, 154, 154, 0.3);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--cloud);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-glow);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.4s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.hero-card-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-brain-icon {
  width: 160px;
  height: 160px;
  position: relative;
  z-index: 1;
}

.hero-brain-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}

.hero-card-body {
  padding: 28px 32px;
}

.hero-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.hero-card-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cloud);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Floating elements */
.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 6s ease-in-out infinite;
  z-index: 3;
  border: 1px solid rgba(0,0,0,0.04);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-card.card-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 60px;
  left: -30px;
  animation-delay: 2s;
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-icon.teal { background: rgba(74, 154, 154, 0.12); color: var(--teal); }
.floating-icon.green { background: rgba(52, 199, 89, 0.12); color: var(--success); }

.floating-card .fc-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.floating-card .fc-sub {
  font-size: 0.72rem;
  color: var(--silver);
}

/* --- ABOUT SECTION --- */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrapper .about-visual {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 50%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-visual-content {
  text-align: center;
  color: white;
  z-index: 1;
}

.about-visual-content svg {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.about-visual-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  background: var(--teal-glow);
  border: 2px solid rgba(74, 154, 154, 0.15);
  z-index: -1;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--snow);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.value-item:hover {
  background: var(--teal-glow);
  transform: translateY(-2px);
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.value-item h4 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.value-item p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- SERVICES SECTION --- */
.services {
  padding: 120px 0;
  background: var(--snow);
  position: relative;
}

.services-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.services-header h2 {
  margin-bottom: 16px;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--teal-glow);
  color: var(--teal);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(74, 154, 154, 0.1);
  animation: float 10s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* --- FOOTER --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 130px;
  margin-bottom: 16px;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.footer-contact-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-item a {
  color: var(--teal-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* --- APPLICATION PAGE --- */
.page-header {
  padding: 212px 0 60px;
  background: linear-gradient(160deg, var(--snow) 0%, var(--white) 40%, var(--teal-glow) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Form styles */
.form-section {
  padding: 80px 0 120px;
  background: var(--white);
}

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

.form-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  margin-top: 48px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cloud);
}

.form-group-title:first-child {
  margin-top: 0;
}

.form-group-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.form-group-title h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

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

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

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-field label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 18px;
  border: 2px solid var(--cloud);
  border-radius: var(--radius-sm);
  background: var(--snow);
  color: var(--charcoal);
  transition: var(--transition);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74, 154, 154, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.radio-group {
  display: flex;
  gap: 20px;
  padding-top: 6px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.radio-option span {
  font-size: 0.92rem;
  color: var(--charcoal);
}

/* Employment history repeater */
.employment-entry {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--cloud);
}

.employment-entry h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--teal);
}

/* Reference entry */
.reference-entry {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--cloud);
}

.reference-entry h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--teal);
}

/* Consent */
.consent-box {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
  border: 1px solid var(--cloud);
}

.consent-box p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.consent-check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.consent-check label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Submit */
.form-submit {
  margin-top: 40px;
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(74, 154, 154, 0.3);
}

.btn-submit:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 80px 40px;
  background: var(--snow);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(52, 199, 89, 0.2);
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

.form-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--success);
}

.form-success h2 {
  color: var(--charcoal);
  margin-bottom: 12px;
}

.form-success p {
  max-width: 460px;
  margin: 0 auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 120px 0 60px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card { max-width: 380px; margin: 0 auto; }

  .floating-card.card-1 { right: 0; top: 10px; }
  .floating-card.card-2 { left: 0; bottom: 40px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 148px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .floating-card { display: none; }
}

/* --- LOADING / SPINNER --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease-out 1s both;
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--silver);
  border-radius: 13px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--teal);
  border-radius: 4px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- SIGNATURE PAD --- */
.sig-pad-wrapper {
  background: var(--snow);
  border: 2px solid var(--cloud);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 8px;
}

.sig-pad-wrapper label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.sig-pad-wrapper label .required {
  color: var(--error);
}

.sig-canvas-container {
  position: relative;
  width: 100%;
  height: 150px;
  border: 2px solid var(--cloud);
  border-radius: var(--radius-sm);
  background: white;
  cursor: crosshair;
  touch-action: none;
}

.sig-canvas-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

.sig-pad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.sig-pad-footer p {
  font-size: 0.78rem;
  color: var(--silver);
  font-style: italic;
}

.sig-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--cloud);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: var(--transition);
}

.sig-clear-btn:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(255, 59, 48, 0.05);
}

@media (max-width: 768px) {
  .sig-canvas-container {
    height: 120px;
  }
}

/* --- INITIALS FIELD --- */
.initials-field {
  margin-top: 12px;
  padding-top: 8px;
}

.initials-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
}

.initials-field input:focus {
  border-color: var(--teal) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 154, 154, 0.15);
}
