/* ==========================================================================
   CONTACT US PAGE SPECIFIC STYLESHEET (INDIAN TRICOLOR THEME ENHANCED)
   Sutapa Infotech Skills Foundation / IDST
   ========================================================================== */

:root {
  --tricolor-saffron: #ff9933;
  --tricolor-green: #128807;
  --tricolor-white: #ffffff;
  --primary-blue: #001f4d;
  --secondary-blue: #005bc5;
  --accent-gold: #ffb300;
  --light-bg: #f8fafc;
  --card-shadow: 0 10px 30px rgba(0, 31, 77, 0.08);
  --card-hover-shadow: 0 20px 40px rgba(0, 31, 77, 0.16);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. HERO BREADCRUMB BANNER
   ========================================================================== */
.contact-hero-section {
  position: relative;
  background: linear-gradient(135deg, #001f4d 0%, #002d6b 50%, #004494 100%);
  padding: 75px 0 95px;
  overflow: hidden;
  color: #ffffff;
}

.contact-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 153, 51, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(18, 136, 7, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-hero-section .hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

.contact-hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-hero-title span.text-saffron {
  color: #ff9933;
}

.contact-hero-title span.text-green {
  color: #4ade80;
}

.contact-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 780px;
  margin: 0 auto 35px;
  line-height: 1.65;
}

.contact-tricolor-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #ff9933 0%, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #128807 66.66%, #128807 100%);
  z-index: 5;
}

/* ==========================================================================
   2. QUICK CONTACT INFO CARDS
   ========================================================================== */
.contact-cards-section {
  padding: 80px 0 50px;
  background-color: #f8fafc;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.contact-info-card.card-saffron::before { background: #ff9933; }
.contact-info-card.card-blue::before { background: #005bc5; }
.contact-info-card.card-green::before { background: #128807; }
.contact-info-card.card-purple::before { background: #673ab7; }

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.contact-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.card-saffron .contact-icon-wrapper { background: rgba(255, 153, 51, 0.15); color: #ea580c; }
.card-blue .contact-icon-wrapper { background: rgba(0, 91, 197, 0.12); color: #005bc5; }
.card-green .contact-icon-wrapper { background: rgba(18, 136, 7, 0.15); color: #128807; }
.card-purple .contact-icon-wrapper { background: rgba(103, 58, 183, 0.12); color: #673ab7; }

.contact-info-card:hover .contact-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.contact-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #001f4d;
  margin-bottom: 12px;
}

.contact-card-text {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.contact-card-link {
  display: inline-block;
  color: #005bc5;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: var(--transition-smooth);
}

.contact-card-link:hover {
  color: #ff9933;
}

/* ==========================================================================
   3. MULTI-TAB INQUIRY FORM SECTION
   ========================================================================== */
.contact-form-section {
  padding: 60px 0 90px;
  background-color: #ffffff;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--card-hover-shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.form-header-banner {
  background: linear-gradient(135deg, #001f4d 0%, #003380 100%);
  color: #ffffff;
  padding: 30px;
  position: relative;
}

.form-header-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff9933 0%, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #128807 66.66%, #128807 100%);
}

.contact-nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  padding: 15px 30px 0;
  background: #f8fafc;
}

.contact-nav-tabs .nav-link {
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important; /* High contrast dark text when unselected */
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 12px 12px 0 0;
  transition: var(--transition-smooth);
  margin-right: 8px;
}

.contact-nav-tabs .nav-link i {
  margin-right: 8px;
}

.contact-nav-tabs .nav-link:hover {
  color: #001f4d !important;
  background: #f1f5f9;
}

.contact-nav-tabs .nav-link.active {
  color: #ffffff !important; /* Bright white text on deep blue active tab */
  background: #001f4d !important;
  border-bottom: 3.5px solid #ff9933 !important;
  border-color: #001f4d !important;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
}

.contact-nav-tabs .nav-link.active i {
  color: #ff9933 !important; /* Saffron icon when active */
}

.form-body-wrapper {
  padding: 40px 35px;
}

.form-control, .form-select {
  border-radius: 12px;
  padding: 12px 18px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
  border-color: #005bc5;
  box-shadow: 0 0 0 4px rgba(0, 91, 197, 0.12);
}

.btn-submit-contact {
  background: linear-gradient(135deg, #001f4d 0%, #005bc5 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 35px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 31, 77, 0.2);
  transition: var(--transition-smooth);
}

.btn-submit-contact:hover {
  background: linear-gradient(135deg, #ff9933 0%, #ea580c 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(234, 88, 12, 0.3);
}

/* ==========================================================================
   4. GOOGLE MAP & LOCATION GUIDE SECTION
   ========================================================================== */
.map-guide-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.map-container-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 4px solid #ffffff;
  height: 450px;
}

.map-container-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.direction-guide-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  height: 100%;
}

.direction-step-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.direction-step-item:last-child {
  margin-bottom: 0;
}

.direction-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 91, 197, 0.1);
  color: #005bc5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.direction-step-item:nth-child(2) .direction-step-icon {
  background: rgba(255, 153, 51, 0.15);
  color: #ea580c;
}

.direction-step-item:nth-child(3) .direction-step-icon {
  background: rgba(18, 136, 7, 0.15);
  color: #128807;
}

.direction-step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #001f4d;
  margin-bottom: 4px;
}

.direction-step-desc {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   5. FREQUENTLY ASKED QUESTIONS (FAQ)
   ========================================================================== */
.faq-section {
  padding: 90px 0;
  background-color: #ffffff;
}

.contact-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.contact-accordion .accordion-button {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #001f4d;
  background: #ffffff;
  padding: 20px 25px;
  box-shadow: none;
}

.contact-accordion .accordion-button:not(.collapsed) {
  color: #005bc5;
  background: rgba(0, 91, 197, 0.04);
  border-bottom: 1px solid #e2e8f0;
}

.contact-accordion .accordion-body {
  padding: 22px 25px;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ==========================================================================
   6. CALL TO ACTION BANNER
   ========================================================================== */
.contact-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #001f4d 0%, #003380 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.contact-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #ff9933 0%, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #128807 66.66%, #128807 100%);
}

.cta-btn-saffron {
  background: #ff9933;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(255, 153, 51, 0.3);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-btn-saffron:hover {
  background: #ffffff;
  color: #001f4d;
  transform: translateY(-3px);
}

.cta-btn-outline-white {
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   7. TOAST NOTIFICATION
   ========================================================================== */
.contact-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #001f4d;
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 99999;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 5px solid #ff9933;
}

.contact-toast.show-toast {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   8. MOBILE RESPONSIVE TAB OVERRIDES (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
  .contact-nav-tabs {
    padding: 12px 14px 0 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    border-bottom: none !important;
    background: #f8fafc !important;
  }

  .contact-nav-tabs .nav-item {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .contact-nav-tabs .nav-link {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    margin-right: 0 !important;
    text-align: left !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .contact-nav-tabs .nav-link.active {
    background: #001f4d !important;
    color: #ffffff !important;
    border-color: #001f4d !important;
    border-left: 4.5px solid #ff9933 !important;
    border-bottom: 1.5px solid #001f4d !important;
    box-shadow: 0 4px 14px rgba(0, 31, 77, 0.18) !important;
  }

  .form-body-wrapper {
    padding: 22px 16px !important;
  }
}

/* ==========================================================================
   9. TABLET RESPONSIVE INLINE TAB OVERRIDES (768px - 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .contact-nav-tabs {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 12px 16px 0 16px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }

  .contact-nav-tabs .nav-item {
    flex: 1 1 0px !important;
    width: auto !important;
    margin-right: 0 !important;
  }

  .contact-nav-tabs .nav-link {
    width: 100% !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 12px !important;
    font-size: 0.84rem !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: none !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .contact-nav-tabs .nav-link.active {
    background: #001f4d !important;
    color: #ffffff !important;
    border-color: #001f4d !important;
    border-bottom: 3.5px solid #ff9933 !important;
    box-shadow: 0 -4px 10px rgba(0, 31, 77, 0.15) !important;
  }

  .form-body-wrapper {
    padding: 28px 22px !important;
  }
}
