/**
 * AG Union Elementor Addon — Widget Styles
 * Minimal CSS for widget-specific needs.
 * Most styling comes from the theme's main.css design tokens + Tailwind.
 */

/* FAQ Accordion icon rotation */
details[open] > summary .accordion-icon {
  transform: rotate(45deg);
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Fade-up animation (if not already in theme) */
@keyframes ag-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ag-animate-fade-up {
  animation: ag-fade-up 0.6s ease-out both;
}

/* Timeline connector line pulse on hover */
.ag-timeline-dot {
  transition: box-shadow 0.3s ease;
}

.ag-timeline-dot:hover {
  box-shadow: 0 0 0 4px oklch(0.72 0.19 155 / 0.2);
}

/* Testimonial quote mark */
.ag-quote-mark {
  opacity: 0.15;
}

/* Partners grid grayscale hover */
.ag-partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.ag-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Contact Form 7 — Professional Boxed Style ──────────────────── */

/* Field group spacing & divider */
.wpcf7 .cf7-field-group {
  margin-bottom: 1.5rem;
}

/* Text / Email inputs — boxed style */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  background: var(--background, transparent);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: all 0.2s ease;
  resize: none;
  box-shadow: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--accent, oklch(0.72 0.19 155));
  box-shadow: 0 0 0 1px var(--accent, oklch(0.72 0.19 155));
  outline: none;
}

/* Placeholder — small mono uppercase */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground, #9ca3af);
}

/* Textarea height */
.wpcf7 textarea {
  min-height: 8rem;
}

/* Submit button — full width, rounded, dark bg */
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 2rem;
  background-color: var(--primary, oklch(0.26 0.06 155));
  color: var(--primary-foreground, #ffffff);
  border: none;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.wpcf7 input[type="submit"]:hover {
  opacity: 0.88;
}
.wpcf7 input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Validation errors */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  margin-top: 0.25rem;
  display: block;
}

/* Response output (success / error banner) */
.wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  border: 1px solid transparent;
}
.wpcf7 .sent .wpcf7-response-output {
  background: oklch(0.72 0.19 155 / 0.08);
  border-color: oklch(0.72 0.19 155 / 0.4);
  color: oklch(0.35 0.1 155);
}
.wpcf7 .failed .wpcf7-response-output,
.wpcf7 .invalid .wpcf7-response-output {
  background: oklch(0.65 0.2 27 / 0.06);
  border-color: #ef4444;
  color: #b91c1c;
}

/* Spinner while submitting */
.wpcf7 .wpcf7-spinner {
  display: none !important;
}
