/* Three-Column Contact Section */
.contact-three-column-section {
  padding: 80px 20px;
  background: white;
  margin-top: 0;
}

@media screen and (min-width: 800px) {
  .contact-three-column-section {
    padding-top: calc(4vh + 8vh + 40px);
  }
}

/* Contact page specific - more space from nav (only applies to contact.html) */
@media screen and (min-width: 800px) {
  .contact-three-column-section:has(.contact-info-column) {
    padding-top: calc(4vh + 8vh + 80px);
  }
}

.contact-three-column-wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

.contact-three-column-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
}

/* Hide map on contact page */
.contact-map-column {
  display: none;
}

/* Left Column: Contact Form Wrapper */
.contact-form-wrapper {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.contact-section-header {
  margin-bottom: 30px;
  text-align: left;
  padding-left: 0;
  width: 45%;
  flex-shrink: 0;
}

/* Left Column: Contact Form */
.contact-form-column {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px 30px 30px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 650px;
  margin-top: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  justify-content: space-between;
}


.contact-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-form-header i {
  color: #ff6600;
  font-size: 20px;
}

.contact-form-header span {
  color: #ff6600;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.contact-three-column-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  justify-content: space-between;
  padding-top: 0;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-field-half {
  flex: 1;
}

.form-field-full {
  width: 100%;
}

.contact-three-column-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.contact-three-column-form input,
.contact-three-column-form select,
.contact-three-column-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: #f9f9f9;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  font-family: inherit;
  color: #333;
  box-sizing: border-box;
}

.contact-three-column-form input:focus,
.contact-three-column-form select:focus,
.contact-three-column-form textarea:focus {
  border-color: #ff6600;
  background: white;
}

.contact-three-column-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-three-column-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.send-now-btn {
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.send-now-btn:hover {
  background: #e55a00;
}

.send-now-btn i {
  font-size: 14px;
}

/* Middle Column: Contact Information */
.contact-info-column {
  flex: 0 0 45%;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
}

.contact-info-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: auto;
  align-items: flex-start;
  flex: 1;
  justify-content: flex-start;
}

.contact-info-item-new {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: #ff6600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box i {
  color: white;
  font-size: 20px;
}

.contact-info-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding: 5px 5px 5px 0px;
  text-align: left;
}

.contact-info-text p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.contact-info-text a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-text a:hover {
  color: #ff6600;
}

.contact-info-text p {
  line-height: 1.6;
}

.social-media-section {
  margin-top: auto;
  padding-top: 30px;
}

.follow-us-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.social-icons-new {
  display: flex;
  gap: 12px;
}

.social-icon-new {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.facebook-icon {
  background: #ff6600;
  color: white;
}

.linkedin-icon,
.twitter-icon,
.instagram-icon {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
}

.social-icon-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon-new i {
  font-size: 16px;
}

/* Right Column: Google Map */
.contact-map-column {
  flex: 1;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 600px;
  max-width: 34%;
  position: relative;
}

.contact-map-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.contact-map-column #contact-map {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  display: block;
  filter: grayscale(30%) brightness(0.7);
  position: relative;
  z-index: 0;
}

.custom-zoom-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zoom-btn:hover {
  background: #e55a00;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-btn i {
  font-size: 16px;
}

/* Mobile Responsive */
@media screen and (max-width: 1199px) {
  .contact-three-column-container {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-column {
    flex: 1;
  }

  .contact-info-column {
    min-height: auto;
  }

  .contact-map-column {
    min-height: 400px;
  }

  .contact-map-column #contact-map {
    min-height: 400px;
  }
}

@media screen and (max-width: 799px) {
  .contact-three-column-section {
    padding: 40px 15px;
    padding-top: calc(4vh + 8vh + 20px);
    text-align: left;
    justify-content: left;
  }

  .contact-section-header {
    padding-top: 20px;
    text-align: left;
    width: 100%;
    padding-left: 10px;
  }

  .contact-three-column-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .contact-form-column,
  .contact-info-column,
  .contact-map-column {
    padding: 30px 20px;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
  }

  .contact-form-column {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-info-column {
    min-height: auto;
    height: auto;
    flex: none;
    padding: 30px 20px;
    border-radius: 12px !important;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-three-column-section {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .contact-three-column-section + .financing-promo-section {
    margin-top: 0;
    padding-top: 0;
  }

  .contact-map-column {
    min-height: auto;
    height: auto;
    flex: none;
  }

  .contact-map-column #contact-map {
    min-height: 400px;
    height: 400px;
    width: 100%;
  }

  .contact-form-wrapper {
    width: 100%;
    flex: none;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form-title {
    font-size: 24px;
  }

  .contact-info-title {
    font-size: 22px;
  }
}

/* New Contact Form Section with Image (kept for backward compatibility) */
.contact-form-section {
  padding: 60px 0;
  background: white;
  margin-top: 0;
}

@media screen and (min-width: 800px) {
  .contact-form-section {
    padding: 60px 0;
    margin-top: 0;
  }
}

/* Contact Info with Google Map Section */
.contact-info-map-section {
  margin: 0;
  padding: 0;
  background: white;
}

.contact-info-map-container {
  display: flex;
  width: 100%;
  min-height: 500px;
}

.contact-map-panel {
  flex: 1;
  background: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.contact-map-panel h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  text-align: center;
}

.contact-map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 8px;
  flex: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 799px) {
  .contact-info-map-container {
    flex-direction: column;
  }

  .contact-info-panel {
    min-height: 400px;
  }

  .contact-map-panel {
    padding: 30px 20px;
  }

  .contact-map-panel iframe {
    min-height: 300px;
  }
}

.contact-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.contact-form-image {
  position: relative;
  width: 70%;
  max-width: 1100px;
  max-height: 700px;
}

.contact-form-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transform: scaleX(-1);
}

.contact-form-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  left: auto;
  width: 380px;
  min-width: 280px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
}

.contact-form-overlay .contact-form-body {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.contact-form-overlay .contact-form-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  text-align: left;
}

.contact-form-overlay .contact-form-body label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.contact-form-overlay .contact-form-body input,
.contact-form-overlay .contact-form-body select,
.contact-form-overlay .contact-form-body textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  background: #f5f5f5;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-form-overlay .contact-form-body input:focus,
.contact-form-overlay .contact-form-body select:focus,
.contact-form-overlay .contact-form-body textarea:focus {
  border-color: #FF6600;
  background: white;
}

.contact-form-overlay .contact-form-body select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form-overlay .contact-form-body textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-overlay .send-button {
  width: 100%;
  background: #FF6600;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.contact-form-overlay .send-button:hover {
  background: #e55a00;
}

/* Mobile responsive styles */
@media screen and (max-width: 799px) {
  .contact-form-section {
    padding: 40px 20px 20px 20px;
    margin-top: 0;
   
  }

  .contact-form-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
  }

  .contact-form-image {
    width: 100%;
    max-width: 100%;
    position: relative;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
  }

  .contact-form-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }

  .contact-form-overlay {
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-top: 30px;
  }
}

/* Contact Page Section - New Style */
.contact-page-section {
  margin: 0;
  padding: 80px 0;
  min-height: calc(100vh - 150px);
  background: white;
}

.contact-page-container {
  display: flex;
  width: 100%;
  min-height: 600px;
}

/* Left Panel: Dark Background with Contact Info */
.contact-info-panel {
  flex: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hvac-background.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.contact-info-overlay {
  width: 100%;
  max-width: 500px;
}

.contact-info-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 24px;
  color: white;
  margin-top: 5px;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item p {
  font-size: 16px;
  color: white;
  margin: 0;
  line-height: 1.6;
}

.contact-info-item a {
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-info-item a:hover {
  color: #ff8533;
  text-decoration: underline;
}

/* Right Panel: White Background with Form */
.contact-form-panel {
  flex: 1;
  background: white;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-heading {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0 0 40px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-message-form {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 15px;
  background: white;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
  color: #333;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff6600;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.name-fields {
  display: flex;
  gap: 15px;
}

.name-fields input {
  flex: 1;
}

.send-message-btn {
  width: 100%;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.send-message-btn:hover {
  background: #e55a00;
}

/* Mobile Responsive */
@media screen and (max-width: 799px) {
  .contact-page-section {
    margin-top: 0;
  }

  .contact-page-container {
    flex-direction: column;
    min-height: auto;
  }

  .contact-info-panel {
    min-height: 400px;
    padding: 40px 20px;
  }

  .contact-form-panel {
    padding: 40px 20px;
  }

  .contact-form-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .name-fields {
    flex-direction: column;
    gap: 0;
  }

  .contact-info-content {
    gap: 30px;
  }
}

/* Original contact form styles - kept for backward compatibility */
.contact-form {
  padding: 25px 0px 50px 0px;
}

.secondary-contact-form {
  padding: 0px 0px 50px 0px;
}

.contact-form h2, h3 {
  color: #296AB1;
  text-align: center;
}

.contact-form-body input {
  width: 100%;
  padding: 10px 0px;
  margin-bottom: 10px;
  border: 2px solid #296AB1;
  outline: none;
}
.contact-form-body input::placeholder {
  font-size: 18px;
  overflow: visible;
}

.contact-form-body textarea {
  width: 100%;
  border: 2px solid #296AB1;
}
.contact-form-body textarea::placeholder {
  font-size: 18px;
  overflow: visible;
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.submit-btn button {
  width: 70%;
  background: #296AB1;
  color: white;

  text-align: center;
  font-weight: bold;
  font-size: 18px;
  padding: 10px;

  border: none;
  outline: none;
}


@media screen and (min-width: 800px) {
  .contact-form-image {
    min-height: 600px;
  }

  .contact-form-image img {
    min-height: 600px;
    object-fit: cover;
  }

  .contact-form-overlay {
    z-index: 10;
  }
  
  /* Scale form with image on smaller screens - allow expansion to left */
  @media screen and (max-width: 1200px) {
    .contact-form-overlay {
      width: auto;
      min-width: 300px;
      max-width: calc(100% - 40px);
      right: 20px;
      left: auto;
      top: 20px;
    }
    
    .contact-form-overlay .contact-form-body {
      padding: 30px;
      min-width: 300px;
    }
    
    .contact-form-overlay .contact-form-body h2 {
      font-size: 26px;
    }
  }
  
  @media screen and (max-width: 1000px) {
    .contact-form-overlay {
      width: auto;
      min-width: 280px;
      max-width: calc(100% - 30px);
      right: 15px;
      left: auto;
      top: 15px;
    }
    
    .contact-form-overlay .contact-form-body {
      padding: 25px;
      min-width: 280px;
    }
    
    .contact-form-overlay .contact-form-body h2 {
      font-size: 24px;
    }
    
    .contact-form-overlay .contact-form-body input,
    .contact-form-overlay .contact-form-body select,
    .contact-form-overlay .contact-form-body textarea {
      padding: 10px 12px;
      font-size: 14px;
    }
  }
  
  @media screen and (max-width: 900px) {
    .contact-form-overlay {
      width: auto;
      min-width: 260px;
      max-width: calc(100% - 20px);
      right: 10px;
      left: auto;
      top: 10px;
    }
    
    .contact-form-overlay .contact-form-body {
      padding: 20px;
      min-width: 260px;
    }
    
    .contact-form-overlay .contact-form-body h2 {
      font-size: 22px;
      margin-bottom: 20px;
    }
    
    .contact-form-overlay .contact-form-body label {
      font-size: 13px;
      margin-bottom: 6px;
    }
    
    .contact-form-overlay .contact-form-body input,
    .contact-form-overlay .contact-form-body select,
    .contact-form-overlay .contact-form-body textarea {
      padding: 8px 10px;
      font-size: 13px;
      margin-bottom: 15px;
    }
    
    .contact-form-overlay .contact-form-body textarea {
      min-height: 80px;
    }
    
    .contact-form-overlay .send-button {
      padding: 12px 18px;
      font-size: 14px;
    }
  }

  #contact-page-form {
    margin-top: 200px;
  }
  .contact-form-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .contact-form-body input {
    width: 40%;
    padding: 10px 0px;
    margin-bottom: 10px;
    border: 2px solid #296AB1;
    outline: none;
  }
  .contact-form-body textarea {
    width: 40%;
    border: 2px solid #296AB1;
  }
  .submit-btn button {
    width: 20%;
    background: #296AB1;
    color: white;

    text-align: center;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;

    border: none;
    outline: none;
  }
}

/* Contact page specific: Adjust spacing for other services section */
.financing-promo-section + .our-services.other-services-row {
  margin-top: 0 !important;
  padding-top: 50px !important;
}

.financing-promo-section + .our-services.other-services-row h1 {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

@media screen and (max-width: 799px) {
  .financing-promo-section + .our-services.other-services-row h1 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}
