/* ==================== ESTIMATE PAGE ==================== */

/* Video Section */
.estimate-video-section {
  background: white;
  padding: 80px 0;
}

/* Video Container */
.estimate-video-container {
  max-width: 100%;
  margin: 45px auto 0;
}

.estimate-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.estimate-video-wrapper iframe,
.estimate-video-wrapper embed,
.estimate-video-wrapper object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.estimate-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* Form Section */
.estimate-form-section {
  background: #f9f8f6;
  padding: 80px 0;
}

.estimate-form-wrapper {
  max-width: 100%;
  margin: 0 auto;
  background: white;
  padding: 45px 50px 45px !important;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.estimate-form-container br {
  display: none;
}
.estimate-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: center;
}

.estimate-form-description {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Form Container */
.estimate-form-container {
  margin-top: 30px;
}

/* Contact Form 7 Styles */
.estimate-form-container .wpcf7-form {
  display: grid;
  gap: 20px;
}

.estimate-form-container .wpcf7-form-group {
  display: grid;
  gap: 15px;
}

.estimate-form-container .wpcf7-form-control {
  width: 100%;
}

.estimate-form-container .wpcf7-form-control-wrap {
  width: 100%;
}

/* Input Fields */
.estimate-form-container input[type="text"],
.estimate-form-container input[type="email"],
.estimate-form-container input[type="number"],
.estimate-form-container input[type="tel"],
.estimate-form-container textarea,
.estimate-form-container select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  transition: all 0.3s ease;
  background: white;
}

.estimate-form-container input[type="text"]:focus,
.estimate-form-container input[type="email"]:focus,
.estimate-form-container input[type="number"]:focus,
.estimate-form-container input[type="tel"]:focus,
.estimate-form-container textarea:focus,
.estimate-form-container select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.estimate-form-container input::placeholder,
.estimate-form-container textarea::placeholder {
  color: #999;
}

.estimate-form-container textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Row Layout */
.estimate-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.estimate-form-row-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.estimate-form-row-full {
  grid-column: 1 / -1;
}

/* Labels */
.estimate-form-container .wpcf7-form label {
  display: block;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.estimate-form-container .wpcf7-form label span.wpcf7-form-label {
  display: block;
}

/* Submit Button */
.estimate-form-container input[type="submit"],
.estimate-form-container .wpcf7-submit {
  background-color: var(--primary-color) !important;
  color: #262626;
  border: 1px solid var(--primary-color) !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
  border-radius: 0;
  padding: 14px 40px;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: 14px;
  text-transform: uppercase;
  max-width: 300px;
  margin: 20px auto 0;
  text-align: center;
  display: flex;
}

.estimate-form-container input[type="submit"]:hover,
.estimate-form-container .wpcf7-submit:hover {
  transform: translateY(-2px);
}

.estimate-form-container input[type="submit"]:active,
.estimate-form-container .wpcf7-submit:active {
  transform: translateY(0);
}

/* Validation Messages */
.estimate-form-container .wpcf7-form-control.has-error {
  border-color: #dc3545 !important;
}

.estimate-form-container .wpcf7-not-valid-tip,
.estimate-form-container .wpcf7-form .wpcf7-response-output {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
}

.estimate-form-container .wpcf7-mail-sent-ok {
  color: #28a745;
  background: #f0fdf4;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .estimate-form-wrapper {
    padding: 50px 40px;
  }

  .estimate-form-title {
    font-size: 1.75rem;
  }

  .estimate-form-row-3col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .estimate-video-section {
    padding: 60px 0;
  }

  .estimate-form-wrapper {
    padding: 40px 30px;
    
  }

  .estimate-form-title {
    font-size: 1.5rem;
  }

  .estimate-form-row,
  .estimate-form-row-3col {
    grid-template-columns: 1fr;
  }

  .estimate-form-row-full {
    grid-column: 1;
  }

  .estimate-form-container input[type="submit"],
  .estimate-form-container .wpcf7-submit {
    padding: 12px 30px;
    font-size: 0.95rem;
  }
}

@media (max-width: 680px) {
  .estimate-video-section {
    padding: 40px 0;
  }

  .estimate-video-section .main-section-title {
    font-size: 1.5rem;
  }

  .estimate-form-wrapper {
    padding: 30px 20px !important;
  
  }

  .estimate-form-title {
    font-size: 1.25rem;
  }

  .estimate-form-container input[type="text"],
  .estimate-form-container input[type="email"],
  .estimate-form-container input[type="number"],
  .estimate-form-container input[type="tel"],
  .estimate-form-container textarea,
  .estimate-form-container select {
    font-size: 16px;
  }

  .estimate-form-container .wpcf7-form label {
    font-size: 0.9rem;
  }

  .estimate-form-container input[type="submit"],
  .estimate-form-container .wpcf7-submit {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
