:root {
  --primary-color-stretch: #d74559;
}
#Content{
    z-index:999!important;
}
/* Main Form Container */
.stretchllc-freight-form-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.stretchllc-freight-form-wrapper input[type="text"],
.stretchllc-freight-form-wrapper input[type="tel"],
.stretchllc-freight-form-wrapper input[type="email"],
.stretchllc-freight-form-wrapper input[type="number"],
.stretchllc-freight-form-wrapper input[type="url"],
.stretchllc-freight-form-wrapper input[type="date"],
.stretchllc-freight-form-wrapper textarea {
  width: 100%;
  margin-bottom: 0;
}
.stretchllc-freight-form-wrapper input[type="date"]:focus,
.stretchllc-freight-form-wrapper input[type="email"]:focus,
.stretchllc-freight-form-wrapper input[type="number"]:focus,
.stretchllc-freight-form-wrapper input[type="password"]:focus,
.stretchllc-freight-form-wrapper input[type="search"]:focus,
.stretchllc-freight-form-wrapper input[type="tel"]:focus,
.stretchllc-freight-form-wrapper input[type="text"]:focus,
.stretchllc-freight-form-wrapper input[type="url"]:focus,
.stretchllc-freight-form-wrapper select:focus,
.stretchllc-freight-form-wrapper textarea:focus {
  background-color: lightgray !important;
  outline: none;
}

.stretchllc-freight-form-wrapper a {
  color: var(--primary-color-stretch);
}
.flex {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}
.flex label {
  margin: 0;
}
.flex input {
  width: auto;
}
/* Form View Toggle */
.form-view-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.form-view-toggle .toggle-option {
  background: none;
  border: 1px solid var(--primary-color-stretch);
  color: var(--primary-color-stretch);
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-view-toggle .toggle-option:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}

.form-view-toggle .toggle-option:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

.form-view-toggle .toggle-option:hover {
  background-color: var(--primary-color-stretch);
  color:#fff;
}

.form-view-toggle .toggle-option.active {
  background-color: var(--primary-color-stretch);
  color: white;
}

/* Quick Form Styles */
.quick-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.quick-form .form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.quick-form .form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.quick-form h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.quick-form .form-actions {
  text-align: right;
  margin-top: 30px;
}

/* Wizard Progress */
.wizard-progress {
  margin-bottom: 30px;
  position: relative;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  position: relative;
}

.wizard-steps:before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.wizard-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wizard-steps li .step-icon {
  font-size: 1.5em;
  margin-bottom: 5px;
  display: flex;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 50%;
  margin: 0 auto 10px;
  color: #666;
  justify-content: center;
  align-items: center;
}
.wizard-steps li .step-icon svg {
  width: 22px;
  height: 22px;
  fill: #666;
}
.wizard-steps li.active .step-icon,
.wizard-steps li.completed .step-icon {
  background: var(--primary-color-stretch);
  color: white;
}
.wizard-steps li.active .step-icon svg,
.wizard-steps li.completed .step-icon svg {
  fill: white;
}

.wizard-steps li {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 0 10px;
  list-style-type: none;
}

/* Remove the default number indicator since we're using icons */
.wizard-steps li:before {
  display: none;
}

.wizard-steps li.active:before,
.wizard-steps li.completed:before {
  background: var(--primary-color-stretch);
  color: white;
}

.wizard-steps li.completed:before {
  content: "✓";
}

.wizard-steps li span {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.wizard-steps li.active span,
.wizard-steps li.completed span {
  color: var(--primary-color-stretch);
  font-weight: 500;
}

/* Form Styles */
.wizard-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

/* Hide/show forms */
.wizard-form.hidden,
.quick-form.hidden {
  display: none;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
  flex: 1;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  padding: 0 15px;
  column-gap: 15px;
}

.form-group.col-md-4,
.form-group.col-md-6 {
  /* padding: 0 15px; */
  /* flex: 0 0 50%; */
  /* max-width: 50%; */
  flex: 1;
}

.form-group.col-md-4 {
  flex: 1;

  /* flex: 0 0 33.333333%;
    max-width: 33.333333%; */
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: rgba(241, 241, 241, 1);
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color-stretch);
  /* border-color: #0073aa; */
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Buttons */
.stretchllc-freight-form-wrapper .button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color-stretch) !important;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}

.button:hover {
  background: var(--primary-color-stretch);
}

.button.prev-step {
  background: #6c757d;
  margin-right: 10px;
}

.button.prev-step:hover {
  background: #5a6268;
}

.wizard-actions {
  margin-top: 30px;
  text-align: right;
}

/* Tabs */
.form-tabs {
  margin-bottom: 20px;
}

.form-tabs > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  border-bottom: 1px solid #ddd;
}

.form-tabs > ul li {
  margin-right: 5px;
}

.form-tabs > ul li a {
  display: block;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  position: relative;
  bottom: -1px;
}

.form-tabs > ul li.ui-tabs-active a {
  background: #fff;
  color: var(--primary-color-stretch);
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

/* Review Section */
.review-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.review-section h4 {
  margin-top: 0;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.select2-container--default .select2-selection--single {
  padding: 5px;
  height: auto;
}

/* Address Autocomplete Styles */
.address-input-container {
  position: relative;
}

.address-suggestions {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.address-suggestion {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  transition: background-color 0.2s;
}

.address-suggestion:hover {
  background-color: #f5f5f5;
}

.address-suggestion:last-child {
  border-bottom: none;
}

/* Make sure the suggestions appear above other elements */
.form-group {
  position: relative;
  z-index: 1;
}
/* Add this to your CSS file */
.pac-container {
  z-index: 1051 !important; /* Make sure it appears above other elements */
  font-family: inherit;
}

.pac-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.pac-item:hover {
  background-color: #f5f5f5;
}

.pac-item-query {
  font-size: 14px;
}

.pac-icon {
  display: none;
}

/* Ensure the input fields have proper z-index */
#pickup_address,
#drop_address {
  position: relative;
  z-index: 1;
}
/* Responsive */
@media (max-width: 768px) {
  .form-group.col-md-4,
  .form-group.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  /* .wizard-steps {
        flex-direction: column;
        align-items: flex-start;
    } */

  .wizard-steps li {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .wizard-steps li:before {
    margin: 0 10px 0 0;
  }

  .wizard-steps:before {
    display: none;
  }

  .wizard-actions {
    text-align: center;
    display: flex;
    gap: 20px;
    padding: 0 15px;
  }

  .button {
    width: 100%;
    margin-bottom: 10px;
  }

  .button.prev-step {
    margin-right: 0;
  }
  .form-row {
    flex-direction: column;
  }
  .form-row .form-group.col-md-6 {
    max-width: 100%;
  }
  .form-group,
  .form-group.col-md-4,
  .form-group.col-md-6,
  .form-row {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .form-view-toggle .toggle-option {
    margin: 5px 0;
    border-radius: 4px !important;
  }

  .quick-form .form-section {
    padding: 15px;
  }
}
@media (min-width: 990px) {
  .form-row .form-group.col-md-6 {
    padding: 0;
    max-width: 49%;
  }
}
/* @media(min-width:768px){ */
.stretchllc-freight-form-wrapper input[type="time"] {
  width: 93%;
}
/* } */
.hidden {
  display: none;
}
/* Add this to your CSS file */
.swal2-confirm {
  background-color: #4caf50 !important;
  color: white !important;
  padding: 10px 24px !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

.swal2-confirm:hover {
  background-color: #45a049 !important;
}

.swal2-title {
  color: #333 !important;
}

.swal2-html-container {
  color: #555 !important;
}

.error {
  border-color: red !important;
}
.error + .select2-container .select2-selection--single {
  border-color: red !important;
}

/* Addons */
.addons-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e0e0;
}
.addons-summary-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}
.addons-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color-stretch);
}
.addons-total-amount {
  font-size: 1.3rem;
  color: var(--primary-color-stretch);
  margin-left: 5px;
}
.addons-inner-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.addons-inner-container h4 {
  font-size: 28px;
}
.addons-category {
  margin-bottom: 30px;
  flex: 1;
}

.addon-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.addon-option {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.addon-option:hover {
  border-color: var(--primary-color-stretch);
  background: #f8fafc;
}

.addon-option.selected {
  border-color: var(--primary-color-stretch);
  background-color: #f0f7ff;
  box-shadow: 0 2px 8px rgba(215, 69, 89, 0.1);
}

.addon-option input[type="checkbox"] {
  display: none;
}

.addon-option input[type="checkbox"]:checked + .addon-label {
  color: var(--primary-color-stretch);
}

.addon-option input[type="checkbox"]:checked {
  background-color: var(--primary-color-stretch);
  border-color: var(--primary-color-stretch);
}

.addon-option input[type="checkbox"]:checked + .addon-label:before {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  background: var(--primary-color-stretch);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.addon-label {
  position: relative;
  display: block;
  cursor: pointer;
  width: 100%;
  padding-right: 40px; /* Make space for the checkmark */
}

.addon-option .addon-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

.addon-option .addon-cost {
  color: var(--primary-color-stretch);
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 8px;
  white-space: nowrap;
}

.addon-option .addon-desc {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .addon-options {
    grid-template-columns: 1fr;
  }
  .wizard-form {
    padding: 30px 10px;
  }
  .review-section {
    padding: 20px 10px;
  }
  .wizard-steps {
    flex-wrap: wrap;
  }
  .wizard-steps li span {
    font-size: 14px;
    /* color: #666; */
    /* text-align: center; */
    /* width: 100px; */
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
#review-addons-details {
  grid-template-columns: 1fr 1fr !important;
}

.toll-cost {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.toll-cost .label {
  font-weight: 600;
  color: #495057;
}

.toll-cost .value {
  color: #28a745;
  font-weight: 700;
}

/* International Form */

#container_type,
#commodity_type {
  width: 100%;
}
.container-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.container-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  gap: 12px;
}

/* Utility Classes for International Form */
.bg-white {
  background-color: #fff;
}
.p-6 {
  padding: 1.5rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.mb-4 {
  margin-bottom: 1rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.font-medium {
  font-weight: 500;
}
.text-gray-700 {
  color: #374151;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
/* .border {
  border-width: 1px;
  border-style: solid;
}
.border-gray-400 {
  border-color: #9ca3af;
} */
.w-full {
  width: 100%;
}
.rounded-md {
  border-radius: 0.375rem;
}
.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgba(59, 130, 246, var(--tw-ring-opacity));
  box-shadow: 0 0 0 3px var(--tw-ring-color);
  outline: none;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.gap-4 {
  gap: 1rem;
}
.block {
  display: block;
}
.mt-6 {
  margin-top: 1.5rem;
}
.flex {
  display: flex;
}
.justify-end {
  justify-content: flex-end;
}
.bg-blue-500 {
  background-color: #3b82f6;
}
.hover\:bg-blue-600:hover {
  background-color: #2563eb;
}
.text-white {
  color: #fff;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.cursor-pointer {
  cursor: pointer;
}
.relative {
  position: relative;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.items-center {
  align-items: center;
}
.inline-flex {
  display: inline-flex;
}
.ml-2 {
  margin-left: 0.5rem;
}
.text-blue-600 {
  color: #2563eb;
}
.form-radio {
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: radio;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
}

/* Rate Modal Styles */
.rate-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.rate-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rate-modal-container {
  background: white;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.rate-modal-header {
  background: var(--primary-color-stretch);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rate-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.rate-route-info {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.rate-weight-info {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.rate-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.rate-breakdown-table th {
  background: #f8f9fa;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #ddd;
  font-size: 0.85rem;
}

.rate-breakdown-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #333;
  vertical-align: top;
}

.rate-breakdown-table tfoot td {
  border-top: 2px solid #ddd;
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 15px;
  text-align: right;
}

.rate-modal-footer {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.rate-modal-actions {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fff;
}

.rate-modal-btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.rate-modal-btn-confirm {
  background: #28a745;
  color: white;
}

.rate-modal-btn-confirm:hover {
  background: #218838;
}

.rate-modal-btn-cancel {
  background: #dc3545;
  color: white;
}

.rate-modal-btn-cancel:hover {
  background: #c82333;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .rate-breakdown-table th,
  .rate-breakdown-table td {
    padding: 8px 5px;
    font-size: 0.8rem;
  }

  .rate-modal-actions {
    flex-direction: column;
  }

  .rate-modal-btn {
    width: 100%;
    justify-content: center;
  }
}
