/* Button Styles */
.action-btn {
    /* Your existing button styles */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative; /* Ensure it's above other elements */
    z-index: 10; /* Make sure it's not being covered */
  }
  
  .action-btn:hover {
    opacity: 0.9;
  }
  
  .action-btn.quote-btn {
    background-color: #333;
    color: white;
  }
  
  .action-btn.quote-btn:hover {
    background-color: #555;
  }
  
  /* Make sure nothing is covering the button */
  .estimate-form-card {
    position: relative;
  }
  
  /* Ensure no other elements are blocking */
  .no-pointer-events {
    pointer-events: none !important;
  }

  
/* ==================
   GLOBAL VARIABLES & RESET
   ================== */
   :root {
    --primary: #ff4d4d;
    --primary-light: #ff8080;
    --primary-dark: #e04545;
    --secondary: #333;
    --light: #f8f8f8;
    --dark: #00000068;
    --dark-blue: #0d2b3e;
    --gray: #777;
    --light-gray: #eaeaea;
    --success: #1a7732;
    --error: #e33;
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    --box-shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
  }
  
  body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background-color: #f3f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* ==================
     HERO SECTION
     ================== */
     .estimate-hero {
      position: relative;
      width: 100%;
      min-height: 100vh; /* Or adjust to desired height */
      display: flex;
      align-items: center;
      justify-content: flex-start;
      z-index: 1;
      overflow: hidden;
    }
  .full-bg {
    position: absolute; /* Changed from fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('low-angle-back-rear-view-600nw-2438082501.jpg') center center/cover no-repeat;
    z-index: 0;
  }
  .hero-overlay {
    position: relative;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 2rem;
    max-width: 600px;
    z-index: 2;
    box-shadow: var(--box-shadow);
    transform: translateZ(0);
  }
  
  .hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 400;
  }
  
  .hero-detail {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .estimate-steps {
    margin-top: 2.5rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(5px);
    position: relative;
  }
  
  .steps-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
  }
  
  .steps-list {
    padding-left: 1.25rem;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .steps-list li {
    margin-bottom: 0.75rem;
  }
  
  .steps-list li strong {
    color: var(--primary-light);
    font-weight: 500;
  }
  
  /* ==================
     ESTIMATE FORM
     ================== */
     .estimate-main-area {
        position: relative;
        z-index: 20; /* Increased for better layering */
        width: 100%;
        max-width: 1000px; /* Optimal width for form readability */
        margin: 2rem auto;
        padding: 0 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
  
      .estimate-form-card {
        margin-top: 40px;

        width: 100%;
        background: rgba(255,255,255,0.98);
        padding: 2.5rem;
        border-radius: var(--border-radius);
        box-shadow: 
          0 6px 18px rgba(0,0,0,0.1),
          0 2px 4px rgba(0,0,0,0.05); /* Enhanced shadow for depth */
        border: 1px solid rgba(0,0,0,0.08);
        backdrop-filter: blur(8px); /* Stronger blur for frosted effect */
        transform: translateZ(0); /* GPU acceleration */
        transition: all 0.3s ease;
      }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
  }
  
  input, select {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    background: white;
    transition: var(--transition);
  }
  
  input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
  }
  html, body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  input[type="text"]:invalid {
    border-color: var(--error);
  }
  
  input:disabled, select:disabled {
    background: #f4f6f8;
    color: #a6b0bc;
    cursor: not-allowed;
  }
  
  .error-msg {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
  }
  
  /* Custom Select Styles */
  .custom-select-wrapper {
    position: relative;
  }
  
  .custom-select-selected {
    padding: 0.9rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .custom-select-selected::after {
    content: "▼";
    font-size: 0.7rem;
    color: var(--gray);
    transition: transform 0.2s;
  }
  
  .custom-select-wrapper.active .custom-select-selected::after {
    transform: rotate(180deg);
  }
  
  .custom-select-selected.has-value {
    background: #e7f7ef;
    border-color: var(--success);
  }
  
  .custom-select-options {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
  }
  
  .custom-select-option {
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .custom-select-option:hover {
    background: #f5f9ff;
  }
  
  .custom-select-wrapper.active .custom-select-options {
    display: block;
  }
  
  /* Service Search */
  .search-group {
    position: relative;
  }
  
  .service-search-results {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
  }
  
  .service-search-results div {
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .service-search-results div:hover {
    background: #f5f9ff;
  }
  
  /* Service Options */
  .service-options {
    margin: 1rem 0;
  }
  
  .service-options label {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    cursor: pointer;
  }
  
  .service-options input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
  }
  /* ==================
   RIGHT-ALIGNED PRICE COMPARISON
   ================== */
.price-section {
    margin: 1.5rem 0;
  }
  
  .est-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns items at bottom */
  }
  
  /* Your Price - Left Side */
  .our-est-card {
    text-align: left;
    flex: 1; /* Takes available space */
  }
  
  /* Dealer Price + Savings - Right Side */
  .dealer-est-card {
    text-align: right;
    margin-left: auto;
    margin-left: 190px;
  }
  
  .est-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
    font-weight: 500;
  }
  
  /* Your Price */
  .our-est-card .est-main {
    font-size: 22px;
    color: var(--success);
    font-weight: 700;
    background-color: #e0454511;
  }
  
  /* Dealer Price */
  .dealer-est-card .est-main {
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 400;
    text-decoration: line-through;
  }
  
  /* Savings */
  .savings-label {
    font-size: 15px;
    color: var(--gray);
    margin-top: 6px;
  }
  
  .savings-main {
    font-size: 15px;
    color: var(--success);
    font-weight: 500;
  }
  
  /* Mobile Adjustments */
  @media (max-width: 768px) {
    .our-est-card .est-main {
      font-size: 20px;
    }
    
    .dealer-est-card .est-main {
      font-size: 13px;
    }
    .dealer-est-card {
      margin-left: 90px;
      font-size: 15px;

    }
    
    .savings-main {
      font-size: 11px;
    }
  }
  
  .action-btn {
    width: 100%;
    padding: 1rem;
    background:#ff4d4d;
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
  }
  
  .action-btn:hover {
    background:#7d2020;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .action-btn:active {
    transform: translateY(0);
  }
  
  .action-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  
  /* ==================
     LAYOUT & RESPONSIVE
     ================== */
  @media (min-width: 1201px) {
    body {
      overflow-y: auto;
    }
    
      .estimate-hero {
        position: relative !important; /* Changed from fixed */
        height: auto;
      }
    
    .estimate-main-area {
      position: absolute;
      top: 2rem;
      right: 2rem;
      margin: 0;
      max-width: 550px;

    }
    
   main {
    padding-top: 0; /* Remove this padding */
  }
  }
  
  @media (max-width: 1200px) and (min-width: 993px) {
    .estimate-main-area {
      right: 1.5rem;
      margin-top: -2rem;

    }
    
    .hero-overlay {
      margin-left: 3rem;
    }
  }
  
  @media (max-width: 992px) {
    .estimate-hero {
      min-height: auto;
      height: auto;
      position: relative !important;
      padding: 2rem 0;
    }
    
    .full-bg {
      position: absolute !important;
      height: 100%;
    }
    
    .hero-overlay {
      margin: 2rem auto;
      max-width: 90%;
    }
    
    .estimate-main-area {
      position: relative;
      max-width: 100%;
      padding: 0 1.5rem;
      margin: 2rem auto;
      z-index: 20;
      margin-top: -2rem;

    }
    
    main {
      padding-top: 0;
    }
    
    /* Ensure steps are visible at bottom of viewport */
    .estimate-steps {
      margin-bottom: 50px;
      scroll-margin-top: 50px;
    }
  }
  
/* ==================
   SMALL SCREEN ADJUSTMENTS (under 768px)
   ================== */
   @media (max-width: 768px) {
    /* Compact the hero overlay content */
    .hero-overlay {
      padding: 1.5rem;
      margin: 1rem auto;
      max-width: 95%;
    }
  
    .hero-overlay h1 {
      font-size: 1.75rem;
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }
  
    .hero-subtitle {
      font-size: 1rem;
      margin-bottom: 1rem;
      line-height: 1.4;
    }
  
    .hero-detail {
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }
  
    .hero-detail br {
      display: none; /* Remove line break on small screens */
    }
  
    /* Compact the steps section */
    .estimate-steps {
      margin-top: 1.5rem;
      padding: 1rem;
    }
  
    .steps-title {
      font-size: 1.1rem;
      margin-bottom: 0.75rem;
    }
  
    .steps-list {
      font-size: 0.9rem;
      padding-left: 1rem;
      line-height: 1.6;
    }
  
    .steps-list li {
      margin-bottom: 0.5rem;
    }
  
    /* Pull up the form card closer to hero */
    .estimate-main-area {
      margin-top: 2rem;
      margin-bottom: 1rem;
      padding: 0 1rem;
    }
  
    .estimate-form-card {
      padding: 1.5rem;
      margin-top: -30px; /* Pulls form up closer to hero */
      position: relative;
      z-index: 30;
    }
  
    /* Adjust form elements for compact layout */
    .form-group {
      margin-bottom: 1rem;
    }
  
    input, select {
      padding: 0.8rem;
      font-size: 0.95rem;
    }
  
    /* Compact price display */
    .price-section {
      margin: 1.5rem 0 0.5rem;
      padding: 1rem;
    }
  
    .est-row {
      gap: 1rem;
    }
  
    .our-est-card .est-main {
      font-size: 1.45rem;
    }
  
    .dealer-est-card .est-main {
      font-size: 1rem;
    }
  
    .savings-main {
      font-size: 1rem;
    }
  }
  
  /* ==================
     EXTRA SMALL SCREENS (under 480px)
     ================== */
  @media (max-width: 480px) {
    .hero-overlay {
      padding: 1.25rem;
    }
  
    .hero-overlay h1 {
      font-size: 1.5rem;
    }
  
    .hero-subtitle {
      font-size: 0.95rem;
    }
  
    .hero-detail {
      font-size: 0.9rem;
    }
  
    .estimate-steps {
      margin-top: 1.25rem;
      padding: 0.75rem;
    }
  
    .estimate-form-card {
      padding: 1.25rem;
      margin-top: -40px; /* Pull up even more on very small screens */
    }
  
    /* Make form elements even more compact */
    label {
      font-size: 0.9rem;
      margin-bottom: 0.4rem;
    }
  
    input, select {
      padding: 0.7rem;
      font-size: 0.9rem;
    }
  
    .action-btn {
      padding: 0.9rem;
      font-size: 1rem;
    }
  }
  
  /* ==================
     UTILITY CLASSES
     ================== */
  .hidden {
    display: none !important;
  }
  
  /* Loading animation */
  .loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .loading-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 1.4s infinite both;
  }
  
  .loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
  }

  .base-price {
    font-size: 1.2em;
    display: block;
  }
  .tax-line {
    font-size: 0.8em;
    color: var(--gray);
    display: block;
  }
  .total-price {
    font-size: 22px;
    color: var(--success);
    font-weight: 700;
    background-color: #e0454511;
  }

  .tax-disclaimer {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
  }

  /* Styles for the price + tax badge */
.price-with-tax-badge {
    position: relative;
    display: inline-block;
  }
  
  .tax-badge {
    position: absolute;
    top: .5em;    /* Adjust to position vertically */
    right: -5.0em;  /* Adjust to position horizontally */
    font-size: 0.6em;
    background: #f0f0f0;
    color: #666;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    line-height: 1;
  }