/* Color Variables */
:root {
  --primary: #000000;       /* Black */
  --accent: #FFFFFF;        /* White */
  --gold: #D4AF37;          /* Classic gold color */
  --gold-dark: #B7950B;     /* Darker gold for hover states */
  --secondary: #CCCCCC;     /* Light gray for secondary text */
}

/* Contact Hero */
.contact-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-align: center;
  margin-top: 70px;
  background: url('../assets/home_page.png') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #000000;
}

/* Hero section: image starts immediately after header */
@media (max-width: 768px) {
  .contact-hero,
  .hero {
    margin-top: 70px !important; /* Start immediately after header */
    height: calc(100vw * 0.75) !important; /* Same image dimensions */
    min-height: calc(100vw * 0.75) !important;
    max-height: calc(100vh - 70px) !important;
    background-position: center top !important; /* Image starts from top of hero section */
    background-size: contain !important; /* Smaller image size, full image visible - override inline style */
    background-attachment: scroll !important; /* Scroll with content, not fixed */
    background-color: #0b0b0b !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
    display: flex !important; /* Override inline grid */
    align-items: center !important;
    justify-content: center !important;
  }
  
  .contact-hero .hero-content,
  .hero-content {
    padding: 0 15px !important;
    transform: none;
    max-width: 90% !important;
    margin: 0 auto;
    padding-top: 8px !important; /* Minimal top padding */
    padding-bottom: 3px !important;
    position: relative !important;
    z-index: 1 !important;
    text-align: center !important;
  }
  
  .contact-hero .hero-title,
  .hero-title {
    font-size: 1.2rem !important; /* Further reduced - override inline clamp */
    line-height: 1.2 !important;
    margin-bottom: 6px !important; /* Reduced margin */
    margin: 0 0 6px 0 !important;
    font-weight: 900 !important;
    letter-spacing: .2px !important;
  }
  
  .contact-hero .hero-subtitle,
  .hero-subtitle {
    font-size: 0.7rem !important; /* Further reduced - override inline clamp */
    line-height: 1.3 !important;
    margin-bottom: 10px !important; /* Reduced margin */
    margin: 0 0 10px 0 !important;
    color: rgba(255,255,255,.74) !important;
  }
  
  .contact-hero .hero-buttons,
  .hero-buttons {
    flex-direction: column !important;
    gap: 6px !important; /* Further reduced gap */
    width: 100%;
    max-width: 200px !important; /* Further reduced */
    margin: 0 auto;
    margin-top: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  
  .contact-hero .hero-buttons .btn,
  .contact-hero .hero-buttons .hero-btn,
  .hero-buttons .btn,
  .hero-buttons .hero-btn {
    width: 100% !important;
    padding: 8px 14px !important; /* Further reduced padding - override inline */
    font-size: 0.7rem !important; /* Further reduced - override inline */
    height: auto !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }
}

@media (max-width: 480px) {
  .contact-hero,
  .hero {
    margin-top: 70px !important; /* Start immediately after header */
    height: calc(100vw * 0.75) !important; /* Same image dimensions */
    min-height: calc(100vw * 0.75) !important;
    max-height: calc(100vh - 70px) !important;
    background-size: contain !important; /* Smaller image size, full image visible - override inline */
    background-position: center top !important; /* Image starts from top of hero section */
    background-attachment: scroll !important; /* Scroll with content, not fixed */
    background-color: #0b0b0b !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
    display: flex !important; /* Override inline grid */
    align-items: center !important;
    justify-content: center !important;
  }
  
  .contact-hero .hero-content,
  .hero-content {
    padding-top: 6px !important;
    padding-bottom: 2px !important;
    padding: 0 15px !important;
  }
  
  .contact-hero .hero-title,
  .hero-title {
    font-size: 1rem !important; /* Further reduced - override inline clamp */
    margin-bottom: 5px !important;
    margin: 0 0 5px 0 !important;
  }
  
  .contact-hero .hero-subtitle,
  .hero-subtitle {
    font-size: 0.65rem !important; /* Further reduced - override inline clamp */
    margin-bottom: 8px !important;
    margin: 0 0 8px 0 !important;
  }
  
  .contact-hero .hero-buttons,
  .hero-buttons {
    max-width: 180px !important; /* Further reduced */
    gap: 5px !important; /* Further reduced */
  }
  
  .contact-hero .hero-buttons .btn,
  .contact-hero .hero-buttons .hero-btn,
  .hero-buttons .btn,
  .hero-buttons .hero-btn {
    padding: 7px 12px !important; /* Further reduced - override inline */
    font-size: 0.65rem !important; /* Further reduced - override inline */
    height: auto !important;
  }
}

.contact-hero .hero-overlay { background: rgba(0, 0, 0, 0.7); }
.contact-hero .hero-content { text-align: center; max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Desktop styles - only apply above 768px */
@media (min-width: 769px) {
  .contact-hero .hero-title { font-size: 3.5rem; color: var(--accent); margin-bottom: 20px; }
  .contact-hero .hero-subtitle { font-size: 1.3rem; color: var(--secondary); }
}

/* ---------------- Tabs ---------------- */

/* Buttons row (no group divider; we add a subtle line only to the active pill) */
.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: none;
  position: relative;
}

.tab-btn {
  padding: 15px 40px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); }

/* ---------------- Tab Panes ---------------- */

.tab-content { position: relative; }

/* CLASS-BASED VISIBILITY (fix): JS toggles .active; no ID rules */
.tab-pane { display: none; animation: fadeIn 0.5s ease; }
.tab-pane.active { display: block; }

/* Grid layout with equal heights */
.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;     /* equalize column heights */
  grid-auto-rows: 1fr;      /* equalize row height in case of multiple rows */
}
.tab-grid > .tab-image,
.tab-grid > .tab-form,
.tab-grid > .tab-info { height: 100%; }

.tab-grid.reversed { direction: rtl; }
.tab-grid.reversed > * { direction: ltr; }

/* Media: single column on tablet+ */
@media (max-width: 992px) {
  .tab-grid { grid-template-columns: 1fr; }
  .tab-grid.reversed { direction: ltr; }
  .tab-image { height: 400px; }
}

/* Image panel */
.tab-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tab-image:hover img { transform: scale(1.05); }

/* ---------------- Form ---------------- */
.tab-form { padding: 30px; }
.tab-form h2 { font-size: 2rem; margin-bottom: 10px; color: var(--accent); }
.tab-form p { color: var(--secondary); margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.form-col { flex: 1; }

@media (max-width: 768px) {
  .form-row { flex-direction: column; gap: 0; }
}

label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--accent); }

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #111111;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  font-family: 'Arial', sans-serif;
  color: var(--accent);
  transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
textarea { resize: vertical; min-height: 100px; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--gold);
  color: var(--primary);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn:hover { background-color: var(--gold-dark); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; }

/* ---------------- Contact Info ---------------- */
.tab-info { padding: 30px; }
.tab-info h2 { font-size: 2rem; margin-bottom: 10px; color: var(--accent); }
.tab-info p { color: var(--secondary); margin-bottom: 30px; }

.contact-details { margin-bottom: 30px; }
.contact-item { display: flex; gap: 20px; margin-bottom: 25px; }
.contact-icon {
  width: 50px; height: 50px; background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.2rem; flex-shrink: 0;
}
.contact-text h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--accent); }
.contact-text p, .contact-text a { color: var(--secondary); line-height: 1.6; transition: color 0.3s ease; }
.contact-text a:hover { color: var(--gold); }

.social-links { display: flex; gap: 15px; }
.social-icon {
  width: 45px; height: 45px; background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; transition: all 0.3s ease;
}
.social-icon:hover { background-color: var(--gold); color: var(--primary); transform: translateY(-3px); }

/* ---------------- Map ---------------- */
.map-section { padding: 80px 0; background-color: #111111; }
.section-title { font-size: 2.5rem; color: var(--accent); text-align: center; margin-bottom: 30px; }
.map-container {
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ---------------- Modal ---------------- */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
  background-color: #111111; padding: 40px; border-radius: 8px; text-align: center;
  max-width: 500px; width: 90%; transform: translateY(20px); transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.modal.active .modal-content { transform: translateY(0); }
.modal-icon {
  width: 80px; height: 80px; background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2.5rem; margin: 0 auto 20px;
}
.modal h2 { font-size: 2rem; margin-bottom: 15px; color: var(--accent); }
.modal p { color: var(--secondary); margin-bottom: 25px; font-size: 1.1rem; }

/* ---------------- Animations ---------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 768px) {

  .tab-buttons { flex-direction: column; }
  .tab-btn { border-bottom: none; border-left: 3px solid transparent; text-align: left; }
  .tab-btn::after { bottom: auto; left: -3px; width: 3px; height: 0; }
  .tab-btn:hover::after, .tab-btn.active::after { width: 3px; height: 100%; }
  
  /* Mobile image fixes for contact page */
  .tab-image {
    height: 300px;
    overflow: hidden;
  }
  
  .tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 576px) {
  .tab-form, .tab-info { padding: 20px 0; }
  .section-title { font-size: 2rem; }
}

/* New form styles */
.checkbox-group { margin-top: 10px; }
.checkbox-label { display: flex; align-items: center; margin-bottom: 10px; font-weight: normal; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: auto; margin-right: 10px; }
.checkbox-group input[type="text"] {
  margin-top: 5px; background-color: #111111; border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px; padding: 10px 15px; color: var(--accent); font-family: 'Arial', sans-serif;
}
.checkbox-group input[type="text"]:focus { border-color: var(--gold); outline: none; }

/* --- Clean tab underline: one subtle line ONLY under the active pill --- */

/* Kill all existing lines/dividers */
.tab-buttons::after { display: none !important; }      /* remove group divider if any */
.tab-btn::after { display: none !important; }          /* remove per-button line on hover */

/* Add a tiny centered hairline only for the active tab */
.tab-btn.active::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: min(120px, 60%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0),
    rgba(212,175,55,.85),
    rgba(212,175,55,0)
  );
  box-shadow: 0 0 10px rgba(212,175,55,.28);
  pointer-events: none;
}

@media (max-width: 768px) {
  .tab-btn.active::before { bottom: -6px; width: min(90px, 50%); }
}
