.courier-modal-overlay, 
.courier-terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.courier-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding-bottom: 12px;
}

.courier-modal-right {
    margin-left: auto;
    border-radius: 10px 0 0 10px;
}

.courier-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.courier-modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.courier-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.courier-modal-body {
  padding: 16px 20px 8px;
}

.courierInputGroupDetail {
    /* striped */
    background-image: linear-gradient(45deg, #dfe5e8 25%, #e6eff2 25%, #e6eff2 50%, #dfe5e8 50%, #dfe5e8 75%, #e6eff2 75%, #e6eff2 100%);
    background-size: 14.14px 14.14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 10px 0;
    margin-bottom: 25px !important;
}
.courierLocationOptionInputGroup {
    /* striped */
    background-image: linear-gradient(45deg, #e3dfe8 25%, #ebe6f2 25%, #ebe6f2 50%, #e3dfe8 50%, #e3dfe8 75%, #ebe6f2 75%, #ebe6f2 100%);
    background-size: 14.14px 14.14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 10px 0;
    margin-bottom: 25px !important;
}
.courierLocationPin {
    color:#4C33A7; 
    font-weight:bold; 
    border:2px dashed rgba(0,0,0,0.1); padding:10px;
    border-radius: 0 0 10px 10px;
}

.courierTermsBtn {
  background-color: transparent;
  text-decoration: underline;
}

#courierQuoteWrapper {
  border: 1px dashed rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

#pickupPinDisplay, #dropPinDisplay {
    padding:0;
}

.courier-steps {
  display: flex;
  border-bottom: 1px solid #eee;
}

.courier-step {
    position: relative;
}

.courier-step-item {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 13px;
  border-right: 1px solid #eee;
  background: #fafafa;
}

.courier-step-item:last-child {
  border-right: none;
}

.courier-step-item.active {
  /* background: #007bff; */
  background: #770074;
  background: linear-gradient(90deg,rgba(119, 0, 116, 1) 0%, rgba(0, 139, 255, 1) 50%);

  color: #fff;
  font-weight: 600;
}

.courier-step h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 16px;
}

.courier-form-row {
  margin-bottom: 10px;
}

.courier-form-row label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.courier-form-row input[type="text"],
.courier-form-row input[type="email"],
.courier-form-row input[type="password"],
.courier-form-row input[type="number"],
.courier-form-row textarea,
.courier-form-row select {
  width: 100%;
  height: 30px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.courier-form-row textarea {
    height: auto;
}

.courier-form-row small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #555;
}

.courier-inline-options label {
  margin-right: 15px;
  font-size: 13px;
}

.courier-inline-options input[type="radio"], input[type="checkbox"] {
    margin: -2px 4px 0 0;
}

.courier-dimensions {
  display: flex;
  gap: 6px;
}

.courier-dimensions input {
  flex: 1;
}

.courier-form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  border: none;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  text-shadow: none;
}
.btn-secondary:hover {
    background-color: #bc9fff;
}

.btn-xs {
    padding:0 5px;
}

.courier-error-msg {
  /* background: #fce4e4; */
  /* color: #b71c1c; */
  /* background: #ff0000;
  background: linear-gradient(90deg, rgba(255, 0, 0, 1) 0%, rgba(255, 72, 0, 0.10) 73%); */

  background: #020024;
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(121, 9, 9, 1) 35%, rgba(255, 72, 0, 0.89) 100%);

  color: #fff;
  padding: 26px 8px 26px 20px;
  border-radius: 4px;
  font-size: 12px;

  position: fixed;
    top: 95px;
    width: 100%;

    z-index: 1000;
}
.courier-error-msg .courier-error-msg-inline {
    position: relative;
    margin: 10px auto;
}

.courier-success-msg {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 10px;
}

.courier-total {
  font-weight: 700;
  margin-top: 4px;
}

.courier-card-element {
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
}

.courierSpan {
  font-weight:bold; 
  min-width:120px; 
  display:inline-block;
}
.courierSpan.courierSpanSmall {
  font-size: 14px;
}


/***
Map Picker
*/
#mapPickerOverlay,
#courierTermsModal {
  z-index: 999999 !important; /* higher than your courier modal */
}

.courier-modal-overlay,
.courier-terms-overlay {
  z-index: 9999;
}

#mapPickerOverlay .courier-modal,
#courierTermsModal .courier-modal {
  z-index: 1000000 !important;
}
