/**
 * Contact Section Styles for Investors Page
 * Custom styling to match hero glow and improve layout
 * Created for Ashton Gray Development - 2025
 */


#contact {
  background: var(--color-black) !important;
}

/* ======================================
   CONTACT SUBTITLE MARGIN FIX
   ====================================== */
.contact-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ======================================
   CONTACT FORM GLOW
   ====================================== */

/* Form panel layered glow system */
.form-panel {
  position: relative;
  z-index: 1;

  /* Glass Effect */
  --glass-radius: 22px;
  border-radius: var(--glass-radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px) saturate(100%);
  -webkit-backdrop-filter: blur(10px) saturate(100%);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.06);
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================
   GLASS EFFECT LAYERS
   ========================================= */

/* Gradient Border (Refraction) */
.form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--glass-radius);
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.08) 25%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.08) 75%,
      rgba(255, 255, 255, 0.25) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Top Shine (Dome Effect) */
.form-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 1;
  pointer-events: none;
  border-radius: var(--glass-radius) var(--glass-radius) 0 0;
  z-index: 1;
}

/* Hover State */
.form-panel:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 40px 0 rgba(0, 0, 0, 0.18),
    0 2px 8px 0 rgba(255, 255, 255, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.08);
}

.form-panel:hover::before {
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .form-panel {
    padding: 2rem 1.5rem;
    --glass-radius: 20px;
  }
}

.form-glow-panel {
  background: linear-gradient(0deg,
      rgba(var(--color-accent-alt-rgb), 0.8) 0%,
      rgba(var(--color-accent-alt-rgb), 0.6) 25%,
      rgba(var(--color-accent-main-rgb), 0.5) 75%,
      rgba(var(--color-accent-main-rgb), 0.4) 100%) !important;
}

.form-dark-panel {
  background-color: var(--color-black) !important;
  filter: brightness(.88) !important;
  border-radius: var(--glass-radius) !important;
}


.contact-glow {
  display: none;
}

.contact-title {
  font-size: var(--section-header-size) !important;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  font-weight: 400 !important;
}

/* ======================================
   QUALIFIED INVESTOR CONSENT CHECKBOX
   ====================================== */

.qualified-investor-consent {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.qualified-investor-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.qualified-investor-checkbox-label:hover {
  color: var(--color-white);
}

.qualified-investor-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--color-white-rgb), 0.3);
  border-radius: 4px;
  background: rgba(var(--color-white-rgb), 0.05);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qualified-investor-checkbox:hover {
  border-color: rgba(var(--color-white-rgb), 0.5);
  background: rgba(var(--color-white-rgb), 0.1);
}

.qualified-investor-checkbox:focus {
  outline: none;
  border-color: rgba(var(--color-accent-main-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-main-rgb), 0.2);
}

.qualified-investor-checkbox:checked {
  background: var(--color-accent-main);
  border-color: var(--color-accent-main);
  box-shadow: 0 2px 8px rgba(var(--color-accent-main-rgb), 0.3);
}

.qualified-investor-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkmark 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
  }

  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.checkbox-text {
  flex: 1;
  height: 100%;
  margin-top: 2px;
}

.checkbox-text a {
  color: var(--color-accent-main);
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.7s ease;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

/* disable all over state of elements in the form-submit-wrapper */
.form-submit-wrapper:has(.form-submit:disabled) * {
  opacity: 0.6 !important;
  pointer-events: none !important;
}

/* Checkbox error state */
.qualified-investor-checkbox.error {
  border-color: rgba(255, 60, 60, 0.6) !important;
  background: rgba(255, 60, 60, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.2) !important;
}

.qualified-investor-checkbox.error:checked {
  border-color: rgba(255, 60, 60, 0.8) !important;
  background: linear-gradient(135deg,
      rgba(255, 60, 60, 0.8),
      rgba(255, 60, 60, 0.6)) !important;
}