/* ============================================
   CONTACT PAGE STYLES
   Matching sustainability.html styling
   ============================================ */

/* ===== VARIABLES ===== */
:root {
  --primary-color: #1a3b5d;
  --secondary-color: #00a8ff;
  --accent-color: #0097e6;
  --light-bg: #f8f9fa;
  --dark-text: #1a3b5d;
  --light-text: #666;
  --white: #ffffff;
  --overlay-dark: rgba(0, 100, 200, 0.85);
  --overlay-light: rgba(0, 0, 0, 0.7);
}

/* ===== HERO SECTION ===== */
.contact-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 1000px;
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.contact-hero .hero-static {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
}

.contact-hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  color: var(--white);
}

.contact-hero .hero-text {
  max-width: 800px;
  margin-top: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color:black;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb .current {
  color: var(--secondary-color);
  font-weight: 600;
}

.breadcrumb i {
  font-size: 0.8rem;
  margin: 0 5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color:black;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: black;
  font-weight: 400;
  max-width: 700px;
}

.hero-stats-contact {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-stats-contact .stat-box {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 10px;

  min-width: 150px;
  transition: transform 0.3s, background 0.3s;
}

.hero-stats-contact .stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-stats-contact .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.hero-stats-contact .stat-label {
  font-size: 0.9rem;
color: black;
font-weight: 400;
}

/* ===== MAIN CONTENT SECTIONS ===== */
.contact-content {
  padding-top: 0;
}

.section {
  padding: 80px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CONTACT INTRODUCTION ===== */
.contact-intro {
  background: var(--white);
}

.contact-intro h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 500;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.intro-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--light-bg);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.intro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 168, 255, 0.15);
  border-color: var(--secondary-color);
}

.intro-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.intro-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.intro-card p {
  color: var(--light-text);
  line-height: 1.6;
}

/* ===== CONTACT GRID SECTION ===== */
.contact-grid-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.contact-office {
  background: var(--light-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.contact-office:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.office-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 25px;
  text-align: center;
}

.office-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
}

.office-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--white);
}

.office-type {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.office-details {
  padding: 30px;
}

.address, .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.address i, .contact-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.address h4, .contact-item h4 {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.address p, .contact-item p {
  color: var(--light-text);
  line-height: 1.5;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 59, 93, 0.9) 0%, rgba(10, 35, 64, 0.8) 100%);
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.form-intro .section-header {
  text-align: left;
  margin-bottom: 40px;
}

.form-intro .section-title {
  color: var(--white);
}

.form-intro .section-subtitle {
  color: var(--secondary-color);
}

.form-intro .section-description {
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.form-benefits {
  margin-bottom: 40px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.benefit i {
  color: var(--secondary-color);
}

.emergency-notice {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
}

.notice-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.notice-content h4 {
  color: var(--white);
  margin-bottom: 10px;
}

.notice-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.notice-content strong {
  color: var(--secondary-color);
}

/* ===== FORM STYLES ===== */
.form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checkbox-group label {
  font-weight: normal;
  color: rgba(255, 255, 255, 0.9);
}

.checkbox-group label a {
  color: var(--secondary-color);
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.submit-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--white);
  border: none;
  padding: 16px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--accent-color), #0082cc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4);
}

/* ===== REGIONAL CONTACTS ===== */
.regional-contacts {
  background: var(--white);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.department-card {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.department-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 168, 255, 0.15);
  border-color: var(--secondary-color);
}

.department-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.department-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.department-card p {
  color: var(--light-text);
  margin-bottom: 25px;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 25px;
  text-align: left;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-details i {
  color: var(--secondary-color);
  width: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.contact-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 59, 93, 0.3);
}

/* ===== MAP SECTION ===== */
.contact-map {
  background: var(--white);
}

.map-container {
  background: var(--light-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-frame {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), #0a3250);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-overlay {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-overlay h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-overlay p {
  color: var(--light-text);
  margin-bottom: 20px;
}

.map-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.map-directions:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.map-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.info-card {
  padding: 25px;
  text-align: center;
  border-right: 1px solid #e9ecef;
}

.info-card:last-child {
  border-right: none;
}

.info-card h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.info-card p {
  color: var(--light-text);
  line-height: 1.5;
}

/* ===== FAQ SECTION ===== */
.contact-faq {
  background: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--secondary-color);
}

.faq-question {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
}

.faq-question i {
  color: var(--secondary-color);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px 30px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--light-text);
  line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-scale {
  animation: scaleIn 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-stats-contact {
    gap: 20px;
  }
  
  .hero-stats-contact .stat-box {
    min-width: 130px;
    padding: 15px;
  }
  
  .hero-stats-contact .stat-number {
    font-size: 2rem;
  }
  
  .intro-grid,
  .map-info {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .departments-grid,
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .intro-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .map-info {
    grid-template-columns: 1fr;
  }
  
  .info-card {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
  }
  
  .info-card:last-child {
    border-bottom: none;
  }
  
  .contact-office,
  .department-card {
    padding: 25px 20px;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats-contact {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats-contact .stat-box {
    width: 100%;
    max-width: 250px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .form-wrapper {
    padding: 25px;
  }
  
  .office-details,
  .department-card {
    padding: 20px 15px;
  }
  
  .map-overlay {
    padding: 20px;
    margin: 20px;
  }
  
  .faq-question {
    padding: 20px 15px;
  }
  
  .faq-question h3 {
    font-size: 1.1rem;
  }
  
  .faq-answer {
    padding: 0 15px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 15px 20px 15px;
  }
}

/* Small mobile phones */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .departments-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .contact-form-section {
    background-attachment: scroll;
  }
}

/* Print styles */
@media print {
  .contact-hero .hero-static {
    background: white !important;
    color: black !important;
    min-height: auto;
  }
  
  .contact-hero .hero-overlay {
    display: none;
  }
  
  .hero-title,
  .hero-subtitle,
  .section-title,
  .section-subtitle,
  .intro-card h3,
  .office-header h3,
  .department-card h3 {
    color: black !important;
  }
  
  .stat-box,
  .contact-office,
  .department-card,
  .form-wrapper {
    background: white !important;
    border: 1px solid #ddd !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  .submit-btn,
  .contact-link,
  .map-directions {
    background: #ddd !important;
    color: black !important;
    border: 1px solid #999 !important;
  }
}