/* ==========================================
   CONTACT US PAGE STYLESHEET
   website_kai/src/css/contactus.css
   ========================================== */

:root {
  --bg: #120F0F;
  --bg-elevated: #16100f;
  --accent-warm: #c2452b;
  --accent-red: #fb1650;
  --accent-yellow: #FFCE1B;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f5;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --font-sora: "Sora", sans-serif;
  --font-mono: "JetBrains Mono", "Space Mono", monospace;
  --font-sans: "DM Sans", "Inter", -apple-system, sans-serif;
  --font-btn: "JetBrains Mono", "DM Sans", monospace, sans-serif;
  --container-max: 1376px;
  --page-margin-offset: clamp(16px, 4.5vw, 64px);
  --page-gutter: clamp(16px, 3vw, 32px);
  --radius: 8px;
}

/* Base Body Styling */
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Page Vertical Sheet Borders Frame */
.page-margins {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - (var(--page-margin-offset) * 2));
  max-width: var(--container-max);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 10;
  display: block !important;
}



/* Page Section Container */
.contactus-page {
  width: 100%;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.contactus-hero {
  width: 100%;
  padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 6vw, 80px) 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contactus-container {
  max-width: var(--container-max);
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding-inline: calc(var(--page-margin-offset) + var(--page-gutter));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-start;
  box-sizing: border-box;
}

/* Left Column Styling */
.contactus-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.contactus-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: clamp(16px, 2.5vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 16, 15, 0.65);
  letter-spacing: 1px;
  width: fit-content;
  box-sizing: border-box;
}

.chip-dot-red {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.contactus-title {
  font-family: var(--font-sora);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 clamp(20px, 2.5vw, 32px) 0;
  word-break: break-word;
  max-width: 100%;
}

.contactus-desc {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

.desktop-break {
  display: block;
}

/* Right Column Card & Form Styling */
.contactus-right {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contactus-card {
  background: rgba(26, 20, 20, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: clamp(28px, 3.5vw, 44px);
  width: 100%;
  min-height: 520px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: min-height 0.3s ease;
}

.contactus-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  height: 52px;
  background-color: rgba(52, 32, 31, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255, 206, 27, 0.15);
}

.form-textarea {
  height: 110px;
  padding: 14px 16px;
  resize: none;
}

/* Error State Styling */
.form-input.input-error {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 8px rgba(251, 22, 80, 0.2) !important;
}

.error-msg {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  letter-spacing: 1px;
  margin-top: 6px;
  text-transform: uppercase;
}

.form-group.has-error .error-msg {
  display: block;
}

/* Submit Button */
.contactus-submit-btn {
  background-color: #8c7918;
  color: rgba(0, 0, 0, 0.7);
  font-family: var(--font-btn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  height: 44px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
  margin-top: 8px;
  box-sizing: border-box;
}

.contactus-submit-btn.btn-active {
  background-color: var(--accent-yellow) !important;
  color: #000000 !important;
}

.contactus-submit-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 206, 27, 0.3);
}

/* Thank You Success State */
.contactus-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 440px;
  padding: 20px;
  box-sizing: border-box;
}

.thank-you-title {
  font-family: var(--font-sora);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.thank-you-title .accent-yellow {
  color: var(--accent-yellow);
}

.thank-you-subtext {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================
   MOBILE RESPONSIVE PASS (width < 768px)
   ========================================== */
@media (max-width: 767px) {
  :root {
    --page-margin-offset: clamp(12px, 3.5vw, 24px);
    --page-gutter: clamp(12px, 3vw, 20px);
  }

  .contactus-page {
    margin-top: 70px;
  }

  .contactus-hero {
    padding: 24px 0 48px 0;
  }

  .contactus-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-inline: calc(var(--page-margin-offset) + var(--page-gutter)) !important;
  }

  .contactus-left {
    width: 100%;
  }

  .contactus-badge {
    margin-bottom: 16px;
  }

  .contactus-title {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .desktop-break {
    display: none !important;
  }

  .contactus-desc {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
  }

  .contactus-right {
    width: 100%;
  }

  /* Form fields on mobile sit directly on page background (no outer card border/background) */
  .contactus-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    min-height: auto !important;
  }

  /* Thank-you success state on mobile DOES sit inside a bordered card */
  .contactus-card.is-success-card {
    background: rgba(26, 20, 20, 0.50) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 36px 20px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .contactus-form {
    width: 100%;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-input {
    height: 48px;
    font-size: 14px;
  }

  .form-textarea {
    height: 110px;
  }

  /* Full width submit button on mobile */
  .contactus-submit-btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: 48px !important;
    margin-top: 12px !important;
  }

  .contactus-success-state {
    min-height: auto !important;
    padding: 10px 0 !important;
  }

  .thank-you-title {
    font-size: 22px !important;
  }

  .thank-you-subtext {
    font-size: 14px !important;
  }
}

/* ==========================================
   MOBILE & TABLET NAVBAR DRAWER & DROPDOWN PASS (width <= 1199px)
   Identical to FAQpage.css rules
   ========================================== */
@media (max-width: 1199px) {

}

/* ==========================================
   TABLET RESPONSIVE PASS (768px <= width <= 1199px)
   Per Kompact New Design (7) tablet reference
   ========================================== */
@media (min-width: 768px) and (max-width: 1199px) {




  /* Contact Us Main Page Layout Tablet Rules per Group 1686552912.png */
  .contactus-page {
    margin-top: 80px;
  }

  .contactus-hero {
    padding: 40px 0 60px 0;
  }

  .contactus-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px !important;
    box-sizing: border-box;
  }

  .contactus-left {
    width: 100%;
  }

  .contactus-title {
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .contactus-desc {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  .contactus-right {
    width: 100%;
  }

  .contactus-card {
    background: rgba(26, 20, 20, 0.50) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 36px 32px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    min-height: auto !important;
  }

  .contactus-submit-btn {
    width: auto !important;
    padding: 0 36px !important;
    height: 48px !important;
  }
}



  /* ════════════════════════════════════════════════
     UPPER LINE REMOVAL & FOOTER LOWER LINE RESTORATION (<= 1024px)
  ════════════════════════════════════════════════ */
  /* 1. Restore Footer's own Top Border (Lower Line) */
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* 2. Hide horizontal line dividers directly above footer */
  .line-horizontal,
  .line-horizontal:last-of-type,
  main > .line-horizontal:last-child {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Hide dummy/glow sections right above footer */
  .why-section[style*="min-height:0"],
  .get-started-section[style*="min-height:0"],
  .why-section:last-of-type,
  .get-started-section:last-of-type {
    border-top: none !important;
    border-bottom: none !important;
    display: none !important;
  }

  /* 4. Remove section bottom borders right above footer on mobile (Upper Line) */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .models-section,
  .faq-accordion-list,
  .dev-section,
  .tribute-section,
  .community-section,
  .jobs-grid,
  .dynamic-jd-wrapper,
  .phil2-contact-section,
  .phil-status-contact,
  .related-videos,
  .event-detail-body,
  .gallery-large,
  .event-quote,
  .event-meta,
  .md-code-tablet,
  .session-header-row {
    border-bottom: none !important;
  }


/* ════════════════════════════════════════════════
   MOBILE FOOTER OVERRIDES (<= 1024px)
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
    background: #1c1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-sizing: border-box !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 10 !important;
  }

  
  /* Remove section bottom border right above footer on mobile to eliminate upper line */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .phil2-mobile-page-wrapper > main > section:last-of-type,
  .phil-mobile-page-wrapper > main > section:last-of-type,
  .sbox-page section:last-of-type,
  .page-section:last-of-type,
  .faq-section,
  .get-started-section,
  .community-section,
  .related-videos,
  .phil2-contact-section {
    border-bottom: none !important;
  }

  body .footer .footer-inner,
  body footer#footer-mobile .footer-inner,
  .footer-inner {
    width: calc(100% - (var(--page-margin-offset, 16px) * 2)) !important;
    max-width: var(--container-max, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
  }

  /* Top Nav Row */
  body .footer .footer-nav-row,
  body footer#footer-mobile .footer-nav-row,
  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-links,
  body footer#footer-mobile .footer-nav-links,
  .footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-link,
  body footer#footer-mobile .footer-nav-link,
  .footer-nav-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Social Icons */
  body .footer .footer-socials,
  body footer#footer-mobile .footer-socials,
  .footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body .footer .social-icon,
  body footer#footer-mobile .social-icon,
  .social-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .social-icon svg path,
  body .footer .social-icon svg circle,
  body footer#footer-mobile .social-icon svg path,
  body footer#footer-mobile .social-icon svg circle,
  .social-icon svg path,
  .social-icon svg circle {
    stroke: #000000 !important;
    fill: #000000 !important;
  }

  body .footer .social-icon svg path[fill="none"],
  body footer#footer-mobile .social-icon svg path[fill="none"],
  .social-icon svg path[fill="none"] {
    fill: none !important;
  }

  /* Middle Row: Addresses & Logos */
  body .footer .footer-bottom-row,
  body footer#footer-mobile .footer-bottom-row,
  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Addresses: Left (Bengaluru) & Right (Palo Alto) */
  body .footer .footer-addresses,
  body footer#footer-mobile .footer-addresses,
  .footer-addresses {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-address:first-child,
  body footer#footer-mobile .footer-address:first-child,
  .footer-address:first-child {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-address:last-child,
  body .footer .footer-address:nth-child(2),
  body footer#footer-mobile .footer-address:last-child,
  body footer#footer-mobile .footer-address:nth-child(2),
  .footer-address:last-child,
  .footer-address:nth-child(2) {
    flex: 1 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-city,
  body footer#footer-mobile .footer-city,
  .footer-city {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  body .footer .footer-addr-text,
  body footer#footer-mobile .footer-addr-text,
  .footer-addr-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* ZIROHLabs Logo: Below Addresses, Left Aligned */
  body .footer .footer-ziroh,
  body footer#footer-mobile .footer-ziroh,
  .footer-ziroh {
    order: 2 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    text-align: left !important;
  }

  body .footer .ziroh-logo,
  body footer#footer-mobile .ziroh-logo,
  .ziroh-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Big K. Square Logo: Below ZIROHLabs Logo, Left Aligned */
  body .footer .footer-big-logo,
  body footer#footer-mobile .footer-big-logo,
  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  body .footer .big-k-square,
  body footer#footer-mobile .big-k-square,
  .big-k-square {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
    display: block !important;
    margin-left: 0 !important;
  }

  /* Bottom Legal Section */
  body .footer .footer-legal,
  body footer#footer-mobile .footer-legal,
  .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-legal-links,
  body footer#footer-mobile .footer-legal-links,
  .footer-legal-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    order: 1 !important;
    width: 100% !important;
  }

  body .footer .footer-legal-links a,
  body footer#footer-mobile .footer-legal-links a,
  .footer-legal-links a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .footer-copyright,
  body footer#footer-mobile .footer-copyright,
  .footer-copyright {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    order: 2 !important;
    width: 100% !important;
    text-align: left !important;
  }
}




/* ════════════════════════════════════════════════
   ACTIVE FOOTER LINK HIGHLIGHT (#FFCE1B)
════════════════════════════════════════════════ */
.footer-nav-link.active,
.footer-nav-link.active-page,
a.footer-nav-link.active {
  color: #FFCE1B !important;
}

@media (max-width: 1024px) {

  /* High specificity active footer link color override */
  body .footer .footer-nav-link.active,
  body footer#footer-mobile .footer-nav-link.active,
  body footer#footer-desktop .footer-nav-link.active,
  .footer-nav-links a.active,
  .footer-nav-link.active,
  .footer-nav-link.active-page,
  a.footer-nav-link.active {
    color: #FFCE1B !important;
  }

}


/* ════════════════════════════════════════════════
   PAGE-SPECIFIC ACTIVE FOOTER LINK HIGHLIGHT (#FFCE1B)
════════════════════════════════════════════════ */
.footer-nav-link.active,
body .footer .footer-nav-link.active,
body footer#footer-mobile .footer-nav-link.active,
body footer#footer-desktop .footer-nav-link.active,
.footer-nav-links a.active {
  color: #FFCE1B !important;
}
