*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #1a4a8a;
  --brand-dk: #12356a;
  --green:    #22a85a;
  --red:      #d32f2f;
  --bg:       #f4f6fa;
  --card-bg:  #ffffff;
  --text:     #1c2b3a;
  --muted:    #6b7a8d;
  --border:   #d0d9e4;
  --radius:   10px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: var(--brand);
  padding: 0.85rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.firm-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1rem 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 620px;
}

h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .4rem;
}

.subtitle {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 1.6rem;
}

/* ── Form elements ── */
label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem;
  color: var(--text);
}

input[type="text"] {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 1.35rem;
}
input[type="text"]:focus { border-color: var(--brand); }

/* ── Dropzone ── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  min-height: 160px;
  padding: 1rem;
  transition: border-color .2s, background .2s;
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.dropzone:hover,
.dropzone.dz-drag-hover { border-color: var(--brand); background: #eef3fb; }
.dropzone .dz-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  pointer-events: none;
  padding: 1.5rem 0;
}
.dropzone .dz-icon { font-size: 2.5rem; line-height: 1; }
.dropzone .dz-message span { font-size: .93rem; }
.dropzone.dz-started .dz-message { display: none; }

/* Dropzone preview items */
.dropzone .dz-preview .dz-image { border-radius: 6px; }
.dropzone .dz-preview.dz-error .dz-error-message { top: 110px; }

/* ── Captcha ── */
.captcha-row {
  margin-bottom: 1.25rem;
}

/* ── Progress ── */
.progress-wrap {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.progress-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 9999px;
  transition: width .15s ease;
}
.progress-text {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  min-width: 3ch;
}

/* ── Error message ── */
.error-msg {
  background: #fdecea;
  color: var(--red);
  border: 1px solid #f5c2c2;
  border-radius: 7px;
  padding: .7rem 1rem;
  font-size: .92rem;
  margin-bottom: 1rem;
}

/* ── Send button ── */
button[type="submit"] {
  width: 100%;
  padding: .85rem;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
button[type="submit"]:hover:not(:disabled) { background: var(--brand-dk); }
button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }

.btn-secondary {
  margin-top: 1.5rem;
  padding: .7rem 1.8rem;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--green); color: #fff; }

/* ── Success card ── */
.success-card {
  text-align: center;
  padding: 3rem 2.25rem;
}
.success-card h2 {
  font-size: 1.6rem;
  color: var(--green);
  margin: 1.2rem 0 .5rem;
}
.success-card p { color: var(--muted); line-height: 1.6; }

/* Animated checkmark */
.checkmark-circle {
  display: flex;
  justify-content: center;
}
.checkmark-svg {
  width: 90px;
  height: 90px;
}
.checkmark-circle-ring {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke-ring .6s cubic-bezier(.65,0,.45,1) forwards;
}
.checkmark-tick {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-tick .4s cubic-bezier(.65,0,.45,1) .6s forwards;
}

@keyframes stroke-ring {
  to { stroke-dashoffset: 0; }
}
@keyframes stroke-tick {
  to { stroke-dashoffset: 0; }
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.2rem;
  color: var(--muted);
  font-size: .82rem;
}

/* ── Utilities ── */
.hidden { display: none !important; }

@media (max-width: 480px) {
  .card { padding: 1.5rem 1.1rem; }
}
