.contact-container {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: var(--color-gray-900);
  border: 1px solid rgba(188, 160, 106, 0.15);
}

@media (min-width: 1024px) {
  .contact-container {
    flex-direction: row;
    min-height: 600px;
  }
}

.contact-info-side {
  background-color: #1a1715;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contact-info-side {
    width: 40%;
    padding: 3rem;
  }
  .contact-form-side {
    padding: 3rem;
    flex: 1;
  }
}

.contact-form-side {
  background-color: #14100d;
  padding: 1rem;
  flex: 1;
  transition: background-color 0.3s ease;
}

html.light .contact-form-side,
.light .contact-form-side {
  background-color: #fdfaf3;
}

.contact-info-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  gap: 2rem;
}

.contact-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(188, 160, 106, 0.3);
  background: rgba(188, 160, 106, 0.08);
  color: #d9bc85;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  opacity: 1;
  transform: none;
  animation: ciFadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease, background 0.3s ease;
}

@media (min-width: 768px) {
  .contact-info-badge {
    font-size: 1rem;
  }
}

.contact-info-badge:active,
.contact-info-badge:hover {
  transform: scale(1.06);
  background: rgba(188, 160, 106, 0.14);
  box-shadow: 0 8px 20px -6px rgba(188, 160, 106, 0.35);
}

.contact-info-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bca06a;
  animation: ciPulse 2s ease-in-out infinite;
}

.contact-logo-img {
  opacity: 1;
  transform: none;
  animation: ciFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease, border-color 0.35s ease;
   box-shadow: 0 25px 50px -12px rgba(188, 160, 106, 0.35);  
   border-color: rgba(188, 160, 106, 0.5);       
}

.aegis-brand {
  font-family: "Axmiq Richard Regular", "Axmiq_Richard_Regular", serif !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 1px rgba(255, 245, 214, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #fff5d6 25%, #d4af37 55%, #bca06a 80%, #fef08a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
  display: inline-flex;
  align-items: flex-start;
}

:root.light .aegis-brand,
html.light .aegis-brand {
  background: linear-gradient(135deg, #4a3410 0%, #856124 35%, #bca06a 70%, #402c0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.8px rgba(188, 160, 106, 0.4);
  filter: drop-shadow(0 2px 10px rgba(188, 160, 106, 0.3));
}

:root.light .contact-info-side .aegis-brand,
html.light .contact-info-side .aegis-brand {
  background: linear-gradient(135deg, #ffffff 0%, #fff5d6 25%, #d4af37 55%, #bca06a 80%, #fef08a 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1px rgba(255, 245, 214, 0.5) !important;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)) !important;
}

.contact-logo-img:hover {
  transform: scale(1.09);
  border-color: rgba(188, 160, 106, 0.5);
  box-shadow: 0 25px 50px -12px rgba(188, 160, 106, 0.35);
}

.contact-logo-img:active {
  transform: scale(1.1);
}

.contact-info-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 1;
  transform: none;
  animation: ciFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards;
}

.contact-info-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease;
}

.contact-info-stat:active,
.contact-info-stat:hover {
  transform: scale(1.1);
  background: rgba(188, 160, 106, 0.08);
}

.contact-info-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #d9bc85;
}

.contact-info-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.contact-info-divider {
  width: 1px;
  height: 32px;
  background: rgba(188, 160, 106, 0.25);
}

@keyframes ciFadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ciFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ciPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(188, 160, 106, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(188, 160, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-info-badge,
  .contact-logo-img,
  .contact-info-footer {
    animation: none !important;
  }
}

.contact-input-group {
  margin-bottom: 0;
  position: relative;
}

.contact-floating-group {
  position: relative;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.contact-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(188, 160, 106, 0.35);
  border-radius: 0.75rem;
  color: #f3f4f6;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

/* Floating label: Starts INSIDE input box as placeholder, moves UP to top border on focus/input */
.contact-floating-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  padding: 0 0.35rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #9ca3af;
  background-color: transparent;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: capitalize;
  letter-spacing: 0.02em;
  z-index: 10;
  line-height: 1;
}

html.light .contact-floating-label,
.light .contact-floating-label {
  color: #6b7280;
  background-color: transparent;
}

.contact-input::placeholder {
  color: transparent;
}

html.light .contact-input,
.light .contact-input {
  background-color: #ffffff;
  color: #111827;
  border-color: rgba(188, 160, 106, 0.4);
}

html.light .contact-input::placeholder,
.light .contact-input::placeholder {
  color: transparent;
}

.contact-input:focus {
  outline: none;
  border-color: #d49033;
  box-shadow: 0 0 16px rgba(212, 144, 51, 0.3);
}

/* Floating State: Smoothly moves UP to top border line when focused or text is entered */
.contact-floating-input:focus + .contact-floating-label,
.contact-floating-input:not(:placeholder-shown) + .contact-floating-label {
  top: -0.62rem;
  left: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d49033;
  background-color: #14100d;
  border-radius: 0.25rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

html.light .contact-floating-input:focus + .contact-floating-label,
html.light .contact-floating-input:not(:placeholder-shown) + .contact-floating-label {
  color: #9c804c;
  background-color: #fdfaf3;
}

.contact-submit-btn {
  background-color: #D9B164;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(217, 177, 100, 0.2);
}

.contact-submit-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 5px 10px rgba(217, 177, 100, 0.2);
}

.info-bubble {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  background: #1a1715;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(188, 160, 106, 0.2);
  min-width: 0;
  color: #f3f4f6;
  transition: all 0.3s ease;
}

.info-text p {
  font-size: 0.8125rem;
  color: #9ca3af;
}

html.light .info-bubble,
.light .info-bubble {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(188, 160, 106, 0.15);
}

html.light .info-text p,
.light .info-text p {
  color: #6b7280;
}

.info-icon {
  width: 3rem;
  height: 3rem;
  background-color: #D9B164;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text {
  min-width: 0;
  flex: 1;
}

.info-text h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
  color: var(--color-primary-600);
}

.info-text a {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: nowrap;
  font-size: clamp(0.78rem, 2.2vw, 1.15rem) !important;
  line-height: 1.4;
  display: block;
  max-width: 100%;
}

.contact-hero-underline {
  height: 3px;
  width: 120px;
  background-color: #bca06a;
  margin: 1rem auto 3rem;
  position: relative;
}

.contact-hero-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 1px;
  background-color: #D9B164;
}

.footer-orb {
  animation: ftOrbPulse 14s ease-in-out infinite alternate;
}

.footer-orb-l {
  animation-duration: 19s;
  animation-delay: -5s;
}

.footer-orb-r {
  animation-duration: 22s;
  animation-delay: -11s;
}

@keyframes ftOrbPulse {
  0% {
    transform: scale(1) translateY(0px);
  }
  50% {
    transform: scale(1.08) translateY(-18px);
  }
  100% {
    transform: scale(0.95) translateY(10px);
  }
}

.footer-orb-main {
  animation-name: ftOrbMain;
}

@keyframes ftOrbMain {
  0% {
    transform: translateX(-50%) scale(1) translateY(0px);
  }
  50% {
    transform: translateX(-50%) scale(1.06) translateY(-20px);
  }
  100% {
    transform: translateX(-50%) scale(0.97) translateY(8px);
  }
}

.footer-shield {
  animation: ftShieldSpin 120s linear infinite;
  transform-origin: center;
}

:root.light .footer-shield,
html.light .footer-shield {
  opacity: 0.045;
}

@keyframes ftShieldSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.footer-topline {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(188, 160, 106, 0.5) 25%,
    rgba(188, 160, 106, 0.85) 50%,
    rgba(188, 160, 106, 0.5) 75%,
    transparent 100%
  );
}

:root.light .footer-topline,
html.light .footer-topline {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(156, 128, 76, 0.4) 25%,
    rgba(156, 128, 76, 0.7) 50%,
    rgba(156, 128, 76, 0.4) 75%,
    transparent 100%
  );
}

:root.light .footer-orb-main,
html.light .footer-orb-main {
  background: radial-gradient(
    circle,
    rgba(188, 160, 106, 0.11) 0%,
    rgba(188, 160, 106, 0.03) 45%,
    transparent 70%
  ) !important;
}

:root.light .footer-orb-l,
:root.light .footer-orb-r,
html.light .footer-orb-l,
html.light .footer-orb-r {
  background: radial-gradient(circle, rgba(188, 160, 106, 0.06) 0%, transparent 70%) !important;
}

:root.light #footer-aurora,
html.light #footer-aurora {
  opacity: 0.2;
}

.footer-ember {
  position: absolute;
  border-radius: 50%;
  background: rgba(188, 160, 106, 0.7);
  box-shadow: 0 0 6px 2px rgba(188, 160, 106, 0.4);
  animation: ftEmberRise linear infinite;
  pointer-events: none;
}

:root.light .footer-ember,
html.light .footer-ember {
  background: rgba(156, 128, 76, 0.5);
  box-shadow: 0 0 4px 1px rgba(156, 128, 76, 0.3);
}

@keyframes ftEmberRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-320px) translateX(var(--drift)) scale(0.3);
    opacity: 0;
  }
}

.cf-input-error {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* Contact Module Heading & Subtitle Font Styling */
.contact-hero-heading {
  font-family: 'Poppins', 'Roboto', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.contact-tagline-sub {
  font-family: 'Poppins', 'Roboto', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1.6 !important;
  color: #f3f4f6 !important;
}

:root.light .contact-tagline-sub,
html.light .contact-tagline-sub,
:root.light .contact-info-side .contact-tagline-sub,
html.light .contact-info-side .contact-tagline-sub {
  color: #f3f4f6 !important;
}

.cf-error-msg {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f87171;
  margin-top: 0.5rem;
  min-height: 1.25rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.cf-error-msg:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

html.light .cf-error-msg,
.light .cf-error-msg {
  color: #ef4444;
}
/* Enhanced Hover and Color Effects for Info Bubble */
.info-bubble {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-bubble:hover {
  transform: translateY(-4px);
  border-color: #D9B164;
  box-shadow: 0 10px 30px rgba(217, 177, 100, 0.15);
}

.info-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-bubble:hover .info-icon {
  background-color: #f5cf7b;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(217, 177, 100, 0.4);
}

.info-text a {
  color: #D9B164 !important;
  transition: color 0.3s ease;
}

.info-bubble:hover .info-text a {
  color: #f5cf7b !important;
}

html.light .info-bubble:hover,
.light .info-bubble:hover {
  box-shadow: 0 10px 30px rgba(217, 177, 100, 0.2);
}