.tcf-shell {
  --tcf-red: #b40000;
  --tcf-dark: #231f20;
  --tcf-border: rgba(35, 31, 32, 0.12);
  --tcf-shadow: 0 24px 70px rgba(35, 31, 32, 0.18);
  --tcf-modal-width: 920px;
  --tcf-modal-height: 720px;
  --tcf-card-bg: #fffaf7;
  --tcf-button-hover: #8f0000;
  --tcf-button-text: #ffffff;
  font-family: inherit;
  width: 100%;
  max-width: var(--tcf-modal-width);
  margin: 0 auto;
}

.tcf-card {
  position: relative;
  overflow: hidden;
  background: var(--tcf-card-bg);
  border: 1px solid var(--tcf-border);
  border-radius: 28px;
  box-shadow: var(--tcf-shadow);
  padding: clamp(38px, 4vw, 56px) clamp(22px, 3vw, 34px) clamp(24px, 3vw, 34px);
  height: var(--tcf-modal-height);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tcf-hero,
.tcf-form,
.tcf-progress {
  position: relative;
  z-index: 1;
}

.tcf-hero h2 {
  margin: 0 0 8px;
  color: var(--tcf-dark);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  font-weight: 900;
}

.tcf-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(35, 31, 32, 0.72);
  font-size: 16px;
}

.tcf-progress {
  height: 10px;
  background: rgba(35, 31, 32, 0.08);
  border-radius: 999px;
  margin: 22px 0 16px;
  overflow: hidden;
  flex: 0 0 auto;
}

.tcf-progress-bar {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--tcf-red), var(--tcf-button-hover));
  border-radius: inherit;
  transition: width 0.28s ease;
}

.tcf-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 0 1 auto;
}

.tcf-step {
  display: none;
  min-height: 0;
}

.tcf-step.is-active {
  display: block;
  flex: 0 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  animation-duration: 0.36s;
  animation-timing-function: cubic-bezier(.2,.75,.2,1);
  animation-fill-mode: both;
}

.tcf-step.tcf-anim-left { animation-name: tcfSlideLeft; }
.tcf-step.tcf-anim-right { animation-name: tcfSlideRight; }
.tcf-step.tcf-anim-up { animation-name: tcfSlideUp; }
.tcf-step.tcf-anim-down { animation-name: tcfSlideDown; }

@keyframes tcfSlideLeft {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tcfSlideRight {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tcfSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tcfSlideDown {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: translateY(0); }
}

.tcf-step h3 {
  margin: 0 0 12px;
  color: var(--tcf-dark);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
}

.tcf-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}


.tcf-step[data-step="0"].is-active {
  overflow-y: visible;
  padding-right: 0;
}

.tcf-step[data-step="0"] .tcf-choice-grid {
  align-content: start;
}

@media (min-width: 1100px) {
  .tcf-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .tcf-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tcf-choice {
  display: block;
  cursor: pointer;
}

.tcf-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tcf-choice span {
  display: block;
  min-height: 74px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 2px solid rgba(35, 31, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tcf-choice strong {
  display: block;
  color: var(--tcf-dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.tcf-choice small {
  display: block;
  color: rgba(35, 31, 32, 0.62);
  font-size: 12px;
  line-height: 1.3;
}

.tcf-choice:hover span,
.tcf-choice.is-selected span {
  transform: translateY(-2px);
  border-color: var(--tcf-red);
  background: #fff;
  box-shadow: 0 14px 28px rgba(180, 0, 0, 0.12);
}

.tcf-dynamic-fields,
.tcf-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tcf-field,
.tcf-field-grid label,
.tcf-consent {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tcf-field-full,
.tcf-consent {
  grid-column: 1 / -1;
}

.tcf-field span,
.tcf-field-grid label span,
.tcf-consent span {
  color: var(--tcf-dark);
  font-size: 14px;
  font-weight: 800;
}

.tcf-shell input[type="text"],
.tcf-shell input[type="email"],
.tcf-shell input[type="tel"],
.tcf-shell input[type="date"],
.tcf-shell input[type="number"],
.tcf-shell select,
.tcf-shell textarea {
  width: 100%;
  border: 2px solid rgba(35, 31, 32, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--tcf-dark);
  font: inherit;
  padding: 14px 15px;
  min-height: 52px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tcf-shell textarea {
  resize: vertical;
  min-height: 130px;
}

.tcf-shell input:focus,
.tcf-shell select:focus,
.tcf-shell textarea:focus {
  border-color: var(--tcf-red);
  box-shadow: 0 0 0 4px rgba(180, 0, 0, 0.1);
}

.tcf-review {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.tcf-review div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 31, 32, 0.1);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
}

.tcf-review strong {
  color: var(--tcf-dark);
}

.tcf-review span {
  color: rgba(35, 31, 32, 0.72);
  overflow-wrap: anywhere;
}

.tcf-consent {
  flex-direction: row;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(35, 31, 32, 0.1);
}

.tcf-consent input {
  margin-top: 4px;
}

.tcf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex: 0 0 auto;
}

.tcf-step.is-active + .tcf-error,
.tcf-step.is-active + .tcf-success {
  flex: 0 0 auto;
}

.tcf-form .tcf-actions {
  align-self: stretch;
}

.tcf-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--tcf-red);
  color: var(--tcf-button-text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 13px 22px;
  min-width: 114px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tcf-btn:hover {
  background: var(--tcf-button-hover);
  color: var(--tcf-button-text);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(180, 0, 0, 0.24);
}

.tcf-btn-ghost:hover {
  background: rgba(180, 0, 0, 0.06);
  color: var(--tcf-red);
}

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

.tcf-btn-ghost {
  background: #fff;
  color: var(--tcf-red);
  border: 2px solid rgba(180, 0, 0, 0.18);
}

.tcf-error,
.tcf-success {
  display: none;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}

.tcf-error.is-visible {
  display: block;
  color: #7a0000;
  background: #fff0f0;
  border: 1px solid rgba(180, 0, 0, 0.2);
}

.tcf-success.is-visible {
  display: block;
  color: #135c2b;
  background: #effff3;
  border: 1px solid rgba(19, 92, 43, 0.2);
}

.tcf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .tcf-shell {
    max-width: 100%;
  }

  .tcf-card {
    border-radius: 22px;
    padding: 34px 20px 22px;
    height: auto;
    min-height: 720px;
    max-height: none;
  }

  .tcf-choice-grid,
  .tcf-dynamic-fields,
  .tcf-field-grid {
    grid-template-columns: 1fr;
  }

  .tcf-choice span {
    min-height: auto;
  }

  .tcf-review div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tcf-actions {
    flex-direction: column-reverse;
  }

  .tcf-btn {
    width: 100%;
  }
}
