/**
 * HOMEOWNERS MARKETPLACE – Request A Quote (core styles)
 * Version: 2.5.3-CITY-COMPLETE
 * Updated: 2025-10-03
 * File: quote-form.css
 *
 * FINAL CITY UPDATE in 2.5.3:
 * - FIXED: All remaining ZIP code references updated to City
 * - UPDATED: Custom field alignment control comments
 * - VERIFIED: Complete migration from ZIP to City throughout
 * - MAINTAINED: All existing functionality and responsiveness
 */

:root{
  --hmp-primary-blue:#2c5aa0;
  --hmp-secondary-blue:#4a90e2;
  --hmp-success-green:#28a745;
  --hmp-error-red:#dc3545;
  --hmp-text-dark:#333;
  --hmp-border:#e9ecef;
  --hmp-radius-pill:9999px;
  --hmp-radius-lg:12px;
  --hmp-shadow-1:0 8px 20px rgba(44,90,160,.15);
  --hmp-shadow-2:0 12px 30px rgba(44,90,160,.25);

  /* Inline sizing tokens */
  --hmp-gap: 12px;
  --hmp-pill-height: 56px;
  --hmp-pill-pad-x: 12px;
  --hmp-cta-size: 52px;
  --hmp-service-min: 140px;
  --hmp-city-width: 96px;
  
  /* Placeholder alignment controls */
  --hmp-placeholder-vertical-align: 0px;
  --hmp-placeholder-horizontal-align: 0px;
}

/* ================= Buttons / Modal / Form ================= */
.hmp-quote-btn{
  display:inline-block; padding:14px 28px; font-size:16px; font-weight:600;
  border:0; border-radius:20px; cursor:pointer; text-transform:uppercase; letter-spacing:.5px;
  background:linear-gradient(135deg,var(--hmp-primary-blue),var(--hmp-secondary-blue)); color:#fff;
  box-shadow:var(--hmp-shadow-1);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-width: 160px;
  white-space: nowrap;
}
.hmp-quote-btn:hover{ transform:translateY(-2px); box-shadow:var(--hmp-shadow-2); background:linear-gradient(135deg,#234a87,#3a7bc8); }
.hmp-quote-btn:disabled{ opacity:.6; cursor:not-allowed; }

.hmp-quote-modal-overlay{ 
  position:fixed; inset:0; display:flex; align-items:flex-start; justify-content:center; 
  background:rgba(0,0,0,.8); z-index:999999; padding:20px; box-sizing:border-box;
  padding-top: 140px;
  display: none;
  visibility: hidden;
  opacity: 0;
}

.hmp-quote-modal-overlay.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hmp-quote-modal-overlay.no-backdrop{ background:transparent; }
.hmp-quote-modal-overlay.below-header{ 
  padding-top:160px; 
  align-items: flex-start;
  padding-bottom: 60px;
}
.hmp-quote-modal-overlay.mobile-modal {
  padding: 10px;
  padding-top: 80px;
  align-items: flex-start;
  overflow-y: auto;
}

.hmp-quote-modal-content{ 
  background:#fff; border-radius:var(--hmp-radius-lg); width:100%; max-width:520px; 
  max-height:calc(100vh - 180px); overflow:auto; box-shadow:0 15px 40px rgba(0,0,0,.2); 
  position:relative; animation:hmpModalIn .25s ease; z-index:1000000;
  color:var(--hmp-text-dark);
  margin-top: 0;
}

@media (max-width: 768px) {
  .hmp-quote-modal-overlay.mobile-modal .hmp-quote-modal-content {
    max-height: calc(100vh - 100px);
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .hmp-quote-modal-overlay.below-header.mobile-modal .hmp-quote-modal-content {
    max-height: calc(100vh - 120px);
    margin-top: 10px;
  }
}

@keyframes hmpModalIn{ from{opacity:0; transform:translateY(-10px) scale(.98);} to{opacity:1; transform:none;} }

.hmp-quote-modal-header{ 
  position:sticky; top:0; background:#fff; z-index:2; padding:22px 24px 18px; 
  border-bottom:1px solid var(--hmp-border); display:flex; align-items:center; justify-content:space-between; 
}
.hmp-quote-modal-header h3{ margin:0; color:var(--hmp-primary-blue); font-size:1.25rem; font-weight:700; }
.hmp-quote-modal-close{ 
  border:0; background:transparent; width:32px; height:32px; line-height:1; 
  font-size:28px; color:#999; cursor:pointer; border-radius:6px; 
}
.hmp-quote-modal-close:hover{ background:#f1f3f5; color:#333; }

.hmp-quote-form{ 
  padding:24px; background:#fff; color:var(--hmp-text-dark);
}

.hmp-form-row{ 
  display:grid; grid-template-columns:1fr 1fr; gap:16px; 
}

.hmp-form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hmp-quote-form label{ 
  display:block; font-weight:600; color:var(--hmp-text-dark); margin-bottom:8px; 
}

.hmp-quote-form input, .hmp-quote-form select, .hmp-quote-form textarea{
  width:100%; padding:12px 14px; border:2px solid #e9ecef; border-radius:8px; 
  font-size:14px; background:#fff; color:var(--hmp-text-dark);
  transition:border-color .15s ease, box-shadow .15s ease; line-height:1.2; 
  box-sizing:border-box;
  pointer-events: auto !important;
  cursor: text !important;
  position: relative;
  z-index: 2;
}
.hmp-quote-form textarea{ min-height:90px; resize:vertical; }
.hmp-quote-form input:focus, .hmp-quote-form select:focus, .hmp-quote-form textarea:focus{ 
  outline:0; border-color:var(--hmp-primary-blue); box-shadow:0 0 0 3px rgba(44,90,160,.12); 
}

.hmp-submit-quote-btn{
  width:100%; padding:15px 18px; border:0; border-radius:10px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--hmp-primary-blue),var(--hmp-secondary-blue)); 
  box-shadow:var(--hmp-shadow-1);
  text-transform:uppercase; letter-spacing:.5px; cursor:pointer; 
  transition:transform .2s ease, box-shadow .2s ease;
  margin-top: 10px;
  font-size: 16px;
  min-height: 48px;
  z-index:1000001;
  position:relative;
}
.hmp-submit-quote-btn:hover{ transform:translateY(-2px); box-shadow:var(--hmp-shadow-2); }
.hmp-submit-quote-btn .hmp-spinner{ 
  display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.3); 
  border-radius:50%; border-top-color:#fff; margin-left:8px; animation:hmpSpin 1s linear infinite; 
}
@keyframes hmpSpin{ to{ transform:rotate(360deg);} }

@media (max-width: 768px) {
  .hmp-submit-quote-btn {
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg,var(--hmp-primary-blue),var(--hmp-secondary-blue));
    z-index: 10;
    margin: 20px -24px -24px -24px;
    border-radius: 0 0 var(--hmp-radius-lg) var(--hmp-radius-lg);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1), var(--hmp-shadow-1);
  }
  
  .hmp-quote-form {
    padding-bottom: 80px;
  }
}

.hmp-error-message{ display:block; color:var(--hmp-error-red); font-size:12px; margin-top:6px; }
.hmp-quote-form .error{ border-color:var(--hmp-error-red)!important; background:rgba(220,53,69,.05); }

.hmp-inline-error {
  color: var(--hmp-error-red);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ================= Inline pill search ================= */

.hmp-inline-bar.hmp-w-sm, .hmp-w-sm .hmp-inline-bar{ --hmp-service-min:140px; }
.hmp-inline-bar.hmp-w-md, .hmp-w-md .hmp-inline-bar{ --hmp-service-min:200px; }
.hmp-inline-bar.hmp-w-lg, .hmp-w-lg .hmp-inline-bar{ --hmp-service-min:280px; }
.hmp-inline-bar.hmp-w-xl, .hmp-w-xl .hmp-inline-bar{ --hmp-service-min:360px; }

.hmp-inline-bar.hmp-city-sm, .hmp-city-sm .hmp-inline-bar{ --hmp-city-width:84px; }
.hmp-inline-bar.hmp-city-md, .hmp-city-md .hmp-inline-bar{ --hmp-city-width:112px; }
.hmp-inline-bar.hmp-city-lg, .hmp-city-lg .hmp-inline-bar{ --hmp-city-width:136px; }

.hmp-inline-bar.width-sm, .width-sm .hmp-inline-bar, .hmp-inline-service.width-sm{ --hmp-service-min:140px; }
.hmp-inline-bar.width-md, .width-md .hmp-inline-bar, .hmp-inline-service.width-md{ --hmp-service-min:200px; }
.hmp-inline-bar.width-lg, .width-lg .hmp-inline-bar, .hmp-inline-service.width-lg{ --hmp-service-min:280px; }
.hmp-inline-bar.width-xl, .width-xl .hmp-inline-bar, .hmp-inline-service.width-xl{ --hmp-service-min:360px; }

.hmp-inline-bar.city-sm, .city-sm .hmp-inline-bar, .hmp-inline-city.city-sm{ --hmp-city-width:84px; }
.hmp-inline-bar.city-md, .city-md .hmp-inline-bar, .hmp-inline-city.city-md{ --hmp-city-width:112px; }
.hmp-inline-bar.city-lg, .city-lg .hmp-inline-bar, .hmp-inline-city.city-lg{ --hmp-city-width:136px; }

.hmp-inline-bar{
  box-sizing:border-box;
  width:100%;
  display:grid;
  grid-template-columns:
    minmax(var(--hmp-service-min),1fr)
    1px                               
    calc(var(--hmp-city-width) + 28px)
    var(--hmp-cta-size);
  align-items:center;
  column-gap:var(--hmp-gap);
  background:#fff;
  border:1px solid rgba(44,90,160,.12);
  border-radius:var(--hmp-radius-pill);
  box-shadow:0 10px 28px rgba(44,90,160,.15);
  height:var(--hmp-pill-height);
  padding:0 var(--hmp-pill-pad-x);
  overflow:hidden;
}

.hmp-autocomplete-container{
  position:relative;
  min-width:0;
  height:100%;
  display:flex; 
  align-items:center;
  pointer-events: auto;
}

.hmp-inline-service{
  flex:1 1 auto;
  height:100%;
  padding:0 14px;
  border:none!important; 
  outline:0; 
  background:transparent;
  font-size:16px; 
  color:#111; 
  line-height:1;
  box-sizing:border-box;
  pointer-events: auto !important;
  cursor: text !important;
  position: relative;
  z-index: 2;
  transform: translate(var(--hmp-placeholder-horizontal-align), var(--hmp-placeholder-vertical-align));
}

.hmp-inline-city{
  width:var(--hmp-city-width);
  height:100%;
  border:none!important; 
  outline:0; 
  background:transparent;
  padding:0 8px; 
  font-size:16px; 
  color:#111; 
  line-height:1; 
  text-align:left;
  box-sizing:border-box;
  pointer-events: auto !important;
  cursor: text !important;
  position: relative;
  z-index: 2;
  transform: translate(var(--hmp-placeholder-horizontal-align), var(--hmp-placeholder-vertical-align));
}

.hmp-inline-service::placeholder{ color:#7a8aa0; opacity:1; text-shadow:none; }

.hmp-inline-divider{
  height:60%;
  background:#dbe5ff;
  opacity:.85;
  justify-self:center;
  width:1px;
}

.hmp-inline-citywrap{
  width:calc(var(--hmp-city-width) + 28px);
  display:grid;
  grid-template-columns:20px 1fr;
  align-items:center;
  height:100%;
  gap:8px;
}
.hmp-inline-pin{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; line-height:0; color:#333; opacity:.85;
}

.hmp-inline-city::placeholder{ color:#7a8aa0; opacity:1; text-shadow:none; }

/* Magnifying glass icon for search button */
.hmp-inline-searchbtn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  height:var(--hmp-cta-size);
  width:var(--hmp-cta-size);
  border-radius:50%; 
  border:0; 
  cursor:pointer; 
  flex-shrink:0;
  background:linear-gradient(135deg,var(--hmp-primary-blue),var(--hmp-secondary-blue));
  color:#fff; 
  box-shadow:var(--hmp-shadow-1);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: 0;
  position: relative;
}

.hmp-inline-searchbtn::before{
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hmp-inline-searchbtn:hover{ 
  transform:translateY(-1px); 
  box-shadow:var(--hmp-shadow-2); 
  background:linear-gradient(135deg,#234a87,#3a7bc8); 
}

/* ================= INLINE AUTOSUGGEST STYLES ================= */
.hmp-inline-autosuggest-dropdown {
    position: fixed !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 6px 0 !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    z-index: 9999999 !important;
    display: none !important;
    color: #111 !important;
    min-width: 200px !important;
}

.hmp-inline-autosuggest-dropdown.show {
    display: block !important;
}

.hmp-inline-autosuggest-item {
    padding: 10px 14px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    color: #111 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: background-color 0.15s ease !important;
    pointer-events: auto !important;
}

.hmp-inline-autosuggest-item:hover,
.hmp-inline-autosuggest-item.highlighted {
    background: #f7f8fb !important;
    color: #111 !important;
}

.hmp-inline-autosuggest-item:last-child {
    border-bottom: none !important;
}

.hmp-inline-autosuggest-item.no-results {
    color: #666 !important;
    background: #fafbfc !important;
    cursor: default !important;
    font-style: italic !important;
    padding: 12px 14px !important;
}

.hmp-inline-autosuggest-item mark {
    background: #fff3cd !important;
    color: #856404 !important;
    padding: 1px 2px !important;
    border-radius: 2px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .hmp-inline-autosuggest-dropdown {
        border-radius: 8px !important;
        max-height: 180px !important;
    }
    
    .hmp-inline-autosuggest-item {
        padding: 12px 16px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* ================= Mobile enhancements ================= */
@media (max-width: 768px){
  .hmp-form-row{ grid-template-columns:1fr; }

  .hmp-inline-bar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    background:#fff!important;
    border:1px solid var(--hmp-border)!important;
    border-radius:12px!important;
    padding:16px!important;
    box-shadow:var(--hmp-shadow-1)!important;
    height:auto;
  }
  
  .hmp-autocomplete-container{ height:auto; }

  .hmp-inline-service,
  .hmp-inline-city{
    height:52px;
    background:#fff!important;
    border:1px solid #e9ecef!important;
    border-radius:10px!important;
    padding:0 16px;
    font-size:16px!important;
    color:#111!important;
    pointer-events: auto !important;
    cursor: text !important;
  }

  .hmp-inline-divider{ display:none; }
  .hmp-inline-citywrap{ 
    width:100%; height:auto; display:flex; gap:12px; align-items:center;
  }
  .hmp-inline-citywrap .hmp-inline-pin{ display:none!important; }
  
  .hmp-inline-searchbtn{ 
    width:100%; 
    height:52px!important; 
    border-radius:10px!important; 
    font-size:16px; 
    font-weight:600;
  }
  
  .hmp-inline-searchbtn::before {
    display: none;
  }
  
  .hmp-inline-searchbtn {
    font-size: 16px;
  }
}

@media (max-width: 480px){
  .hmp-inline-service, .hmp-inline-city, .hmp-inline-searchbtn{ height:48px; }
  .hmp-quote-modal-overlay { padding: 5px; }
  .hmp-quote-form { padding: 20px; }
}

/* ================= Wizard Styles ================= */
.hmp-form-wizard {
  position: relative;
}

.hmp-wizard-header {
  margin-bottom: 20px;
  padding: 0 0 20px 0;
  border-bottom: 1px solid var(--hmp-border);
}

.hmp-progress-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  margin-bottom: 15px;
  overflow: hidden;
}

.hmp-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--hmp-primary-blue), var(--hmp-secondary-blue));
  transition: width 0.3s ease;
}

.hmp-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hmp-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background: #e9ecef;
  color: #6c757d;
  transition: all 0.3s ease;
}

.hmp-step-number.active {
  background: var(--hmp-primary-blue);
  color: #fff;
}

.hmp-step-number.completed {
  background: var(--hmp-success-green);
  color: #fff;
}

.hmp-step-divider {
  width: 40px;
  height: 2px;
  background: #e9ecef;
}

.hmp-wizard-content {
  min-height: 300px;
}

.hmp-form-page {
  display: none;
}

.hmp-form-page.active {
  display: block;
}

.hmp-page-title {
  color: var(--hmp-primary-blue);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hmp-form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--hmp-border);
}

.hmp-nav-btn {
  padding: 12px 24px;
  border: 2px solid var(--hmp-primary-blue);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.hmp-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hmp-nav-prev {
  background: transparent;
  color: var(--hmp-primary-blue);
}

.hmp-nav-prev:hover:not(:disabled) {
  background: var(--hmp-primary-blue);
  color: #fff;
}

.hmp-nav-next,
.hmp-nav-submit {
  background: var(--hmp-primary-blue);
  color: #fff;
}

.hmp-nav-next:hover,
.hmp-nav-submit:hover {
  background: #234a87;
  transform: translateY(-1px);
}

/* ================= Multi-select Styles ================= */
.hmp-checkbox-limited-container {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fa;
  margin: 12px 0;
}

.hmp-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.hmp-checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  min-height: 48px;
  user-select: none;
}

.hmp-checkbox-item:hover {
  background: #f8f9fa;
  border-color: var(--hmp-primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(44,90,160,0.1);
}

.hmp-checkbox-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.hmp-checkbox-item.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #dee2e6;
}

.hmp-checkbox-item input[type="checkbox"] {
  margin: 0 12px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--hmp-primary-blue);
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: none;
}

.hmp-checkbox-item span {
  flex: 1;
  line-height: 1.4;
  pointer-events: none;
}

.hmp-selection-counter {
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(44,90,160,0.05);
  border-radius: 4px;
}

.hmp-selection-counter .count {
  font-weight: 700;
  color: var(--hmp-primary-blue);
  font-size: 14px;
}

.hmp-max-selection-notification {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  color: #856404;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: hmpSlideIn 0.3s ease;
}

@keyframes hmpSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hmp-char-counter {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  text-align: right;
  transition: color 0.3s ease;
}

.hmp-char-warning {
  color: #dc3545;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  animation: hmpPulse 0.5s ease;
}

@keyframes hmpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ================= Success/Error Messages ================= */
.hmp-form-success-message {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.hmp-success-icon {
  font-size: 48px;
  color: var(--hmp-success-green);
  margin-bottom: 20px;
}

.hmp-form-success-message h4 {
  color: var(--hmp-success-green);
  font-size: 24px;
  margin-bottom: 15px;
}

.hmp-form-success-message p {
  margin-bottom: 15px;
  color: #666;
}

.hmp-form-success-message ul {
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
  color: #666;
}

.hmp-form-error-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hmp-error-icon {
  font-size: 20px;
  color: #856404;
}

.hmp-error-text {
  flex: 1;
  color: #856404;
  font-weight: 500;
}

/* ================= Consent Fields ================= */
.hmp-consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  margin-bottom: 16px !important;
  text-align: left !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
}

.hmp-consent-checkbox {
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  accent-color: var(--hmp-primary-blue) !important;
  margin-top: 2px !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  order: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.hmp-consent-text {
  flex: 1 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 2 !important;
}

.hmp-consent-text a {
  color: var(--hmp-primary-blue) !important;
  text-decoration: underline !important;
}

/* ================= Responsive & Mobile ================= */
@media (max-width: 768px) {
  .hmp-checkbox-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: 180px !important;
  }
  
  .hmp-checkbox-item {
    padding: 12px 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    min-height: 48px !important;
  }
  
  .hmp-checkbox-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
  }
  
  .hmp-consent-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
  }
  
  .hmp-consent-checkbox {
    width: 20px !important;
    height: 20px !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
    min-width: 20px !important;
    order: 1 !important;
  }
  
  .hmp-consent-text {
    flex: 1 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    order: 2 !important;
    word-wrap: break-word !important;
  }
}

/* ================= Pill width control ================= */
.hmp-inline-bar{
  inline-size: min(100%, var(--hmp-pill-max, 600px));
  margin-inline: auto;
}

/* ================= Body modal state ================= */
body.hmp-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  body.hmp-modal-open .hmp-quote-modal-overlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ================= Accessibility & High Contrast ================= */
.hmp-quote-btn:focus-visible, .hmp-inline-searchbtn:focus-visible, 
.hmp-quote-modal-close:focus-visible, .hmp-submit-quote-btn:focus-visible{
  outline:2px solid var(--hmp-primary-blue); outline-offset:2px;
}

@media (prefers-contrast: high){
  .hmp-inline-bar{ border:2px solid var(--hmp-primary-blue)!important; }
  .hmp-autocomplete-item:hover, .hmp-autocomplete-item.highlighted{ 
    background-color:var(--hmp-primary-blue)!important; color:#fff!important; 
  }
}

@media (prefers-reduced-motion: reduce){
  .hmp-quote-btn, .hmp-inline-searchbtn, .hmp-submit-quote-btn, 
  .hmp-quote-modal-content{
    transition:none!important; animation:none!important;
  }
}

/* ================= WordPress admin bar compatibility ================= */
.admin-bar .hmp-quote-modal-overlay.below-header{ padding-top:200px!important; }
@media screen and (max-width:782px){
  .admin-bar .hmp-quote-modal-overlay.below-header{ padding-top:160px!important; }
}

/* ================= Print styles ================= */
@media print{
  .hmp-quote-modal-overlay{ display:none!important; }
  .hmp-inline-bar{ border:1px solid #000!important; background:#fff!important; }
}

/* ================= DEBUG OVERRIDES ================= */
.hmp-quote-modal-overlay.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.8) !important;
    z-index: 999999 !important;
    padding-top: 140px !important;
}

.hmp-quote-modal-content {
    background: #fff !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1000000 !important;
}

.hmp-quote-modal-overlay {
    display: none !important;
}

.hmp-quote-modal-overlay.show {
    display: flex !important;
}

.hmp-quote-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ================= CUSTOM FIELD ALIGNMENT CONTROLS ================= */
/* Adjust these values to control field alignment globally for ALL forms */

/* Adjust Service Field ("What service do you need?") alignment */
.hmp-inline-service {
  /* Vertical adjustment - change the value to move up (negative) or down (positive) */
  /* Example values: -10px (up), -5px (up), 0px (centered), 5px (down), 10px (down) */
  --hmp-placeholder-vertical-align: 8px;
  
  /* Horizontal adjustment - change the value to move left (negative) or right (positive) */
  /* Example values: -10px (left), -5px (left), 0px (centered), 5px (right), 10px (right) */
  --hmp-placeholder-horizontal-align: 0px;
}

/* Adjust City Field alignment */
.hmp-inline-city {
  /* Vertical adjustment */
  --hmp-placeholder-vertical-align: 8px;
  
  /* Horizontal adjustment */
  --hmp-placeholder-horizontal-align: 0px;
}

/* COMMON ADJUSTMENTS - Uncomment and modify as needed:

Move both fields down 5px (if text looks too high):
.hmp-inline-service,
.hmp-inline-city {
  --hmp-placeholder-vertical-align: 5px;
}

Move both fields up 3px (if text looks too low):
.hmp-inline-service,
.hmp-inline-city {
  --hmp-placeholder-vertical-align: -3px;
}

Move service field down 5px, city field down 3px (different values):
.hmp-inline-service {
  --hmp-placeholder-vertical-align: 5px;
}
.hmp-inline-city {
  --hmp-placeholder-vertical-align: 3px;
}

Move service field right 5px to add padding:
.hmp-inline-service {
  --hmp-placeholder-horizontal-align: 5px;
}

*/