/* stylelint-disable no-descending-specificity, no-duplicate-selectors -- intentional cascade layering for complex layouts */
/**
 * Contact Form v2 - Modern Redesign
 *
 * Design principles:
 * - Floating labels for cleaner visual hierarchy
 * - Progressive disclosure for reduced cognitive load
 * - Mobile-first responsive approach
 * - On-brand neon/cyberpunk aesthetic with improved legibility
 * - Smooth micro-interactions
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

.mcd-contact-form--v2 {
  /* Colors */
  --form-bg: rgba(8, 14, 32, 0.85);
  --form-border: rgba(122, 216, 255, 0.25);
  --form-glow: rgba(0, 229, 255, 0.15);
  --input-bg: rgba(6, 12, 28, 0.9);
  --input-border: rgba(255, 255, 255, 0.18);
  --input-border-focus: rgba(0, 229, 255, 0.7);
  --input-border-valid: rgba(52, 211, 153, 0.7);
  --input-border-error: rgba(239, 68, 68, 0.7);
  --text-primary: #eaf2ff;
  --text-secondary: rgba(197, 216, 242, 0.85);
  --text-muted: rgba(197, 216, 242, 0.6);
  --text-error: #f87171;
  --accent-cyan: #00e5ff;
  --accent-amber: #ff6b00;
  --accent-purple: #a855f7;

  /* Spacing */
  --form-padding: clamp(24px, 5vw, 40px);
  --field-gap: clamp(16px, 3vw, 24px);
  --section-gap: clamp(24px, 4vw, 32px);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Layout */
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--form-padding);
  background: var(--form-bg);
  border: 1px solid var(--form-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 60px var(--form-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hero variant - wider */

.mcd-contact-form--v2.mcd-contact-form--hero {
  max-width: 860px;
}

/* Kitty inlay image - decorative background */

.mcd-contact-form--v2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 80%);
  aspect-ratio: 1;
  background: var(--mcd-form-inlay-image) no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Content sits above the inlay */

.mcd-contact-form--v2 > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.mcd-form__header {
  text-align: center;
  margin-bottom: var(--section-gap);
}

/* Availability signal */

.mcd-form__availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #34d399;
  letter-spacing: 0.01em;
}

.mcd-form__availability-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: availability-pulse 2s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0);
  }
}

.mcd-form__title {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Manrope', system-ui, sans-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mcd-form__subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 50ch;
  margin-inline: auto;
}

.mcd-form__subtitle--hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Mini Estimator Toggle
   ========================================================================== */

.mcd-form__estimator-toggle {
  margin-bottom: var(--section-gap);
}

.mcd-form__estimator-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.06));
  border: 1px dashed rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mcd-form__estimator-trigger:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(168, 85, 247, 0.1));
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

.mcd-form__estimator-trigger[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(168, 85, 247, 0.12));
  border-style: solid;
  border-color: rgba(0, 229, 255, 0.4);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.mcd-form__estimator-trigger-icon {
  display: flex;
  align-items: center;
}

.mcd-form__estimator-trigger-icon svg {
  stroke: currentcolor;
}

.mcd-form__estimator-trigger-chevron {
  display: flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.mcd-form__estimator-trigger[aria-expanded="true"] .mcd-form__estimator-trigger-chevron {
  transform: rotate(180deg);
}

/* Mini Estimator Panel */

.mcd-form__mini-estimator {
  padding: 20px;
  background: rgba(6, 12, 28, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: slide-down var(--transition-slow) ease;
}

.mcd-form__mini-estimator[hidden] {
  display: none;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mcd-form__mini-estimator-label {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.mcd-form__mini-estimator-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Customize link - handoff to full estimator */

.mcd-form__customize-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: transparent;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-sm);
  color: var(--accent-purple);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mcd-form__customize-link:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.mcd-form__customize-link svg {
  transition: transform var(--transition-base);
}

.mcd-form__customize-link:hover svg {
  transform: translate(2px, -2px);
}

/* Hide customize link after handoff */

.mcd-form__mini-estimator[data-handed-off="true"] .mcd-form__customize-link {
  display: none;
}

/* Handoff notice - shown after user engages with full estimator */

.mcd-form__handoff-notice {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
  color: #34d399;
  font-size: 0.85rem;
  font-style: normal;
  text-align: center;
}

.mcd-form__handoff-notice[hidden] {
  display: none;
}

.mcd-form__mini-estimator[data-handed-off="true"] .mcd-form__handoff-notice {
  display: flex;
  flex-wrap: wrap;
}

.mcd-form__handoff-notice a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mcd-form__handoff-notice a:hover {
  color: var(--text-primary);
}

/* Handoff state - cards become muted/disabled */

.mcd-form__mini-estimator[data-handed-off="true"] .mcd-form__path-panel {
  opacity: 0.5;
  pointer-events: none;
}

.mcd-form__mini-estimator[data-handed-off="true"] .mcd-form__path-toggle {
  opacity: 0.5;
  pointer-events: none;
}

/* Package Cards */

.mcd-form__package-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.mcd-form__package-card {
  position: relative;
  cursor: pointer;
}

.mcd-form__package-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mcd-form__package-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(12, 20, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

.mcd-form__package-card:hover .mcd-form__package-card-inner {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(12, 20, 40, 0.85);
  transform: translateY(-2px);
}

.mcd-form__package-card input:checked + .mcd-form__package-card-inner {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* Selection checkmark - appears when package is selected */

.mcd-form__package-card input:checked + .mcd-form__package-card-inner::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: var(--accent-cyan);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%23050a1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  animation: check-pop 0.2s ease;
}

@keyframes check-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ensure card-inner is position relative for the checkmark */

.mcd-form__package-card-inner {
  position: relative;
}

.mcd-form__package-card input:focus-visible + .mcd-form__package-card-inner {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.mcd-form__package-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 50%;
  color: var(--accent-cyan);
}

.mcd-form__package-card input:checked + .mcd-form__package-card-inner .mcd-form__package-icon {
  background: rgba(0, 229, 255, 0.2);
}

.mcd-form__package-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mcd-form__package-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

/* Setup price for build-inclusive packages */

.mcd-form__package-price-setup {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-amber);
}

.mcd-form__package-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Package price note (e.g. "one-time", "site build included") */

.mcd-form__package-price-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -4px;
}

/* Popular badge */

.mcd-form__package-card--popular {
  position: relative;
}

.mcd-form__package-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #050a1c;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   Path Toggle (Need site vs Marketing only)
   ========================================================================== */

.mcd-form__path-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: rgba(6, 12, 28, 0.5);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mcd-form__path-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 4px);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mcd-form__path-tab:hover:not(.mcd-form__path-tab--active) {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.mcd-form__path-tab--active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.mcd-form__path-tab-icon {
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.mcd-form__path-tab--active .mcd-form__path-tab-icon {
  opacity: 1;
}

.mcd-form__path-tab:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Path hint - clarifies rebuild edge case */

.mcd-form__path-hint {
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

/* Path Panels */

.mcd-form__path-panel {
  animation: fade-in var(--transition-base) ease;
}

.mcd-form__path-panel[hidden] {
  display: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: stack tabs on very small screens */
@media (max-width: 380px) {
  .mcd-form__path-toggle {
    flex-direction: column;
  }

  .mcd-form__path-tab {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Form Fields Container
   ========================================================================== */

.mcd-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.mcd-form__section {
  display: flex;
  flex-direction: column;
  gap: var(--field-gap);
}

.mcd-form__row {
  display: grid;
  gap: var(--field-gap);
}

.mcd-form__row--two-col {
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .mcd-form__row--two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Floating Label Input Fields
   ========================================================================== */

.mcd-form__field {
  position: relative;
}

.mcd-form__input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Input Base Styles */

.mcd-form__input {
  width: 100%;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: all var(--transition-base);
  outline: none;
}

.mcd-form__input::placeholder {
  color: transparent;
}

.mcd-form__input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.mcd-form__input:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

/* Textarea specific */

.mcd-form__input--textarea {
  min-height: 100px;
  resize: vertical;
}

/* Select specific */

.mcd-form__input--select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c5d8f2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* Floating Label */

.mcd-form__label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all var(--transition-fast);
  transform-origin: left top;
}

.mcd-form__input-wrap--textarea .mcd-form__label {
  top: 20px;
  transform: translateY(0);
}

/* Label float state - sits on top border of input */

.mcd-form__input:focus ~ .mcd-form__label,
.mcd-form__input:not(:placeholder-shown) ~ .mcd-form__label,
.mcd-form__label--select {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  color: var(--accent-cyan);
}

.mcd-form__input-wrap--textarea .mcd-form__input:focus ~ .mcd-form__label,
.mcd-form__input-wrap--textarea .mcd-form__input:not(:placeholder-shown) ~ .mcd-form__label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
}

/* Required indicator */

.mcd-form__required {
  color: var(--accent-amber);
  margin-left: 2px;
  transition: color 0.3s ease;
}

/* Mute asterisk when field is valid */

.mcd-form__field--valid .mcd-form__required {
  color: rgba(134, 142, 150, 0.5);
}

/* Animated border effect - only shows on valid state */

.mcd-form__input-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--input-border-valid);
  transform: translateX(-50%);
  transition: width var(--transition-base);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
}

/* Only show border accent on valid fields */

.mcd-form__field--valid .mcd-form__input-border {
  width: 100%;
  opacity: 1;
}

/* Hint text */

.mcd-form__hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Error state */

.mcd-form__error {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-error);
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.mcd-form__error:not(:empty) {
  min-height: 1.2em;
  opacity: 1;
  transform: translateY(0);
}

.mcd-form__field--invalid .mcd-form__input {
  border-color: var(--input-border-error);
}

.mcd-form__field--invalid .mcd-form__input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.mcd-form__field--invalid .mcd-form__label {
  color: var(--text-error);
}

/* Valid state */

.mcd-form__field--valid .mcd-form__input {
  border-color: var(--input-border-valid);
}

/* Valid state checkmark */

.mcd-form__field--valid .mcd-form__input-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  animation: check-fade-in 0.2s ease;
  pointer-events: none;
}

/* Adjust for textarea */

.mcd-form__field--valid .mcd-form__input-wrap--textarea::after {
  top: 18px;
  transform: none;
}

@keyframes check-fade-in {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Add padding to input to make room for checkmark */

.mcd-form__field--valid .mcd-form__input {
  padding-right: 40px;
}

/* ==========================================================================
   Optional Context Section (Details/Summary)
   ========================================================================== */

.mcd-form__section--optional {
  border: 1px dashed rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.03), rgba(0, 229, 255, 0.02));
  transition: all var(--transition-base);
}

.mcd-form__section--optional:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(0, 229, 255, 0.03));
}

.mcd-form__section--optional[open] {
  border-style: solid;
  border-color: rgba(168, 85, 247, 0.3);
}

.mcd-form__section-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-base);
}

.mcd-form__section-toggle::-webkit-details-marker {
  display: none;
}

.mcd-form__section-toggle:hover {
  background: rgba(168, 85, 247, 0.05);
}

.mcd-form__section-toggle-text {
  font-weight: 500;
  color: var(--text-primary);
}

.mcd-form__section-toggle-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

.mcd-form__section-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 50%;
  color: var(--accent-cyan);
  transition: all var(--transition-base);
}

.mcd-form__section--optional[open] .mcd-form__section-toggle-icon {
  background: var(--accent-cyan);
  color: #050a1c;
  transform: rotate(45deg);
}

.mcd-form__section-content {
  display: flex;
  flex-direction: column;
  gap: var(--field-gap);
  padding: 0 20px 20px;
  animation: slide-down var(--transition-slow) ease;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */

.mcd-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: var(--section-gap);
}

/* Submit Button */

.mcd-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(168, 85, 247, 0.1));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
}

.mcd-form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mcd-form__submit:hover:not(:disabled)::before {
  opacity: 0.15;
}

.mcd-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

.mcd-form__submit:active:not(:disabled) {
  transform: translateY(0);
}

.mcd-form__submit:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.mcd-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(122, 216, 255, 0.3);
}

/* Ready state - all required fields filled */

.mcd-form__submit--ready {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(168, 85, 247, 0.18));
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.25),
    0 0 40px rgba(0, 229, 255, 0.1);
  animation: ready-pulse 2s ease-in-out infinite;
}

@keyframes ready-pulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 229, 255, 0.25),
      0 0 40px rgba(0, 229, 255, 0.1);
  }

  50% {
    box-shadow:
      0 0 25px rgba(0, 229, 255, 0.35),
      0 0 50px rgba(0, 229, 255, 0.15);
  }
}

.mcd-form__submit-text,
.mcd-form__submit-icon {
  position: relative;
  z-index: 1;
}

.mcd-form__submit-icon {
  display: flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.mcd-form__submit:hover:not(:disabled) .mcd-form__submit-icon {
  transform: translateX(4px);
}

/* Spinner */

.mcd-form__spinner {
  display: none;
  position: relative;
  z-index: 1;
}

.mcd-contact-form--v2.is-loading .mcd-form__submit-icon {
  display: none;
}

.mcd-contact-form--v2.is-loading .mcd-form__spinner {
  display: flex;
}

/* Submit meta text */

.mcd-form__submit-meta {
  text-align: center;
}

.mcd-form__submit-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mcd-form__submit-hint svg {
  color: var(--accent-cyan);
  opacity: 0.7;
}

/* Social proof - subtle testimonial */

.mcd-form__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mcd-form__stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24; /* amber/gold */
}

.mcd-form__proof-text {
  font-style: italic;
  opacity: 0.85;
}

/* Privacy reassurance */

.mcd-form__privacy-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.mcd-form__privacy-note svg {
  opacity: 0.6;
}

/* What happens next */

.mcd-form__next-steps {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(0, 229, 255, 0.05);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-cyan);
}

/* ==========================================================================
   Footer / Checkboxes
   ========================================================================== */

.mcd-form__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 540px) {
  .mcd-form__footer {
    flex-flow: row wrap;
    gap: 16px 24px;
  }
}

/* Custom Checkbox */

.mcd-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.mcd-form__checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mcd-form__checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.mcd-form__checkbox-box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
  stroke: #050a1c;
}

.mcd-form__checkbox:hover .mcd-form__checkbox-box {
  border-color: rgba(0, 229, 255, 0.5);
}

.mcd-form__checkbox-input:checked + .mcd-form__checkbox-box {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mcd-form__checkbox-input:checked + .mcd-form__checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.mcd-form__checkbox-input:focus-visible + .mcd-form__checkbox-box {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.mcd-form__checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Estimator summary */

.mcd-form__estimator-summary {
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mcd-form__estimator-summary[hidden] {
  display: none;
}

/* ==========================================================================
   Notice Messages
   ========================================================================== */

.mcd-form__notice {
  margin-top: var(--field-gap);
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-align: center;
  overflow: hidden;
  transition: all var(--transition-base);
}

.mcd-form__notice:empty {
  display: none;
}

.mcd-form__notice:not(:empty) {
  padding: 16px 20px;
}

.mcd-form__notice.is-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.mcd-form__notice.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--text-error);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 480px) {
  .mcd-contact-form--v2 {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .mcd-form__title {
    font-size: 1.35rem;
  }

  .mcd-form__subtitle {
    font-size: 0.9rem;
  }

  .mcd-form__package-cards {
    grid-template-columns: 1fr;
  }

  .mcd-form__submit {
    width: 100%;
    max-width: none;
  }

  .mcd-form__section-toggle-hint {
    display: none;
  }
}

/* High contrast / accessibility */
@media (prefers-reduced-motion: reduce) {
  .mcd-contact-form--v2,
  .mcd-contact-form--v2 * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Legacy Class Bridges (for JS compatibility)
   ========================================================================== */

/* Map v1 selectors to v2 for existing JS */

.mcd-contact-form--v2 .mcd-form__field[data-field] {
  /* Field wrapper - maps to .mcd-contact-form__field */
}

.mcd-contact-form--v2 .mcd-form__field--invalid {
  /* Invalid state - matches existing JS class */
}

.mcd-contact-form--v2 .mcd-form__error {
  /* Error container - matches .mcd-contact-form__error */
}

/* Submit button class bridge */

.mcd-contact-form--v2 .mcd-form__submit {
  /* Primary submit styling already applied */
}

/* Notice class bridge */

.mcd-contact-form--v2 .mcd-form__notice.is-success,
.mcd-contact-form--v2 .mcd-form__notice.is-error {
  /* Notice states match existing JS */
}

/* ==========================================================================
   Honeypot Anti-Spam
   ========================================================================== */

/* Hide honeypot from humans but keep it accessible to bots */

.mcd-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


