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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.badge-tag {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 1.75rem auto;
  padding: 0 1rem;
}

.content-intro {
  margin-bottom: 1.25rem;
  text-align: center;
}

.content-intro h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.content-intro p {
  font-size: 0.925rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   Form Card Container
   ========================================================================== */
.form-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  transition: box-shadow 0.2s ease;
}

/* Loading Placeholder / Skeleton */
.form-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  gap: 1rem;
  color: #64748b;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: #ffffff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.form-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Zoho Form Embed Styling */
.zoho-form-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.zoho-form-wrapper iframe {
  width: 100% !important;
  max-width: 100%;
  display: block;
  border: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.825rem;
  color: #64748b;
}

.site-footer a {
  color: #2563eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 640px) {
  .main-wrapper {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .content-intro h1 {
    font-size: 1.25rem;
  }

  .form-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  .header-container {
    padding: 0.75rem 1rem;
  }
}
