:root{
  --primary:#0f172a; /* dark */
  --accent:#D4AF37; /* gold */
}
body{font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background:#0b1020; color:#e6eef8}
.container{max-width:1100px}
.logo h1{letter-spacing:2px}
.btn-primary{background:var(--primary);color:#fff;padding:.6rem 1rem;border-radius:999px;display:inline-block}
.btn-primary:hover{opacity:.95}
.btn-secondary{background:transparent;border:2px solid #fff;color:#fff;padding:.5rem 1rem;border-radius:999px}
.nav-links a{color:var(--primary)}
.section-white{background:#fff;color:#111}
.section-gray{background:#f7fafc;color:#111}
.pricing-card .badge{background:var(--accent);color:#111;padding:.25rem .5rem;border-radius:6px;font-weight:600}
.image-placeholder img{max-width:100%}
.cookie-banner{z-index:60}
.scroll-to-top{z-index:50}
/* Calendly responsive styles */
.calendly-inline-widget {
  width: 100% !important;
  min-width: 320px;
  height: 700px; /* default desktop height */
  border: 0;
}

/* Make Calendly responsive on tablet */
@media (max-width: 1024px) {
  .calendly-inline-widget {
    height: 600px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .calendly-inline-widget {
    height: 560px;
  }
}

@media (max-width: 480px) {
  .calendly-inline-widget {
    height: 480px;
  }
}

/* Ensure the iframe inside Calendly fills container (if present) */
.calendly-inline-widget iframe {
  width: 100% !important;
  height: 100% !important;
}

/* Map fallback selector: ensure map below Calendly keeps sensible height on mobile */
.map-placeholder iframe,
.map-placeholder div iframe,
div[style*="google.com/maps"] iframe,
div iframe[title*="Google"] {
  min-height: 200px;
}

/* Accessibility: focus outline for interactive elements */
a:focus, button:focus {
  outline: 3px solid rgba(212,175,55,0.4);
  outline-offset: 2px;
}

/* Contact section layout fix: reorder right column so contact-info appears below the map on desktop */
@media (min-width: 768px) {
  /* Target the two-column grid inside #contact */
  #contact .grid > div:nth-child(2) {
    display: grid;
    grid-template-rows: auto auto 1fr; /* calendly, map, contact-info */
    gap: 18px;
  }

  /* First child in the right column is the contact-info in current markup -> force it to the last row visually */
  #contact .grid > div:nth-child(2) > .contact-info {
    grid-row: 3;
    background: #ffffff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    color: #111;
  }

  /* Calendly widget stays on top */
  #contact .grid > div:nth-child(2) > #calendly {
    grid-row: 1;
  }

  /* The inline map container is the third child in the right column in current markup - push it to middle */
  #contact .grid > div:nth-child(2) > div[style*="height:260px"] {
    grid-row: 2;
  }

  /* Make sure the small map link sits just under the map */
  #contact .grid > div:nth-child(2) > p.text-sm {
    margin-top: 6px;
    grid-row: 2;
    align-self: start;
  }
}

/* Responsive: revert to stacked flow on small screens */
@media (max-width: 767px) {
  #contact .grid > div:nth-child(2) {
    display: block;
  }
  #contact .grid > div:nth-child(2) > .contact-info {
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: inherit;
  }
}

/* Form validation styles */
.field-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.border-red-500 {
  border-color: #ef4444 !important;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #ef4444;
  background-color: #fef2f2;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Form submission feedback */
.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}
