/* ==========================================================================
   TTG CONTACT FORM — Slide-in panel + sticky trigger
   ========================================================================== */

/* Sticky corner trigger — hidden, replaced by side rail CTA */
.ttgcf-trigger {
  display: none;
}

/* Close button accessible */
.ttgcf-panel__close {
  cursor: pointer;
}

.ttgcf-trigger:hover {
  width: 62px;
}

.ttgcf-trigger__text {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.ttgcf-trigger__arrow {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Overlay */
.ttgcf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ttgcf-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Slide-in panel */
.ttgcf-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-bg, #FAFAFA);
  border-left: 1px solid var(--color-border, #E5E2DF);
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3rem 2rem;
  padding-top: 5rem;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ttgcf-panel.is-open {
  right: 0;
}

.ttgcf-panel__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--color-border, #E5E2DF);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-light, #787878);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.ttgcf-panel__close:hover {
  border-color: var(--color-primary, #2A2A2A);
  color: var(--color-primary, #2A2A2A);
}

/* Form steps */
.ttgcf-step {
  display: none;
  animation: ttgcfFadeIn 0.4s ease;
}

.ttgcf-step.active {
  display: block;
}

@keyframes ttgcfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Back button */
.ttgcf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #A0A0A0);
  padding: 0;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.ttgcf-back:hover {
  color: var(--color-primary, #2A2A2A);
}

.ttgcf-back i {
  font-size: 0.5rem;
}

/* WhatsApp button */
.ttgcf-whatsapp-btn {
  background: #25D366;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0;
}

.ttgcf-whatsapp-btn:hover {
  background: #1da851;
}

.ttgcf-whatsapp-btn i {
  font-size: 1rem;
}

/* Divider — or — */
.ttgcf-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.ttgcf-divider__line {
  flex: 1;
  height: 1px;
  background: var(--color-border, #E5E2DF);
}

.ttgcf-divider__text {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted, #A0A0A0);
}

/* Intro text above form */
.ttgcf-form__intro {
  font-family: var(--font-body, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-light, #787878);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border, #E5E2DF);
}

/* Form header */
.ttgcf-form__kicker {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-red, #C8503D);
  display: block;
  margin-bottom: 0.5rem;
}

.ttgcf-form__title {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary, #2A2A2A);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.ttgcf-form__desc {
  font-size: 0.875rem;
  color: var(--color-text-light, #787878);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Input fields */
.ttgcf-form__field {
  margin-bottom: 1.25rem;
}

.ttgcf-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border, #E5E2DF);
  background: var(--color-bg, #FAFAFA);
  font-family: var(--font-body, sans-serif);
  font-size: 0.9375rem;
  color: var(--color-text, #3D3D3D);
  transition: border-color 0.2s ease;
}

.ttgcf-input:focus {
  outline: none;
  border-color: var(--color-primary, #2A2A2A);
}

.ttgcf-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Contact preference options */
.ttgcf-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ttgcf-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 14px 16px;
  border: 1px solid var(--color-border, #E5E2DF);
  background: var(--color-bg, #FAFAFA);
  cursor: pointer;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #2A2A2A);
  transition: all 0.3s ease;
}

.ttgcf-option:hover {
  border-color: var(--color-primary, #2A2A2A);
  background: var(--color-bg-alt, #F2F0EE);
}

.ttgcf-option.selected {
  border-color: var(--color-accent-red, #C8503D);
  background: var(--color-bg-alt, #F2F0EE);
}

.ttgcf-option i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  color: var(--color-accent-red, #C8503D);
}

/* Buttons */
.ttgcf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 14px 24px;
  background: var(--color-primary, #2A2A2A);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.3s ease;
}

.ttgcf-btn:hover {
  background: var(--color-accent-red, #C8503D);
}

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

.ttgcf-btn i {
  font-size: 0.75rem;
}

.ttgcf-submit {
  background: var(--color-accent-red, #C8503D);
}

.ttgcf-submit:hover {
  background: var(--color-primary, #2A2A2A);
}

/* Turnstile widget */
.cf-turnstile {
  margin-bottom: 1rem;
}

/* Error message */
.ttgcf-error {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 0.5rem;
  display: none;
}

.ttgcf-error.show {
  display: block;
}

/* Mobile */
@media (max-width: 480px) {
  .ttgcf-panel {
    width: 100vw;
    right: -100vw;
    padding: 2rem 1.25rem;
  }

  .ttgcf-trigger {
    width: 48px;
    padding: 16px 10px;
  }

  .ttgcf-trigger__text {
    font-size: 0.6875rem;
  }
}
