/* ============================================
   CENTRIX SOLAR — CONTACT US PAGE
   Blue Gradient + Yellow Accent Style
   contact.css
   ============================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'DM Sans', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* ============================================
     CONTAINER
     ============================================ */
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
  }
  
  @media (min-width: 768px) {
    .container { padding: 0 40px; }
  }
  
  @media (min-width: 1024px) {
    .container { padding: 0 60px; }
  }
  
  /* ============================================
     PAGE BANNER — NEW SOLAR SUNSET BACKGROUND
     ============================================ */
  .contact-banner {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 140px 0 80px;
    /* NEW: Solar panel sunset background */
    background: 
      linear-gradient(180deg, rgba(7, 24, 41, 0.4) 0%, rgba(7, 24, 41, 0.95) 100%),
      url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
  }
  
  .contact-banner h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
  }
  
  .contact-banner p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #d9d9d9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ============================================
     CONTACT SECTION
     ============================================ */
  .contact-page {
    padding: 80px 0;
    position: relative;
    background: #0a0a0a;
  }
  
  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  @media (min-width: 768px) {
    .contact-container { padding: 0 40px; }
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  @media (min-width: 1024px) {
    .contact-grid {
      grid-template-columns: 1fr 1.2fr;
      gap: 50px;
    }
  }
  
  /* ============================================
     CONTACT INFO BOX — BLUE GRADIENT
     ============================================ */
  .contact-info-box {
    background: linear-gradient(135deg, #071829, #0b1f35);
    color: #fff;
    padding: 50px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    height: fit-content;
  }
  
  .contact-info-box::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.12);
  }
  
  .contact-info-box h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
  }
  
  .contact-info-box > p {
    color: #d9d9d9;
    line-height: 1.8;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
  }
  
  /* =========================
     CONTACT ITEMS
     ========================= */
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
  }
  
  .contact-item:last-of-type {
    margin-bottom: 0;
  }
  
  .contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffc107;
    color: #111;
    font-size: 20px;
    transition: all 0.3s ease;
  }
  
  .contact-item:hover .contact-icon {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
  }
  
  .whatsapp-icon {
    background: #25D366;
    color: #fff;
  }
  
  .contact-item:hover .whatsapp-icon {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  }
  
  .contact-item h5 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Syne', sans-serif;
  }
  
  .contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    display: inline-block;
    margin-bottom: 4px;
  }
  
  .contact-item a:hover {
    color: #ffc107;
  }
  
  .contact-item p {
    margin: 0;
    color: #d9d9d9;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* ============================================
     CONTACT FORM BOX — WHITE CARD
     ============================================ */
  .contact-form-box {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    border-top: 5px solid #ffc107;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  }
  
  .contact-form-box::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: -120px;
    right: -120px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.08);
  }
  
  .contact-form-box h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0b1f35;
    margin-bottom: 15px;
    position: relative;
  }
  
  .contact-form-box h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 10px;
    border-radius: 10px;
    background: #ffc107;
  }
  
  /* =========================
     FORM ELEMENTS
     ========================= */
  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  @media (min-width: 768px) {
    .form-row {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .form-group {
    margin-bottom: 0;
    position: relative;
  }
  
  .form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
  
  .form-label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
  }
  
  .form-control {
    height: 56px;
    border: 2px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
    padding: 12px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: none;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    color: #333;
    outline: none;
  }
  
  .form-control:focus {
    background: #fff;
    border-color: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
  }
  
  .form-control::placeholder {
    color: #aaa;
  }
  
  /* Validation States */
  .form-control.valid {
    border-color: #28a745;
    background: #f8fff8;
  }
  
  .form-control.invalid {
    border-color: #dc3545;
    background: #fff8f8;
  }
  
  .form-control.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
  }
  
  .error-msg {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 4px;
  }
  
  .form-control.invalid ~ .error-msg {
    display: block;
    animation: slideDown 0.2s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  textarea.form-control {
    height: auto;
    min-height: 160px;
    resize: vertical;
    padding-top: 15px;
  }
  
  /* Submit Button */
  .contact-form-actions {
    margin-top: 25px;
  }
  
  .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #111;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.3);
    width: 100%;
    font-family: 'DM Sans', sans-serif;
  }
  
  .contact-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.5);
  }
  
  .contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Form Status */
  .form-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: none;
  }
  
  .form-status.success {
    display: block;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
  }
  
  .form-status.error {
    display: block;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
  }
  
  /* ============================================
     MAP SECTION
     ============================================ */
  .map-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
  }
  
  .map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.3) brightness(0.8);
    transition: filter 0.4s ease;
  }
  
  .map-section:hover iframe {
    filter: grayscale(0) brightness(1);
  }
  
  /* ============================================
     SCROLL ANIMATIONS
     ============================================ */
  .fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ============================================
     RESPONSIVE ADJUSTMENTS
     ============================================ */
  @media (max-width: 767px) {
    .contact-banner {
      min-height: 40vh;
      padding: 120px 0 50px;
    }
  
    .contact-page {
      padding: 50px 0;
    }
  
    .contact-info-box,
    .contact-form-box {
      padding: 35px 25px;
    }
  
    .contact-info-box h2,
    .contact-form-box h2 {
      font-size: 1.6rem;
    }
  
    .contact-item {
      gap: 14px;
      margin-bottom: 22px;
    }
  
    .contact-icon {
      width: 46px;
      height: 46px;
      font-size: 18px;
    }
  
    .map-section {
      height: 350px;
    }
  
    .contact-btn {
      padding: 14px 30px;
    }
  }
  
  /* Smooth scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #0a0a0a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #071829;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #0b1f35;
  }
  
  /* /* ============================================
   MOBILE COMPATIBILITY FIXES
   ============================================ */

/* Fix viewport scaling */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Prevent horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix banner text size and padding on small screens */
@media (max-width: 480px) {
  .contact-banner {
    min-height: 35vh;
    padding: 100px 15px 40px;
    background-attachment: scroll !important; /* FIXED: fixed bg causes repaint issues on mobile */
  }

  .contact-banner h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .contact-banner p {
    font-size: 0.95rem;
  }

  /* Stack contact info items better */
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  /* Form adjustments */
  .contact-form-box {
    padding: 30px 20px;
  }

  .contact-form-box h2 {
    font-size: 1.5rem;
  }

  .form-control {
    height: 50px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 10px 14px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .contact-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  /* Map section */
  .map-section {
    height: 280px;
  }

  /* Reduce container padding */
  .contact-container {
    padding: 0 15px;
  }

  .contact-info-box {
    padding: 30px 20px;
  }
}

/* Fix for medium tablets */
@media (min-width: 481px) and (max-width: 767px) {
  .contact-banner {
    background-attachment: scroll !important;
  }

  .contact-form-box,
  .contact-info-box {
    padding: 35px 25px;
  }
}

/* Ensure images don't overflow */
img, iframe {
  max-width: 100%;
  height: auto;
}

/* Fix iOS tap highlight */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Improve touch targets */
.contact-item a,
.contact-btn {
  min-height: 44px;
}