:root {
  --brand: #ee6d35;
  --black: #000;
  --bg: #fff;
  --muted: #5a5a5a;
  --border: #e8e8e8;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --header-bg: #fdf6f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  padding: 0.75rem 1.25rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(238, 109, 53, 0.2);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  align-items: center;
}

.site-header__logo {
  justify-self: start;
}

.site-header__logo img {
  display: block;
  width: min(132px, 28vw);
  height: auto;
}

.site-header__contact {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  text-align: right;
  font-size: 0.84rem;
  color: #2d2d2d;
}

.site-header__line {
  margin: 0.12rem 0;
  line-height: 1.2;
}

.site-header__line--company {
  font-size: 0.78rem;
  color: #444;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.site-header__line--with-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.site-header__line--with-icon svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.site-header__line a {
  text-decoration: none;
}

.site-header__line a:hover {
  color: var(--brand);
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.tipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  padding: 1.1rem;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(238, 109, 53, 0.07) 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

.tipo-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 16px;
  padding: 1.45rem 1.35rem 1.35rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 247, 242, 0.5) 55%,
    rgba(255, 255, 255, 0.35) 100%
  );
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(238, 109, 53, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.tipo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--brand) 50%, transparent 95%);
  opacity: 0.55;
  transition: opacity 0.28s ease;
}

.tipo-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 55%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, transparent 70%);
  pointer-events: none;
}

.tipo-card:hover,
.tipo-card:focus-visible {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(238, 109, 53, 0.35);
  box-shadow:
    0 16px 42px rgba(238, 109, 53, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.tipo-card:hover::before,
.tipo-card:focus-visible::before {
  opacity: 1;
}

.tipo-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.tipo-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.progress__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.progress__dot.is-active {
  background: var(--brand);
}

.progress__dot.is-done {
  background: var(--black);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1rem;
  align-items: start;
}

.form-step.is-active > h2 {
  grid-column: 1 / -1;
}

.form-step.is-active > .field:not(.field--half):not(.field--col-3-4):not(.field--col-1-4) {
  grid-column: 1 / -1;
}

.form-step.is-active > .field--half {
  grid-column: span 2;
}

.form-step.is-active > .field--col-3-4 {
  grid-column: span 3;
}

.form-step.is-active > .field--col-1-4 {
  grid-column: span 1;
}

.form-step h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  border-bottom: 3px solid var(--brand);
  padding-bottom: 0.35rem;
}

.form-subsection {
  grid-column: 1 / -1;
  margin: 1.35rem 0 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.form-subsection.is-hidden {
  display: none;
}

.form-subsection__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
}

.field {
  margin-bottom: 1rem;
}

.form-step > .field--half {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .form-step.is-active {
    grid-template-columns: 1fr;
  }

  .form-step.is-active > .field--half,
  .form-step.is-active > .field--col-3-4,
  .form-step.is-active > .field--col-1-4 {
    grid-column: 1 / -1;
  }
}

.field.is-hidden {
  display: none;
}

.field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0.5rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="time"],
.field .input-date,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.options {
  display: grid;
  gap: 0.65rem;
}

.options--tiles {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.options--list {
  grid-template-columns: 1fr;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.8rem 1rem 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 247, 242, 0.55) 100%
  );
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.option:hover {
  border-color: rgba(238, 109, 53, 0.28);
  transform: translateY(-1px);
}

.option:has(.choice-input:focus-visible) {
  outline: 2px solid rgba(238, 109, 53, 0.45);
  outline-offset: 2px;
}

.option:has(.choice-input:checked) {
  border-color: rgba(238, 109, 53, 0.55);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 236, 226, 0.75) 100%
  );
  box-shadow:
    0 10px 24px rgba(238, 109, 53, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.choice-input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.option--checkbox .choice-input {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #bdbdbd;
  border-radius: 6px;
  background: #fff center / 13px no-repeat;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option--checkbox .choice-input:checked {
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.5 11.2 12.5 5.2'/%3E%3C/svg%3E");
}

.choice-label {
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.4;
  color: #2a2a2a;
}

.option:has(.choice-input:checked) .choice-label {
  font-weight: 600;
  color: var(--black);
}

@media (max-width: 640px) {
  .options--tiles {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-actions__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.form-actions .is-hidden,
.form-actions [hidden] {
  display: none !important;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.form-actions .btn:hover,
.form-actions .btn:focus {
  text-decoration: none;
}

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

.btn--secondary {
  background: #f2f2f2;
  color: var(--black);
}

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

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert--error {
  background: #ffe9e9;
  color: #8b1c1c;
}

.alert--success {
  background: #e8f8ee;
  color: #136b35;
}

.success-box {
  text-align: center;
  padding: 2rem 1rem;
}

.success-box h2 {
  color: var(--brand);
}

@media (max-width: 820px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .site-header__logo {
    justify-self: center;
  }

  .site-header__logo img {
    width: min(120px, 44vw);
  }

  .site-header__contact {
    max-width: none;
    text-align: left;
  }

  .site-header__line--with-icon {
    justify-content: flex-start;
  }
}