/* ═══════════════════════════════════════════════
   DataScienceRex – Contact Page Styles
   ═══════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
}

html,
body {
  background-color: #030b1c !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Divi / WordPress overrides ── */
#page-container,
#et-main-area,
#main-content,
#left-area,
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module,
.entry-content,
.post-content,
.page-content,
.wp-block-post-content,
.site-main,
#primary,
#main,
article {
  background: transparent !important;
  overflow: visible !important;
}

.et_pb_section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

#main-content .container,
.et_pb_column .et_pb_module {
  max-width: 100% !important;
  width: 100% !important;
}

#left-area {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

/* ── Design tokens ── */
#dsrexContact,
#dsrexContact * {
  box-sizing: border-box !important;
}

#dsrexContact {
  --text: #f4f7ff;
  --soft: #95a4c2;
  --blue: #00c2ff;
  --blue-2: #2563ff;
  --line: rgba(255, 255, 255, 0.08);

  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at top center, rgba(0, 119, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #06112b 0%, #020814 38%, #000000 100%) !important;
  color: var(--text) !important;
  font-family: Inter, Arial, sans-serif !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
}

#dsrexContact .container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

/* ══════════════════════════════════
   Navbar (matching home/events/about)
   ══════════════════════════════════ */
#dsrexContact .rab-nav {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  background: rgba(3, 11, 28, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 24px !important;
  margin: 0 !important;
}

body.admin-bar #dsrexContact .rab-nav {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar #dsrexContact .rab-nav {
    top: 46px !important;
  }
}

#dsrexContact .rab-nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-height: 68px !important;
}

#dsrexContact .rab-nav-logo {
  display: inline-flex !important;
  align-items: baseline !important;
  flex-shrink: 0 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

#dsrexContact .rab-nav-logo span {
  background: linear-gradient(90deg, #00d0ff 0%, #4997ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

#dsrexContact .rab-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#dsrexContact .rab-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding: 10px 14px !important;
  color: #d7def1 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: color 0.2s ease, background 0.2s ease !important;
}

#dsrexContact .rab-nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

#dsrexContact .rab-nav-link.rab-nav-active {
  color: #00c2ff !important;
  background: rgba(0, 194, 255, 0.1) !important;
}

/* ── Hamburger button ── */
#dsrexContact .rab-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

#dsrexContact .rab-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#dsrexContact .rab-nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#dsrexContact .rab-nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

#dsrexContact .rab-nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  #dsrexContact .rab-nav {
    padding: 0 12px !important;
  }

  #dsrexContact .rab-nav-inner {
    min-height: 68px !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 0;
    flex-wrap: wrap !important;
  }

  #dsrexContact .rab-nav-hamburger {
    display: flex !important;
  }

  #dsrexContact .rab-nav-links {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 8px 0 16px !important;
    gap: 2px !important;
  }

  #dsrexContact .rab-nav-links.nav-open {
    display: flex !important;
  }

  #dsrexContact .rab-nav-link {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
}

/* ══════════════════════════════════
   Hero / Page header
   ══════════════════════════════════ */
#dsrexContact .contact-hero {
  text-align: center;
  padding: 110px 20px 48px;
}

#dsrexContact .section-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

#dsrexContact .contact-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  color: #fff;
  font-weight: 800;
}

#dsrexContact .contact-subtitle {
  margin: 0;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

/* ══════════════════════════════════
   Google Map
   ══════════════════════════════════ */
#dsrexContact .map-section {
  margin-bottom: 48px;
}

#dsrexContact .map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

#dsrexContact .map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* ══════════════════════════════════
   Info Cards – Horizontal Row
   ══════════════════════════════════ */
#dsrexContact .contact-info-row {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

#dsrexContact .info-card {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(13, 27, 58, 0.95), rgba(10, 21, 45, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

#dsrexContact .info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 255, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

#dsrexContact .info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 194, 255, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

#dsrexContact .info-icon svg {
  width: 24px;
  height: 24px;
}

#dsrexContact .info-text h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
}

#dsrexContact .info-text p {
  margin: 0 0 2px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

#dsrexContact .info-text a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

#dsrexContact .info-text a:hover {
  color: #fff;
}

/* ══════════════════════════════════
   Formidable Form Card
   ══════════════════════════════════ */

/* ══════════════════════════════════
   Formidable Forms – Dark Theme Overrides
   ══════════════════════════════════ */

/* Container – styled as a centered card */
#frm_form_2_container {
  max-width: 680px !important;
  margin: 0 auto 64px !important;
  background: linear-gradient(180deg, rgba(13, 27, 58, 0.95), rgba(10, 21, 45, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35) !important;
}

#frm_form_2_container *,
#frm_form_2_container *::before,
#frm_form_2_container *::after {
  box-sizing: border-box !important;
}

/* Labels */
#frm_form_2_container label,
#frm_form_2_container .frm_primary_label,
#frm_form_2_container .frm_form_field label {
  color: #c6d0e6 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: Inter, Arial, sans-serif !important;
  margin-bottom: 8px !important;
}

/* Description / helper text */
#frm_form_2_container .frm_description,
#frm_form_2_container .frm_error {
  color: white !important;
  font-size: 13px !important;
}

#frm_form_2_container .frm_error {
  color: #ff4d6a !important;
}

/* Text inputs, email, textareas */
#frm_form_2_container input[type="text"],
#frm_form_2_container input[type="email"],
#frm_form_2_container input[type="url"],
#frm_form_2_container input[type="tel"],
#frm_form_2_container input[type="number"],
#frm_form_2_container input[type="password"],
#frm_form_2_container select,
#frm_form_2_container textarea {
  width: 100% !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #f4f7ff !important;
  font-size: 15px !important;
  font-family: Inter, Arial, sans-serif !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
  -webkit-appearance: none !important;
}

#frm_form_2_container input::placeholder,
#frm_form_2_container textarea::placeholder {
  color: rgba(149, 164, 194, 0.6) !important;
}

#frm_form_2_container input:focus,
#frm_form_2_container textarea:focus,
#frm_form_2_container select:focus {
  border-color: #00c2ff !important;
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15) !important;
}

#frm_form_2_container textarea {
  resize: vertical !important;
  min-height: 120px !important;
}

/* Field groups – spacing */
#frm_form_2_container .frm_form_field,
#frm_form_2_container .form-field {
  margin-bottom: 20px !important;
}

/* Submit button */
#frm_form_2_container .frm_submit button,
#frm_form_2_container .frm_submit input[type="submit"],
#frm_form_2_container .frm_button_submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 24px !important;
  background: linear-gradient(90deg, #00bfff, #2563ff) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: Inter, Arial, sans-serif !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 0 28px rgba(0, 194, 255, 0.2) !important;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

#frm_form_2_container .frm_submit button:hover,
#frm_form_2_container .frm_submit input[type="submit"]:hover,
#frm_form_2_container .frm_button_submit:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.1) !important;
  box-shadow: 0 4px 32px rgba(0, 194, 255, 0.35) !important;
}

/* Success / confirmation message */
#frm_form_2_container .frm_message,
#frm_form_2_container .frm_success_style {
  color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.08) !important;
  border: 1px solid rgba(74, 222, 128, 0.2) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  font-size: 15px !important;
}

/* Error highlight on invalid fields */
#frm_form_2_container .frm_blank_field input,
#frm_form_2_container .frm_blank_field textarea,
#frm_form_2_container .frm_blank_field select {
  border-color: #ff4d6a !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.15) !important;
}

/* Kill any default Formidable backgrounds / borders that leak through */
#frm_form_2_container .frm_form_fields,
#frm_form_2_container fieldset {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Required asterisk */
#frm_form_2_container .frm_required {
  color: #ff4d6a !important;
}

/* ══════════════════════════════════
   Footer
   ══════════════════════════════════ */
#dsrexContact .site-footer {
  text-align: center;
  padding: 24px 20px;
  background: rgba(3, 12, 31, 0.95);
  border-top: 1px solid var(--line);
}

#dsrexContact .site-footer p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

/* ══════════════════════════════════
   Reveal animation
   ══════════════════════════════════ */
#dsrexContact .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#dsrexContact .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   Keyframes
   ══════════════════════════════════ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════
   Responsive
   ══════════════════════════════════ */
@media (max-width: 880px) {
  #dsrexContact .contact-info-row {
    flex-direction: column;
  }

  #frm_form_2_container {
    max-width: 100% !important;
    margin: 28px 20px !important;
  }

  #dsrexContact .contact-hero {
    padding: 92px 16px 36px;
  }
}

@media (max-width: 480px) {
  #frm_form_2_container {
    margin: 20px 14px !important;
  }

  #dsrexContact .info-card {
    padding: 18px 14px;
  }

  #dsrexContact .map-wrapper iframe {
    height: 280px;
  }

  #dsrexContact .contact-hero {
    padding: 80px 12px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dsrexContact *,
  #dsrexContact *::before,
  #dsrexContact *::after {
    animation: none !important;
    transition: none !important;
  }
}
