/* ===========================
   Contact Us Page Styles
   Equus Energy
   =========================== */

/* ===========================
   Theme Variables
   =========================== */
:root {
  --brand-gradient: linear-gradient(135deg, var(--brand), var(--brand-2));
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-hover: 0 20px 40px color-mix(in srgb, var(--brand) 20%, transparent);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --contact-blue: #3498db;
  --contact-green: #2ecc71;
  --contact-amber: #f39c12;
  --contact-red: #e74c3c;
  --contact-purple: #9b59b6;
}

html[data-theme="dark"] {
  --glass-bg: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===========================
   Container
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.container-fluid {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ===========================
   Section Header
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-header.left h2 {
  display: block;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-header.left p {
  margin: 0 0 20px 0;
  max-width: 600px;
}

.section-tag {
  display: inline-block;
  padding: 8px 22px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  backdrop-filter: blur(10px);
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   Hero Section
   =========================== */
.contact-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
 background: linear-gradient(135deg, #0b0f14 0%, #1a1f26 100%);
  overflow: hidden;
  padding: 120px 20px;
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
   
    url('../assets/Image-Equus/Equus-Pic-Mocks/img76jh.jpg');
  background-size: cover, cover, cover;
  background-position: center;
  background-blend-mode: overlay;
  opacity: 0.7;
  animation: zoomBg 30s infinite alternate;
}

@keyframes zoomBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 10px 28px;
  background: var(--brand-gradient);
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 40%, transparent);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.contact-hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;

  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat-brick {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stat-brick-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
}

.stat-brick-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
  z-index: 4;
  animation: scrollBounce 2.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero-scroll i {
  font-size: 1.4rem;
}

/* ===========================
   Contact Main Section
   =========================== */
.contact-main {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 20px;
}

/* Contact Info Grid */
.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.contact-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px 25px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--brand), var(--brand-2));
  transition: height 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.contact-card:hover::before {
  height: 100%;
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-card-icon i {
  font-size: 1.8rem;
  color: white;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text);
}

.contact-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-card p strong {
  color: var(--text);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.card-link:hover {
  gap: 12px;
  color: var(--brand-2);
}

/* Social Connect */
.social-connect {
  margin-top: 20px;
}

.social-connect h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-5px);
  border-color: var(--brand);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--surface);
  border-radius: 40px;
  padding: 50px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text);
}

.form-intro {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group.half {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 15px;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
  background: var(--surface-2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.checkbox-label span {
  color: var(--text);
  font-size: 0.95rem;
}

.checkbox-label a {
  color: var(--brand);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.form-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.form-note i {
  color: var(--brand);
}

.btn-large {
  width: 100%;
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 50px;
}

/* ===========================
   Global Offices Section
   =========================== */
.global-offices {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

.offices-tabs {
  margin-top: 50px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  border-radius: 50px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border-color: var(--brand);
  color: var(--brand);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-color: transparent;
}

.tabs-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.office-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
}

.office-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.office-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}

.office-header i {
  font-size: 1.5rem;
  color: var(--brand);
}

.office-header h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
}

.office-badge {
  margin-left: auto;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.office-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.office-details i {
  width: 20px;
  color: var(--brand);
  font-size: 1rem;
}

/* ===========================
   Map Section
   =========================== */
.map-section {
  padding: 0;
  background: var(--bg);
  position: relative;
}

.map-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.google-map {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10;
}

.map-placeholder {
  text-align: center;
  color: white;
  padding: 40px;
}

.map-placeholder i {
  font-size: 4rem;
  color: var(--brand);
  margin-bottom: 20px;
}/* ===========================
   Leaflet Map Styles
   =========================== */
.leaflet-map {
    width: 100%;
    height: 500px;
    background: var(--surface-2);
    border-radius: 30px;
    box-shadow: var(--shadow);
    z-index: 1;
}

.leaflet-container {
    border-radius: 30px;
    font-family: inherit;
}

.leaflet-popup-content-wrapper {
    background: var(--surface);
    color: var(--text);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}

.leaflet-popup-content {
    margin: 15px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.leaflet-popup-content strong {
    color: var(--brand);
    font-size: 1.1rem;
}

.leaflet-popup-tip {
    background: var(--surface);
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 10px;
    border-radius: 20px 0 0 0;
    padding: 4px 8px;
}

.leaflet-control-attribution a {
    color: var(--brand) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--surface-2) !important;
    color: var(--brand) !important;
}

/* Custom marker styles */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(237, 46, 46, 0.3);
    border: 2px solid white;
    transition: transform 0.2s ease;
}

.marker-icon:hover {
    transform: scale(1.1);
}

.marker-icon i {
    font-size: 1.2rem;
}

/* Dark theme adjustments */
html[data-theme="dark"] .leaflet-tile {
    filter: brightness(0.8) invert(1) contrast(1.2);
}

html[data-theme="dark"] .leaflet-container {
    background: #1a1e24;
}

html[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: var(--surface);
    color: var(--text);
}

html[data-theme="dark"] .leaflet-popup-tip {
    background: var(--surface);
}

/* Responsive */
@media (max-width: 768px) {
    .leaflet-map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .leaflet-map {
        height: 350px;
    }
}

.map-placeholder h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: white;
}

.map-placeholder p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.map-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.map-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 5px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.map-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Dynamic Contact Section (Axios)
   =========================== */
.dynamic-contact-section {
  padding: 120px 0;
  background: var(--surface);
}

.dynamic-loading,
.dynamic-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
  background: var(--surface-2);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.dynamic-loading i,
.dynamic-error i {
  font-size: 3rem;
  margin-bottom: 20px;
}

.dynamic-loading i {
  color: var(--brand);
}

.dynamic-error i {
  color: #dc3545;
}

.dynamic-loading span,
.dynamic-error span {
  font-size: 1.1rem;
  color: var(--muted);
}

.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.dynamic-card {
  background: var(--bg);
  border-radius: 30px;
  padding: 35px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.dynamic-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.dynamic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--brand), var(--brand-2));
  transition: height 0.3s ease;
}

.dynamic-card:hover::before {
  height: 100%;
}

.dynamic-region {
  display: inline-block;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.dynamic-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--text);
}

.dynamic-contact-details {
  margin: 20px 0;
}

.dynamic-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 10%, transparent);
}

.dynamic-contact-item:last-child {
  border-bottom: none;
}

.dynamic-contact-item i {
  color: var(--brand);
  width: 20px;
}

.dynamic-hours {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dynamic-hours i {
  color: var(--brand);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
  padding: 100px 0;
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.faq-item {
  background: var(--surface);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.faq-question i {
  color: var(--brand);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 20px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* ===========================
   Contact CTA Section
   =========================== */
.contact-cta {
  padding: 120px 0;
  background:
    url('../assets/Image-Equus/img7ds.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
  overflow: hidden;
}/* ===========================
   Mobile Fixes for Contact Page
   =========================== */

@media (max-width: 768px) {
    /* Fix for contact CTA section */
    .contact-cta {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .contact-cta::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      
        z-index: 1;
        pointer-events: none;
    }
    
    .contact-cta .container {
        position: relative;
        z-index: 2;
    }
    
    /* Fix for careers section */
    .careers-section {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .careers-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    
        z-index: 1;
        pointer-events: none;
    }
    
    .careers-section .container {
        position: relative;
        z-index: 2;
    }
    
    .careers-section .section-header h2,
    .careers-section .section-header p,
    .careers-section .section-tag {
        color: white !important;
    }
    
    /* Fix for contact cards on mobile */
    .contact-cards {
        grid-template-columns: 1fr !important;
    }
    
    .contact-card {
        padding: 25px !important;
    }
    
    /* Fix for office tabs on mobile */
    .tabs-nav {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .tab-btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Fix for office cards */
    .offices-grid {
        grid-template-columns: 1fr !important;
    }
    
    .office-card {
        padding: 25px !important;
    }
    
    .office-header {
        flex-wrap: wrap !important;
    }
    
    .office-badge {
        margin-left: 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    /* Fix for dynamic contact grid */
    .dynamic-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .dynamic-card {
        padding: 25px !important;
    }
    
    /* Fix for FAQ accordion */
    .faq-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix for careers section */
    .careers-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .careers-image {
        order: -1 !important;
    }
    
    .careers-badge {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 20px !important;
        width: 100% !important;
    }
    
    .careers-highlights {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .contact-cta,
    .careers-section {
        background-position: 70% center !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
    }
    
    .cta-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .contact-form {
        padding: 25px 20px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .contact-trading-item {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-cta,
    .careers-section {
        background-attachment: scroll !important;
    }
    
    .offices-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.cta-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  color: white;
}

.cta-badge {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  margin-bottom: 25px;
  line-height: 1.2;
  color: white;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-buttons .btn {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 50px;
  min-width: 280px;
}

.cta-buttons .btn-large {
  background: white;
  color: var(--brand);
  border: 2px solid white;
}

.cta-buttons .btn-large:hover {
  background: transparent;
  color: white;
}

.cta-buttons .btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-buttons .btn-outline:hover {
  background: white;
  color: var(--brand);
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  flex-wrap: wrap;
}

.cta-trust i {
  font-size: 1.2rem;
}

/* ===========================
   Careers Section
   =========================== */
.careers-section {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.careers-content h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 25px;
  color: var(--text);
}

.careers-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.careers-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}

.careers-highlight i {
  font-size: 1.3rem;
  color: var(--brand);
}

.careers-highlight span {
  font-weight: 600;
  color: var(--text);
}

.careers-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.careers-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.careers-image:hover img {
  transform: scale(1.05);
}

.careers-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--contact-purple), var(--contact-blue));
  padding: 20px 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  box-shadow: 0 15px 30px rgba(155, 89, 182, 0.3);
}

.careers-badge i {
  font-size: 2rem;
}

.careers-badge span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===========================
   Back to Top
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(237, 46, 46, 0.4);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 20px 40px rgba(237, 46, 46, 0.6);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  animation: backToTopBounce 2s infinite;
}

@keyframes backToTopBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .offices-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .careers-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 70vh;
    padding: 100px 20px;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-brick-number {
    font-size: 2rem;
  }
  
  .contact-main,
  .global-offices,
  .dynamic-contact-section,
  .faq-section,
  .careers-section {
    padding: 80px 0;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 30px 25px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .offices-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab-btn {
    text-align: center;
  }
  
  .map-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .dynamic-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 350px;
  }
  
  .careers-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-brick {
    width: 100%;
  }
  
  .section-tag {
    padding: 6px 18px;
    font-size: 0.8rem;
  }
  
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-card-icon {
    width: 50px;
    height: 50px;
  }
  
  .contact-card-icon i {
    font-size: 1.5rem;
  }
  
  .contact-card h3 {
    font-size: 1.2rem;
  }
  
  .office-card {
    padding: 25px 20px;
  }
  
  .office-header {
    flex-wrap: wrap;
  }
  
  .office-badge {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
  }
  
  .map-placeholder i {
    font-size: 3rem;
  }
  
  .map-placeholder h3 {
    font-size: 1.5rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* ===========================
   Dark Theme Adjustments
   =========================== */
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-form-wrapper,
html[data-theme="dark"] .office-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .dynamic-card {
  background: var(--surface);
}

html[data-theme="dark"] .social-link {
  background: var(--surface-2);
}

html[data-theme="dark"] .careers-highlight {
  background: var(--surface-2);
}

/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .contact-hero-bg {
    animation: none;
  }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
  .contact-hero,
  .map-section,
  .contact-cta,
  .back-to-top {
    display: none;
  }
  
  .contact-card,
  .office-card,
  .faq-item {
    page-break-inside: avoid;
  }
}