:root {
  --brand-900: #0f172a;
  --brand-800: #1e293b;
  --brand-700: #1e3a5f;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;
  --surface: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

body.chamado-page {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--brand-900);
  background: var(--brand-900);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('/images/banner.webp') center/cover no-repeat;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.85) 45%, rgba(37, 99, 235, 0.35) 100%);
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-icon {
  height: 2.5rem;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header__brand-name span {
  color: var(--brand-600);
  font-weight: 700;
}

@media (max-width: 380px) {
  .site-header__brand-name {
    font-size: 0.95rem;
  }
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-ghost {
  color: var(--brand-700);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--brand-50);
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--brand-800);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  width: 100%;
  border-radius: 0.625rem;
}

.page-main {
  flex: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.page-hero {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.trust-chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 300px;
  }
}

.form-card {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.form-card__body {
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 640px) {
  .form-card__body {
    padding: 2rem 2.25rem 2.5rem;
  }
}

.form-section {
  margin-bottom: 2rem;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-section__num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-800);
  margin: 0;
}

.form-section__sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.15rem 0 0;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-800);
  margin-bottom: 0.35rem;
}

.form-field label .req {
  color: #dc2626;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #f8fafc;
  color: var(--brand-900);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.35rem;
}

.form-input.border-red-500,
.form-select.border-red-500,
.form-textarea.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.file-drop {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.file-drop.border-red-500 {
  border-color: #ef4444;
  background: #fef2f2;
}

.file-drop input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-drop__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  color: var(--brand-500);
}

.file-drop__hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.file-drop__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-700);
  margin-top: 0.5rem;
  word-break: break-all;
}

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}

.progress-bar {
  height: 3px;
  background: var(--brand-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: none;
}

.progress-bar.is-visible {
  display: block;
}

.progress-bar__fill {
  height: 100%;
  width: 100%;
  background: var(--brand-600);
  animation: pulse-bar 1.2s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.side-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.side-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-800);
}

.side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-card li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.side-card li svg {
  flex-shrink: 0;
  color: var(--brand-600);
  margin-top: 0.1rem;
}

.side-card__contact {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.site-footer {
  background: var(--brand-900);
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.modal-panel {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.modal-panel.is-visible {
  transform: scale(1);
  opacity: 1;
}

.modal-panel__icon {
  width: 4rem;
  height: 4rem;
  color: #16a34a;
  margin: 0 auto 1rem;
}

.modal-protocol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem 0;
}

.modal-protocol code {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: 0.02em;
}

.hidden { display: none !important; }

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 639px) {
  .page-bg {
    background-attachment: scroll;
  }
  .site-header__nav .btn-ghost span.hide-mobile {
    display: none;
  }
}
