/* Quote Request Modal Styles */
.quote-modal {
  text-align: center;
  padding: 0 !important;
}

.quote-modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.quote-modal .modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  width: 90%;
  max-width: 1200px;
  float: none;
}

.quote-btn {
  float: right;
  background-color: white;
  border: 3px solid #db1b23;
  color: #db1b23;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: -55px;
}

.quote-btn:hover {
  background-color: #db1b23;
  color: white;
}

.quote-btn img {
  width: 20px;
  height: 20px;
}

.quote-btn:hover img {
  filter: brightness(0) invert(1);
}

.quote-modal .modal-content {
  border-radius: 5px;
  padding: 20px 140px;
  position: relative;
  min-height: 700px;
  max-height: 90dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.quote-modal .modal-header {
  border-bottom: none;
  text-align: center;
  padding-bottom: 10px;
}

.quote-modal .modal-title {
  color: #db1b23;
  font-weight: 700;
  font-size: 45px;
  margin: 20px 0;
}

.quote-modal .modal-body {
  padding: 10px 0;
}

.quote-modal label {
  font-weight: 700;
  font-size: 21px;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.quote-modal .form-control {
  border-radius: 4px;
  border: 1px solid #ccc;
  height: 40px;
  box-shadow: none;
  margin-bottom: 15px;
  font-size: 15px;
}

.quote-modal .product-select-section {
  margin-top: 10px;
}

.quote-modal .product-select-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #333;
}

.quote-modal .product-select-label {
  font-weight: normal;
  margin: 0;
  cursor: pointer;
  font-size: 18px;
}

.quote-modal .product-select-item input[type='checkbox'] {
  margin: 0 10px 0 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.quote-modal .product-select-item .qty-input {
  width: 45px;
  height: 28px;
  margin: 0 10px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.quote-modal .product-select-item .qty-input:not(:disabled) {
  background-color: #fff;
}

.quote-modal .modal-footer {
  border-top: none;
  text-align: center;
  padding: 20px 0 30px;
}

.btn-quote-cancel {
  border: 3px solid #db1b23;
  color: #db1b23;
  background: white;
  border-radius: 6px;
  padding: 8px 35px;
  font-weight: 700;
  font-size: 18px;
  margin: 0 10px;
  outline: none;
}

.btn-quote-cancel:hover {
  background-color: #db1b23;
  color: white;
}

.btn-quote-submit {
  background-color: #db1b23;
  color: white;
  border: 1px solid #db1b23;
  border-radius: 6px;
  padding: 8px 35px;
  font-weight: 700;
  font-size: 18px;
  margin: 0 10px;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-quote-submit:hover:not(:disabled) {
  background-color: white;
  color: #db1b23;
  border: 1px solid white;
}

.btn-quote-submit:disabled {
  opacity: 0.6;
  background-color: #999;
  border-color: #999;
}

.quote-modal .close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  font-weight: normal;
  z-index: 10;
}

#quote-success-content {
  text-align: center;
  padding: 40px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#quote-form-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#quote-success-content p {
  font-size: 21px;
  color: #db1b23;
  font-weight: 500;
  line-height: 1.4;
}

/* Tablet breakpoint */
@media (max-width: 991px) {
  .quote-modal .modal-content {
    padding: 20px 60px;
  }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .quote-modal .modal-dialog {
    width: 95%;
    margin: 10px auto;
  }

  .quote-btn {
    float: none;
    margin-top: 10px;
    margin-bottom: 20px;
    display: inline-flex;
    font-size: 18px;
    padding: 10px 20px;
  }

  .quote-modal .modal-content {
    padding: 20px;
    min-height: 700px;
    max-height: 90dvh;
    overflow-y: auto;
  }

  .quote-modal .modal-header {
    padding-bottom: 5px;
  }

  .quote-modal .modal-title {
    font-size: 32px;
    margin: 10px 0 15px 0;
  }

  .quote-modal .modal-body {
    padding: 5px 0;
    overflow-y: visible;
  }

  .quote-modal label {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .quote-modal .form-control {
    height: 44px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* Stack form fields vertically on mobile */
  .quote-modal .row {
    margin-left: 0;
    margin-right: 0;
  }

  .quote-modal .row > [class*='col-'] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Make product selection items wrap better */
  .quote-modal .product-select-item {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
  }

  .quote-modal .product-select-item input[type='checkbox'] {
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
  }

  .quote-modal .product-select-label {
    font-size: 14px;
    flex: 1;
    min-width: 150px;
    line-height: 1.3;
  }

  .quote-modal .product-select-item .qty-input {
    width: 60px;
    height: 36px;
    font-size: 16px;
    margin: 0;
  }

  .quote-modal .product-select-item span {
    font-size: 14px;
  }

  /* Better footer button layout */
  .quote-modal .modal-footer {
    padding: 15px 0 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .btn-quote-cancel,
  .btn-quote-submit {
    font-size: 16px;
    padding: 12px 25px;
    margin: 0;
    flex: 1;
    max-width: 150px;
    min-height: 44px;
  }

  /* Larger close button for better touch target */
  .quote-modal .close {
    right: 10px;
    top: 10px;
    font-size: 34px;
    padding: 5px 10px;
    opacity: 0.7;
  }

  #quote-success-content {
    padding: 40px 20px;
  }

  #quote-success-content p {
    font-size: 18px;
    line-height: 1.5;
    margin: 8px auto;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .quote-modal .modal-dialog {
    width: 98%;
    margin: 5px auto;
  }

  .quote-modal .modal-content {
    padding: 12px;
    min-height: 500px;
  }

  .quote-modal .modal-title {
    font-size: 22px;
    line-height: 1.2;
  }

  .quote-modal .product-select-item {
    padding: 8px;
  }

  .btn-quote-cancel,
  .btn-quote-submit {
    font-size: 15px;
    padding: 10px 20px;
  }
}
