/* Talk to Expert & Thank You — Agilensmart theme */
.tte-page,
.thankyou-page {
  --tte-accent: #ff9924;
  --tte-accent-soft: rgba(255, 153, 36, 0.12);
  --tte-dark: #0f172a;
  --tte-muted: #64748b;
  --tte-input-bg: #f1f5f9;
  --tte-card-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.tte-page {
  background: linear-gradient(180deg,
      #fff 0%,
      hsla(44, 96%, 53%, 0.12) 45%,
      #fff 100%);
}

.tte-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 3rem;
}

.tte-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .tte-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: stretch;
  }

  .tte-copy {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.tte-copy__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tte-accent);
  background: var(--tte-accent-soft);
  border-radius: 999px;
}

.tte-copy__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--tte-dark);
}

.tte-copy__title span {
  color: var(--tte-accent);
}

.tte-copy__lead {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.tte-benefits {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.tte-benefit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.tte-benefit__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tte-accent);
  color: #fff;
  font-size: 0.85rem;
}

.tte-benefit__text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #334155;
}

.tte-benefit__text strong {
  color: var(--tte-dark);
}

.tte-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 153, 36, 0.2);
  border-radius: 0.75rem;
}

.tte-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}

.tte-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tte-accent);
}

.tte-stat__label {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--tte-muted);
}

.tte-expect {
  margin-top: 2rem;
}

.tte-expect__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tte-dark);
}

.tte-expect__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.tte-expect__step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tte-expect__step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}

.tte-expect__num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tte-dark);
  background: var(--tte-accent-soft);
  border-radius: 50%;
}

.tte-contact-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tte-contact-strip__label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tte-muted);
}

.tte-contact-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tte-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tte-contact-strip__link i {
  width: 1rem;
  color: var(--tte-accent);
  text-align: center;
}

.tte-contact-strip__link:hover {
  color: var(--tte-accent);
}

@media (max-width: 640px) {
  .tte-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tte-stat {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.tte-form-card {
  box-sizing: border-box;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(255, 153, 36, 0.15);
  box-shadow: var(--tte-card-shadow);
}

@media (min-width: 768px) {
  .tte-form-card {
    padding: 2.25rem 2rem;
  }
}

.tte-form-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tte-dark);
}

.tte-form-card__subtitle {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--tte-muted);
}

.tte-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tte-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .tte-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.tte-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tte-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.tte-field input,
.tte-field select,
.tte-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #0f172a;
  background-color: var(--tte-input-bg);
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.tte-field input::placeholder,
.tte-field textarea::placeholder {
  color: #94a3b8;
}

.tte-field input:focus,
.tte-field select:focus,
.tte-field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--tte-accent);
  box-shadow: 0 0 0 3px var(--tte-accent-soft);
}

.tte-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.tte-field .field-error {
  margin: 0;
  font-size: 0.75rem;
  color: #e3342f;
}

.tte-form .field-error.hidden,
.tte-form .hidden {
  display: none;
}

.tte-services__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.tte-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tte-service-btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.tte-service-btn:hover {
  border-color: var(--tte-accent);
}

.tte-service-btn.is-active {
  color: #fff;
  background: var(--tte-accent);
  border-color: var(--tte-accent);
}

.tte-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #475569;
}

.tte-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.tte-consent a {
  color: var(--tte-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tte-submit {
  box-sizing: border-box;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tte-dark);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    background-color 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
}

.tte-submit:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.tte-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Thank you page */
.thankyou-page {
  --thankyou-accent: #ff9924;
  --thankyou-accent-soft: rgba(255, 153, 36, 0.12);
  --thankyou-dark: #0f172a;
  --thankyou-muted: #64748b;
  background: linear-gradient(180deg,
      #fff 0%,
      hsla(44, 96%, 53%, 0.12) 45%,
      #fff 100%);
}

.thankyou-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 12rem);
  min-height: calc(100dvh - 12rem);
  padding: 1rem 0.5rem 2rem;
}

.thankyou-card {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

.thankyou-logo {
  display: inline-block;
  margin-bottom: 2.5rem;
  line-height: 0;
}

.thankyou-logo img {
  width: min(15rem, 72vw);
  height: auto;
}

.thankyou-illustration {
  display: block;
  width: 8.75rem;
  height: auto;
  margin: 0 auto 2rem;
}

.thankyou-title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--thankyou-dark);
}

.thankyou-title__accent {
  color: var(--thankyou-accent);
}

.thankyou-text {
  margin: 1.1rem auto 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
}

.thankyou-subtext {
  margin: 0.5rem auto 0;
  max-width: 35rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--thankyou-muted);
}

.thankyou-actions {
  margin-top: 2.25rem;
}

.thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 11rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--thankyou-dark);
  border-radius: 9999px;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.thankyou-btn i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.thankyou-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.thankyou-btn:hover i {
  transform: translateX(3px);
}

.thankyou-btn:focus-visible {
  outline: 2px solid var(--thankyou-accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .thankyou-main {
    padding: 2.5rem 1.25rem 3rem;
  }

  .thankyou-illustration {
    width: 7.5rem;
  }
}

/* Toast notifications (same pattern as contact page) */
#contact-toast-container {
  position: fixed;
  top: 5.5rem;
  right: 1.25rem;
  width: min(22rem, calc(100vw - 2rem));
  z-index: 10000;
  pointer-events: none;
}

.contact-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 2.75rem 1.25rem 1.125rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  pointer-events: auto;
  animation: contactToastIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-toast--leaving {
  animation: contactToastOut 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.contact-toast__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
}

.contact-toast--success .contact-toast__icon {
  color: #fff;
  background: linear-gradient(135deg, #ff9924 0%, #ffb347 100%);
  box-shadow: 0 4px 14px rgba(255, 153, 36, 0.4);
}

.contact-toast--error .contact-toast__icon {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.contact-toast__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}

.contact-toast__title {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tte-dark);
  letter-spacing: -0.01em;
}

.contact-toast__text {
  margin-top: 0.4rem;
}

.contact-toast__text p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--tte-muted);
}

.contact-toast__text p + p {
  margin-top: 0.25rem;
}

.contact-toast__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.contact-toast__close:hover {
  color: var(--tte-dark);
  background: #f1f5f9;
}

.contact-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation: contactToastProgress linear forwards;
}

.contact-toast--success .contact-toast__progress {
  background: linear-gradient(90deg, #ff9924, #ffb347);
}

.contact-toast--error .contact-toast__progress {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

@keyframes contactToastIn {
  from {
    opacity: 0;
    transform: translateX(calc(100% + 1.5rem)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes contactToastOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(calc(100% + 1rem)) scale(0.96);
  }
}

@keyframes contactToastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 640px) {
  #contact-toast-container {
    top: auto;
    bottom: 1.25rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .contact-toast {
    animation-name: contactToastInMobile;
  }

  .contact-toast--leaving {
    animation-name: contactToastOutMobile;
  }
}

@keyframes contactToastInMobile {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactToastOutMobile {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(1rem) scale(0.96);
  }
}