
/* Insurance Quote Modal Styles */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
  }
  
  /* Modal Container */
  .modal-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 64rem;
    position: relative;
  }
  
  .modal-business {
    max-width: 80rem;
  }
  
  /* Modal Content */
  .modal-content {
    padding: 2rem;
    position: relative;
  }
  
  /* Modal Close Button */
  .modal-close {
    position: absolute;
    top: 0rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    z-index: 10;
  }
  
  .modal-close:hover {
    color: #374151;
  }
  
  /* Modal Title */
  .modal-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #111827;
  }
  
  /* Quote Options Grid */
   /* Quote Items */
   .quote-options {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
      gap: 20px;
    }

    .quote-item {
        text-align: center;
        cursor: pointer;
        flex: 1;
        padding: 15px 10px;
        border-radius: 10px;
        border: 2px solid #e1e6ed;
        transition: all 0.3s ease;
      }

    .quote-item svg {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        stroke: #000;
        fill: none;
        stroke-width: 1.5;
    }

    .quote-item span {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #000;
        margin-top: 8px;
    }

    .quote-item img {
        width: 50px;
        margin-bottom: 10px;
    } 
  
  
  .quote-item:hover {
    border-color: #e1e6ed;
    background-color: #d8b5ff9e;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(136, 0, 231, 0.3);
  }
  .quote-item:hover svg {
    stroke: #ffffff;
  }
  .quote-item:hover span {
    color: #ffffff;
  }
  
  .quote-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.75rem;
    fill: #374151;
    transition: fill 0.2s;
  }
  
  /* Progress Bar */
  .progress-container {
    margin-bottom: 2rem;
  }
  
  .progress-bar {
    width: 100%;
    height: 0.75rem;
    background-color: #e9d5ff;
    border-radius: 9999px;
    overflow: hidden;
  }
  
  .progress-fill {
    height: 100%;
    background-color: #9333ea;
    transition: width 0.3s ease;
    width: 33%;
  }
  
  .progress-percentage {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #9333ea;
    font-weight: 500;
  }
  
  /* Business Pages */
  .business-page {
    display: none;
  }
  
  .business-page.active {
    display: block;
  }
  
  /* Life Pages */
  .life-page {
    display: none;
  }
  
  .life-page.active {
    display: block;
  }
  
  /* Travel Pages */
  .travel-page {
    display: none;
  }
  
  .travel-page.active {
    display: block;
  }
  
  /* Home Pages */
  .home-page {
    display: none;
  }
  
  .home-page.active {
    display: block;
  }
  
  /* Page Heading */
  .page-heading {
    text-align: center;
    color: #9333ea;
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.3;
  }
  
  /* Radio Group */
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .radio-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .radio-option:hover {
    border-color: #9333ea;
    background-color: #faf5ff;
  }
  
  .radio-option input[type="radio"] {
    margin-right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #9333ea;
  }
  
  .radio-label {
    flex: 1;
    font-size: 1rem;
    color: #111827;
    cursor: pointer;
  }
  
  /* Radio Inline */
  .radio-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .radio-inline-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
  }
  
  .radio-inline-option:hover {
    border-color: #c084fc;
  }
  
  .radio-inline-option.selected {
    background-color: #9333ea;
    border-color: #9333ea;
  }
  
  .radio-inline-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #9333ea;
  }
  
  .radio-inline-option.selected input[type="radio"] {
    accent-color: white;
    filter: brightness(1.2);
  }
  
  .radio-inline-option span {
    font-size: 1rem;
    color: #111827;
    cursor: pointer;
    font-weight: 500;
  }
  
  .radio-inline-option.selected span {
    color: white;
  }
  
  /* Form Container */
  .form-container {
    margin-bottom: 2rem;
  }
  
  /* Form Group */
  .form-group {
    margin-bottom: 0.85rem;
  }
  
  .form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
  }
  
  /* Form Row */
  .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  @media (min-width: 768px) {
    .form-row {
      grid-template-columns: 1fr 1fr !important;
    }
  }
  
  /* Form Input */
  .form-input {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
    color: #111827 !important;
    background-color: #f9fafb !important;
    transition: all 0.2s !important;
  }
  
  .form-input:focus {   
    outline: none !important;
    border-color: #9333ea !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1) !important;
  }
  
  .form-input::placeholder {
    color: #9ca3af !important;
  }
  
  /* Form Select */
  .form-select {
    width: 100% !important;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
    color: #111827 !important;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .form-select:focus {
    outline: none !important;
    border-color: #9333ea !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1) !important;
  }
  
  /* Revenue Slider Styling */
  .revenue-slider-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
  }
  
  .revenue-display {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
  }
  
  .revenue-slider-wrapper {
    position: relative;
    margin: 30px 0;
  }
  
  .revenue-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #9333ea 0%, #9333ea var(--progress, 0%), #e9ecef var(--progress, 0%), #e9ecef 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
  }
  
  .revenue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    transition: all 0.3s ease;
  }
  
  .revenue-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
  }
  
  .revenue-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    transition: all 0.3s ease;
  }
  
  .revenue-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
  }
  
  .revenue-slider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 4px;
  }
  
  .revenue-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 4px;
    border: none;
  }
  
  .slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    position: relative;
  }
  
  .marker {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    position: relative;
    padding: 5px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 60px;
  }
  
  .marker:first-child {
    text-align: left;
  }
  
  .marker:last-child {
    text-align: right;
  }
  
  .marker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #9333ea;
    border-radius: 1px;
  }
  
  /* Slider Container (legacy support) */
  .slider-container {
    padding: 1rem 0;
  }
  
  .slider-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #9333ea;
  }
  
  /* Checkbox Label */
  .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
  }
  
  .checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #9333ea;
  }
  
  .checkbox-label span {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
  }
  
  /* Error Message */
  .error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1.25rem;
  }
  
  /* Button Group */
  .button-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .button-group .btn:only-child {
    margin-left: auto;
  }
  
  /* Buttons */
  .btn {
    padding: 0.625rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-primary {
    background-color: #030213;
    color: white;
  }
  
  .btn-primary:hover {
    background-color: #1f2937;
  }
  
  .btn-outline {
    background-color: transparent;
    color: #030213;
    border: 1px solid #d1d5db;
  }
  
  .btn-outline:hover {
    background-color: #f3f4f6;
  }
  
  /* Success Message */
  .success-content {
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .success-icon {
    width: 5rem;
    height: 5rem;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    font-weight: bold;
  }
  
  .success-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
  }
  
  .success-text {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .success-text a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 600;
  }
  
  .success-text a:hover {
    text-decoration: underline;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .modal-content {
      padding: 1.5rem;
    }
  
    .page-heading {
      font-size: 1.5rem;
    }
  
    .modal-title {
      font-size: 1.5rem;
    }
  
    .quote-options {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 1rem;
    }
  
    .quote-item {
      padding: 1.5rem 1rem;
    }
  
    .quote-icon {
      width: 3rem;
      height: 3rem;
    }
  
    .button-group {
      flex-direction: column;
    }
  
    .button-group .btn:only-child {
      margin-left: 0;
    }
  
    .radio-inline {
      flex-direction: column;
      gap: 0.75rem;
    }
    
    .revenue-display {
      font-size: 20px;
      padding: 12px;
    }
    
    .revenue-slider-container {
      padding: 15px;
    }
    
    .marker {
      font-size: 11px;
      min-width: 50px;
    }
  }
  
  @media (max-width: 640px) {
    .modal-container {
      max-height: 95vh;
    }
  
    .page-heading {
      font-size: 1.25rem;
      margin-bottom: 1.5rem;
    }
  
    .success-icon {
      width: 4rem;
      height: 4rem;
      font-size: 2rem;
    }
  
    .success-title {
      font-size: 1.5rem;
    }
  
    .success-text {
      font-size: 1rem;
    }
    
    .revenue-display {
      font-size: 18px;
      padding: 10px;
    }
    
    .marker {
      font-size: 10px;
      min-width: 45px;
    }
  }
  
  /* Scrollbar Styles */
  .modal-container::-webkit-scrollbar {
    width: 8px;
  }
  
  .modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .modal-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }
  
  .modal-container::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* Auto Insurance Modal Styles */
  .auto-page {
    padding: 1rem 0;
  }

  .radio-option {
    transition: all 0.2s;
  }

  .radio-option:hover {
    border-color: #8800e7 !important;
    background-color: #f9fafb;
  }

  .radio-option.selected {
    border-color: #8800e7 !important;
    background-color: #f3e8ff !important;
  }

  .auto-vehicle-form,
  .auto-driver-form {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .auto-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .auto-subheading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8800e7;
    margin: 0;
  }

  .auto-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem 0;
  }

  .auto-btn-remove {
    padding: 0.5rem 1rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .auto-btn-remove:hover {
    background-color: #dc2626;
  }

  .auto-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0rem !important;
  }

  @media (min-width: 640px) {
    .auto-form-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .auto-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.85rem;

  }

  .auto-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
  }

  .auto-form-input,
  .auto-form-select {
    width: 100%;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #111827 !important;
    /* margin-bottom: 0.85rem; */
  }

  .auto-form-input:focus,
  .auto-form-select:focus {
    outline: none;
    border-color: #8800e7;
    box-shadow: 0 0 0 3px rgba(136, 0, 231, 0.1);
    color: #111827 !important;
  }

  .auto-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .auto-radio-option {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
  }

  .auto-radio-option:hover {
    border-color: #8800e7;
    background-color: #f9fafb;
  }

  .auto-radio-option.selected {
    border-color: #8800e7;
    background-color: #f3e8ff;
  }

  .auto-radio-option input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #8800e7;
  }

  .auto-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
  }

  .auto-error-message:not(:empty) {
    display: block;
  }

  #vehiclesContainer,
  #driversContainer {
    margin-bottom: 1rem;
  }
  