/* ========================================
   css2/contact.css - SINKOR CYCLE RAIDERS
   Contact Page - FULLY FIXED & RESPONSIVE
   ======================================== */

:root {
  --primary: #28a745;
  --dark: #2c3e50;
  --light: #e9ecef;
  --accent: #ff6b35;
  --text: #2d3436;
  --gray: #636e72;
  --border: #ced4da;
  --dark-bg: #2c3e50;
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========================================
   TOP CONTACT BAR
   ======================================== */
.top-contact-bar {
  background: var(--dark-bg);
  color: #ecf0f1;
  padding: 12px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #34495e;
  box-shadow: var(--shadow-sm);
}

.top-contact-bar a {
  color: #bdc3c7;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.top-contact-bar a:hover {
  color: var(--primary);
}

.top-contact-bar .social-icons a {
  font-size: 1rem;
  margin: 0 6px;
}

@media (max-width: 768px) {
  .top-contact-bar .text-end {
    text-align: center !important;
    margin-top: 6px;
  }
  .top-contact-bar a {
    margin: 0 5px;
    font-size: 0.8rem;
  }
}

/* ========================================
   NAVBAR
   ======================================== */
/* === REVISED NAVBAR WITH LOGO & DROPDOWN === */

.navbar-3d {
  position: relative; 
  background-color: #dbd6d6;
  border-bottom: 2px solid #e0e0e0; /* Added 'solid' for proper border syntax */
  
  /* --- REVISIONS HERE --- */
  padding: 10px 0; /* Reduced vertical padding */
  min-height: 80px; /* Set a specific minimum height for the navigation links */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 1000; /* Increased z-index to ensure it sits above content */
}

/* ---------------------------------------------------- */

/* ========================================
   FLOATING LOGO OVER NAVBAR
   ======================================== */


#joinUsBtn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(40,167,69,0.3);
  cursor: pointer;
}

#joinUsBtn:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* ========================================
   CONTACT HERO
   ======================================== */
.contact-hero {
  position: relative;
  height: 45vh;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('../image/about.jpg') center/cover no-repeat;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
}

.contact-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .contact-hero { height: 50vh; }
  .contact-hero h1 { font-size: 2.3rem; }
  .contact-hero p { font-size: 1rem; }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 90px 0 100px;
  background: #f8fafc;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ========================================
   MAP
   ======================================== */
.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 500px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.map-marker {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(40,167,69,0.4);
  animation: pulse 2s infinite;
}

.map-marker i {
  transform: rotate(45deg);
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(40,167,69,0.4); }
  70% { box-shadow: 0 4px 25px rgba(40,167,69,0.7); }
  100% { box-shadow: 0 4px 15px rgba(40,167,69,0.4); }
}

/* ========================================
   CONTACT FORM & INFO
   ======================================== */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.contact-form,
.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  flex: 1;
}

.contact-info {
  box-shadow: var(--shadow-md);
}

.contact-info h5 {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--gray);
}

.contact-info i {
  color: var(--primary);
  width: 36px;
  font-size: 1.1rem;
  margin-right: 10px;
}

/* Form Styling */
.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  font-size: 1rem;
  transition: var(--transition);
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(40,167,69,0.15);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 45px;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #777;
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: -12px;
  left: 16px;
  font-size: 0.8rem;
  background: white;
  padding: 0 8px;
  color: var(--primary);
  font-weight: 600;
}

.form-group i {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--primary);
  font-size: 1.1rem;
}

.btn-submit,
.btn-full {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(40,167,69,0.3);
  cursor: pointer;
}

.btn-submit:hover,
.btn-full:hover {
  background: #218838;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(40,167,69,0.4);
}

/* ========================================
   JOIN US MODAL (MATCHES gallery.html)
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f1f1;
  transition: var(--transition);
}

.modal-close:hover {
  background: #ddd;
  color: #333;
}

.registration-form h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--dark-bg);
  color: #ecf0f1;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #34495e;
  font-size: 0.9rem;
  margin-top: 60px;
}

footer a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
}

footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer hr {
  border-color: #34495e;
  margin: 2rem 0 1rem;
}

footer p.mb-0 {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .contact-sidebar {
    margin-top: 2rem;
  }
  .map-container {
    min-height: 400px;
  }
}

@media (max-width: 576px) {
  .section-title { font-size: 2rem; }
  .contact-form,
  .contact-info {
    padding: 1.8rem;
  }
  .btn-submit,
  .btn-full {
    font-size: 1rem;
    padding: 12px;
  }
}