/* ============================================
   QUOTE FORM OVERLAY
   ============================================ */

/* Overlay Container */
.quote-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quote-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Semi-transparent Backdrop */
.quote-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quote-overlay.active .quote-backdrop {
  opacity: 1;
}

/* Sliding Panel */
.quote-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background: var(--black);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-overlay.active .quote-panel {
  transform: translateX(0);
}

/* Close Button */
.quote-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.quote-close:hover {
  transform: scale(1.1);
}

/* Header Section with Background Image */
.quote-header {
  height: 175px;
  background-image: url('../images/RaindowSqueegee.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quote-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.9));
}

/* Rainbow Divider - matches site gradient line */
.quote-divider {
  height: 4px;
  background: var(--gradient-cmyk);
}

/* Form Section */
.quote-body {
  padding: 30px 25px 40px;
  background: var(--black);
}

.quote-title {
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-align: center;
}

/* Form Styles */
.quote-form {
  display: flex;
  flex-direction: column;
}

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

.quote-form input[type="text"],
.quote-form input[type="email"] {
  width: 100%;
  height: 40px;
  background: #f5f8fa;
  border: 1.25px solid #cbd6e2;
  border-radius: 3px;
  padding: 0 15px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  color: #33475b;
  transition: border-color 0.2s ease;
}

.quote-form input:focus {
  outline: none;
  border-color: var(--cyan);
}

.quote-form input::placeholder {
  color: #999;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  cursor: pointer;
}

/* Submit Button - matches site .btn-outline-yellow */
.quote-submit {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding: 15px 40px;
  border: 2px solid var(--yellow);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.quote-submit:hover {
  background: var(--yellow);
  color: var(--black);
}

/* Success Message */
.quote-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.quote-success.show {
  display: block;
}

.quote-success h3 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--yellow);
  margin-bottom: 15px;
}

.quote-success p {
  font-size: 16px;
  color: var(--white);
  line-height: 1.6;
}

.quote-form.hidden {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .quote-panel {
    width: 100%;
  }

  .quote-header {
    height: 150px;
  }

  .quote-logo {
    max-width: 160px;
  }

  .quote-title {
    font-size: 32px;
  }

  .quote-body {
    padding: 25px 20px 30px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .quote-overlay,
  .quote-backdrop,
  .quote-panel {
    transition: none;
  }
}
