/* ==============================================
   File: contact.css
   Project: Zaza Rush Subaru
   Developer: bguvava
   Last Updated: January 30, 2026
   Description: Contact page specific styles (CON-001 to CON-025)
   ============================================== */

/* ---------------------------------------------
   PAGE HEADER
   --------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #001a52 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  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.05'%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.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--color-white);
}

.breadcrumb-item.active {
  color: var(--color-white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
  content: "/";
}

/* ---------------------------------------------
   Contact Hero Section (Legacy)
   --------------------------------------------- */
.contact-hero {
  position: relative;
  min-height: 40vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  background-image: url('../images/hero/contact-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.contact-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.9) 0%, rgba(0, 85, 255, 0.8) 100%);
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.contact-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-hero .breadcrumb-item a:hover {
  color: var(--color-white);
}

.contact-hero .breadcrumb-item.active {
  color: var(--color-white);
}

.contact-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.contact-hero .hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-hero .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.min-vh-40 {
  min-height: 40vh;
}

/* ---------------------------------------------
   Contact Info Cards - CON-001 to CON-004, CON-024
   --------------------------------------------- */
.contact-cards {
  background: var(--color-white);
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.contact-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.contact-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.contact-card .card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.contact-card .card-text {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.contact-card .card-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.contact-card .card-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.contact-card .card-link:hover {
  color: var(--color-secondary);
}

.contact-card .contact-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.contact-card .contact-link:hover {
  color: var(--color-secondary);
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-light-gray);
  font-size: 0.9rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li span:first-child {
  font-weight: 600;
  color: var(--color-dark);
}

/* ---------------------------------------------
   Contact Form Section - CON-008 to CON-016
   --------------------------------------------- */
.contact-main {
  background: var(--color-light-gray);
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-light-blue);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-text {
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* Honeypot Field - CON-012 */
.honeypot-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.contact-form .form-label .required {
  color: var(--color-error);
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.1);
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
  border-color: var(--color-error);
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
  border-color: var(--color-success);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.contact-form .btn-primary {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 51, 160, 0.3);
}

/* Sell Car Notice - CON-010 */
#sellCarNotice .alert {
  border-radius: 10px;
  border: none;
  background: var(--color-light-blue);
  color: var(--color-dark);
}

#sellCarNotice .alert-link {
  color: var(--color-primary);
}

/* ---------------------------------------------
   WhatsApp & Social Connect - CON-017 to CON-020
   --------------------------------------------- */
.whatsapp-connect,
.social-connect {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.connect-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.connect-text {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
  font-size: 1.25rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.btn-social {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-facebook {
  background: #1877f2;
  color: var(--color-white);
  border: none;
}

.btn-facebook:hover {
  background: #0d6efd;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--color-white);
  border: none;
}

.btn-instagram:hover {
  opacity: 0.9;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Quick Info Card */
.quick-info-card {
  background: var(--color-light-blue);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
}

.quick-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--color-dark);
}

.quick-list li i {
  color: var(--color-success);
}

/* ---------------------------------------------
   Google Maps Section - CON-005 to CON-007, CON-025
   --------------------------------------------- */
.contact-map {
  background: var(--color-white);
  padding: 0;
  margin: 0;
}

.map-header {
  background: var(--color-light-gray);
  padding: 1.5rem 0;
}

.map-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0;
}

.map-title i {
  color: var(--color-primary);
}

.map-container {
  position: relative;
  width: 100%;
  height: 450px;
  background: var(--color-light-gray);
}

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

/* Map Fallback - CON-025 */
.map-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-gray);
}

.fallback-content {
  text-align: center;
  padding: 2rem;
}

.fallback-content i {
  color: var(--color-text-muted);
}

.fallback-content h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.fallback-content p {
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------
   Form Validation States - CON-022, CON-023
   --------------------------------------------- */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: var(--color-error);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: var(--color-success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ---------------------------------------------
   Responsive Styles - CON-021
   --------------------------------------------- */
@media (max-width: 991.98px) {
  .contact-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .contact-cards {
    margin-top: -40px;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .map-container {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .contact-hero {
    min-height: 35vh;
    padding-top: 80px;
  }
  
  .contact-hero .hero-title {
    font-size: 2rem;
  }
  
  .contact-cards {
    margin-top: -30px;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .whatsapp-connect,
  .social-connect {
    padding: 1.5rem;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  .map-header {
    text-align: center;
  }
  
  .map-header .row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .map-container {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .contact-hero .hero-title {
    font-size: 1.75rem;
  }
  
  .contact-card .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    padding: 0.75rem;
  }
  
  .contact-form .btn-primary {
    padding: 0.875rem 1.5rem;
  }
}
