/* TD-AI — mini visszahívás űrlap modal */

.tdai-cb-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-bottom)) 1rem max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom)));
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 640px) {
  .tdai-cb-overlay {
    align-items: center;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

.tdai-cb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tdai-cb-modal {
  position: relative;
  width: min(420px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(219, 177, 85, 0.45);
  background: linear-gradient(165deg, rgba(18, 16, 12, 0.98), rgba(8, 7, 6, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(219, 177, 85, 0.12);
  padding: 1.35rem 1.25rem 1.25rem;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tdai-cb-overlay.is-open .tdai-cb-modal {
  transform: translateY(0);
}

.tdai-cb-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(219, 177, 85, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(242, 237, 228, 0.9);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.tdai-cb-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(219, 177, 85, 0.9);
  margin: 0 0 0.35rem;
}

.tdai-cb-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.45rem;
  padding-right: 1.5rem;
}

.tdai-cb-sub {
  font-size: 0.86rem;
  color: rgba(210, 200, 185, 0.75);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.tdai-cb-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(220, 197, 152, 0.95);
  margin-bottom: 0.65rem;
}

.tdai-cb-form input,
.tdai-cb-form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #f2ede4;
  font-family: inherit;
  font-size: 0.92rem;
}

.tdai-cb-form input:focus,
.tdai-cb-form select:focus {
  outline: none;
  border-color: rgba(219, 177, 85, 0.65);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.tdai-cb-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d49b, #dbb155, #c58e31);
  color: #0a0a09;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tdai-cb-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tdai-cb-note {
  font-size: 0.75rem;
  color: rgba(160, 154, 144, 0.85);
  margin: 0.65rem 0 0;
  line-height: 1.4;
  text-align: center;
}

.tdai-cb-alt {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  font-size: 0.78rem;
  color: rgba(210, 200, 185, 0.72);
  line-height: 1.45;
  text-align: center;
}

.tdai-cb-alt a {
  color: #dcc598;
  font-weight: 700;
  text-decoration: none;
}

.tdai-cb-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0;
}

.tdai-cb-success.is-visible {
  display: block;
}

.tdai-cb-success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tdai-cb-success h3 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.tdai-cb-success p {
  font-size: 0.86rem;
  color: rgba(210, 200, 185, 0.8);
  margin: 0;
}

.tdai-form-alt-phone {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(197, 160, 89, 0.18);
  font-size: 0.82rem;
  color: rgba(210, 200, 185, 0.78);
  line-height: 1.5;
}

.tdai-form-alt-phone a {
  color: #dcc598;
  font-weight: 700;
  white-space: nowrap;
}
