/* Quote modal — shared across homepage and service pages */
.quote-modal-overlay {
  position: fixed; inset: 0; z-index: 9990;
  display: grid; place-items: center;
  padding: 1.25rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.quote-modal-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.quote-modal-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.quote-modal {
  position: relative; width: min(560px, 100%);
  max-height: calc(100vh - 3rem); overflow-y: auto;
  background: linear-gradient(165deg, #1f1f26 0%, #141418 48%, #141416 100%);
  border: 1px solid rgba(200,241,53,0.22);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.55),
    0 0 100px rgba(200,241,53,0.06);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: auto;
}
.quote-modal-overlay.is-open .quote-modal {
  transform: translateY(0) scale(1);
}
.quote-modal-glow {
  position: absolute; top: -1px; left: 12%; right: 12%; height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,241,53,0.35) 0%, transparent 70%);
  pointer-events: none; border-radius: 20px;
  opacity: 0.85;
}
.quote-modal-inner {
  position: relative; padding: 2rem 2rem 1.75rem;
}
.quote-modal-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.quote-modal-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #C8F135;
  margin-bottom: 0.5rem;
}
.quote-modal-tag::before {
  content: ''; width: 22px; height: 2px; background: #C8F135; border-radius: 2px;
}
.quote-modal h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  line-height: 1.08; letter-spacing: 0.04em;
  color: #FAFAF8;
}
.quote-modal h3 span { color: #C8F135; }
.quote-modal-note {
  font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.45rem;
  font-weight: 300; max-width: 340px; line-height: 1.5;
}
.quote-modal-close {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #FAFAF8;
  cursor: pointer; font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.quote-modal-close:hover {
  border-color: rgba(200,241,53,0.45);
  background: rgba(200,241,53,0.08);
}

.quote-fields { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.35rem; }
.quote-row2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .quote-row2 { grid-template-columns: 1fr; } }

.quote-field label {
  display: block; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 0.4rem;
  font-weight: 500;
}
.quote-field label .opt { opacity: 0.55; font-weight: 400; }
.quote-field input, .quote-field select, .quote-field textarea {
  width: 100%; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,10,13,0.65);
  color: #FAFAF8;
  outline: none; cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C8F135'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.35rem; }
.quote-field textarea { min-height: 110px; resize: vertical; }
.quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus {
  border-color: rgba(200,241,53,0.45);
  box-shadow: 0 0 0 3px rgba(200,241,53,0.12);
}
.quote-field.has-error input,
.quote-field.has-error select,
.quote-field.has-error textarea {
  border-color: rgba(255,92,58,0.55);
  box-shadow: 0 0 0 3px rgba(255,92,58,0.1);
}
.quote-field-msg {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #ff9578;
  font-weight: 400;
}
.quote-field.has-error .quote-field-msg { display: block; }
.quote-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.quote-form-actions {
  margin-top: 1.35rem;
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap;
}
.quote-submit {
  flex: 1; min-width: 180px;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(135deg, #C8F135 0%, #b8e02e 100%);
  color: #0B0B0D;
  border: none; padding: 0.92rem 1.5rem; border-radius: 100px;
  cursor: pointer; letter-spacing: 0.03em;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 24px rgba(200,241,53,0.28);
}
.quote-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200,241,53,0.35); }
.quote-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.quote-feedback {
  flex: 1 1 100%; font-size: 0.82rem;
  padding: 0.65rem 0.85rem; border-radius: 10px; display: none;
}
.quote-feedback.ok { display: block; background: rgba(200,241,53,0.12); border: 1px solid rgba(200,241,53,0.35); color: #C8F135; }
.quote-feedback.err { display: block; background: rgba(255,92,58,0.1); border: 1px solid rgba(255,92,58,0.35); color: #ff9578; }

body.quote-modal-lock { overflow: hidden; }
