﻿:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #d1d5db;
  --primary: #d90b16;
  --primary-hover: #b10913;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.visual {
  display: none;
  overflow: hidden;
  position: relative;
  background: #000000;
  border-radius: 0 18px 18px 0;
  margin: 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100vh;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.45s ease;
  filter: contrast(1.02) saturate(1.06);
  border-radius: 0 18px 18px 0;
}

.carousel-track img.active {
  opacity: 1;
}

.content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 28px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: transparent;
  border-radius: 0;
  padding: 4px 48px 20px 8px;
  box-shadow: none;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.back-btn {
  position: absolute;
  left: -6px;
  top: 8px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #f5f7fa;
  color: #111827;
  border: 1px solid #d5dde7;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.back-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #d90b16;
  color: #d90b16;
  box-shadow: 0 0 0 4px rgba(217, 11, 22, 0.14);
}

.back-btn:not(:disabled):active {
  transform: scale(0.94);
  background: #ffe8ea;
  color: #d90b16;
}

.back-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-logo {
  display: flex;
  justify-content: center;
  margin-top: -30px;
  margin-left: 110px;
  margin-bottom: 10px;
}

.card-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.step-indicator {
  margin: 0 0 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

h2 {
  margin: 0;
  font-size: 1.75rem;
}

.intro {
  margin-top: 8px;
  color: var(--muted);
}

.form {
  margin-top: 20px;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.sr-only-select {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.project-choice {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.project-option {
  border: 1px solid #d6dde8;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-option:hover {
  border-color: #b8c3d3;
  transform: translateY(-1px);
}

.project-option.is-active {
  border-color: #d90b16;
  box-shadow: 0 0 0 3px rgba(217, 11, 22, 0.15);
}

.project-title {
  display: block;
  font-weight: 700;
  color: #111827;
}

.project-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #6b7280;
}

.phone-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  align-items: start;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.step label+input,
.step label+select,
.step label+textarea {
  margin-bottom: 12px;
}

#telefone {
  letter-spacing: 0.2px;
}

.country-picker {
  position: relative;
}

.country-btn {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.country-btn img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e5e7eb;
}

.country-btn img[src=""] {
  opacity: 0;
}

.country-arrow {
  margin-left: auto;
  color: #6b7280;
}

.country-code-placeholder {
  color: #6b7280;
  font-weight: 500;
}

.country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(360px, 88vw);
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
  z-index: 40;
}

#countrySearch {
  position: sticky;
  top: 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  background: #fff;
}

#countryList {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.country-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}

.country-item:hover {
  background: #f3f4f6;
}

.country-item img {
  width: 20px;
  height: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
}

.country-name {
  color: #374151;
  font-size: 0.92rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 11, 22, 0.15);
}

.error {
  min-height: 20px;
  color: #b91c1c;
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 36px;
}

.btn-primary,
.btn-secondary {
  height: 44px;
  border-radius: 10px;
  border: 0;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.testimonial {
  margin-top: clamp(20px, 4vh, 40px);
  margin-right: 36px;
  padding: 16px 18px 14px;
  border: 1px solid #e3e8ef;
  border-left: 4px solid #d90b16;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.testimonial-mark {
  display: inline-block;
  font-size: 1.8rem;
  line-height: 1;
  color: #d90b16;
  font-weight: 700;
  margin-bottom: 6px;
}

.testimonial-quote {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.45;
}

.testimonial-author {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.small {
  margin-top: 24px;
  margin-right: 36px;
  margin-left: 0;
  max-width: none;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.small a {
  color: #1d4ed8;
}

@media (min-width: 1024px) {
  .container {
    grid-template-columns: 0.85fr 1.25fr;
  }

  .visual {
    display: block;
  }
}

@media (max-width: 560px) {
  .card {
    min-height: auto;
    padding: 8px 6px 16px;
  }

  .back-btn {
    left: 0;
  }

  .card-logo {
    margin-left: 0;
    margin-top: -16px;
    justify-content: center;
  }

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

  .actions,
  .testimonial,
  .small {
    margin-right: 0;
    padding-right: 0;
  }

  .testimonial {
    margin-top: 22px;
  }
}

.completion {
  margin: 28px 36px 0 110px;
  padding: 28px 24px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.completion-photo {
  width: 220px;
  max-width: 100%;
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
}

.completion h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #111827;
}

.completion p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 1rem;
}

@media (max-width: 560px) {
  .completion {
    margin-right: 0;
    margin-left: 0;
  }
}




/* Completion panel aligned with testimonial visual */
.completion h3 {
  display: none;
}

.completion p {
  text-align: left;
}

.completion .testimonial-quote,
.completion .testimonial-author {
  display: block;
}
