/* Delta Couriers Quote Widget */
.dcq-wrap{
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 8%;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,0.5);
}

.dcq-header{ margin-bottom: 12px; }
.dcq-title{ font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
.dcq-subtitle{ font-size: 1.2rem; font-weight: 600; opacity: .95; margin-top: 4px; }

.dcq-form{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.dcq-label span{
  display:block;
  font-size: 1.6rem;
  font-weight: 700;
  opacity: .95;
  margin-bottom: 6px;
}

.dcq-input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 16px;
}

.dcq-service{
  grid-column: 1 / -1;
  display:flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dcq-toggle{
  display: inline-flex;
  border: 2px solid rgba(0,0,0,0.6);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}

.dcq-toggle-btn{
  padding: 8px 12px;
  border: 0;
  background: rgba(0,0,0,0.1);
  cursor: pointer;
  font-weight: 600;
}
.dcq-toggle-btn.is-active{
  background: rgba(255,255,255,0.8);
}

.dcq-eta{ font-size: 13px; opacity: .8; }

.dcq-btn{
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.8rem;
  white-space: nowrap;
}
.dcq-field-error{
  border:2px solid #e60023 !important;
  box-shadow:0 0 0 2px rgba(230,0,35,.08);
}
.dcq-msg{
  grid-column: 1 / -1;
  font-size: 14px;
  margin-top: 4px;
}
.dcq-msg.is-error{ color: #b00020; }
.dcq-msg.is-ok{ color: #0a7a2a; }

.dcq-results{ margin-top: 16px; }
.dcq-results-head{
  display:flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dcq-results-distance{ font-weight: 700; }
.dcq-results-note{ font-size: 12px; opacity: .7; max-width: 560px; }

.dcq-summary{
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
}

.dcq-sum-row{
  font-size: 13px;
  line-height: 1.25;
  opacity: .95;
}

.dcq-sum-eta{ opacity: .85; }
.dcq-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dcq-card{
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 12px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: auto !important;
  min-height: 320px;
}

.dcq-card-title{ font-weight: 800; }
.dcq-card-sub{ font-size: 13px; opacity: .85; margin-top: 2px; text-align: center; }
.dcq-card-sub2{ font-size: 12px; opacity: .65; margin-top: 2px; text-align: center; }

.dcq-price{
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  overflow: visible;
  margin: 10px 0 10px;
}

.dcq-book{
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 800;
  width: 100%;
  margin-top: 6px;
}
.dcq-van-imgwrap{
  width: 100%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
}
.dcq-van-img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* full-tile look */
  display: block;
}
.dcq-steps{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dcq-step{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.dcq-step.is-done,
.dcq-step.is-active{
  background: #1b8ed8;
  color: #fff;
}

.dcq-change{
  margin-top: 10px;
}

.dcq-change-link{
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}

.dcq-wrap-results .dcq-msg{
  margin-bottom: 10px;
}

@media (max-width: 520px){
  .dcq-steps{
    gap: 8px;
  }

  .dcq-step{
    font-size: 12px;
    padding: 8px 10px;
  }
}
/* Responsive */
@media (max-width: 960px){
  .dcq-form{ grid-template-columns: 1fr 1fr; }
  .dcq-btn{ grid-column: 1 / -1; }
  .dcq-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile spacing fix */
@media (max-width: 768px){
  .dcq-wrap{
    margin: 0 8px;     /* space from screen edges */
    padding: 16px;      /* internal breathing */
	border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }

  .dcq-form{
    gap: 10px;
  }

  .dcq-input{
    width: 100%;
  }

  .dcq-btn{
    width: 100%;
  }
}
@media (max-width: 520px){
  .dcq-form{ grid-template-columns: 1fr; }
  .dcq-cards{ grid-template-columns: 1fr; }
	.dcq-price{ font-size: 1.6rem; }
}

.dcq-address-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 15px;
  box-sizing: border-box;
}

.dcq-address-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dcq-address-box h3 {
  margin-bottom: 10px;
}

.dcq-address-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.dcq-address-box input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
}

.dcq-address-box #dcq_continue {
  width: 100%;
  padding: 12px;
  background: #e60023;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* 📱 Mobile tweaks */
@media (max-width: 480px) {
  .dcq-address-box {
    padding: 15px;
    border-radius: 10px;
  }

  .dcq-address-box input {
    font-size: 16px;
  }
}

.dcq-address-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dcq-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}
.dcq-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #222;
}
/* Smaller and cleaner close button */
.dcq-close {
  background: transparent; /* Matches your brand red */
  color: black;
  border: none;
  border-radius: 12px;
  width: 1%;
  height: 1%;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}
.dcq-close:hover {
  background: #c20510;
  transform: scale(1.05);
}

.dcq-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.3);
}

#dcq_continue:hover {
  background: #c20510;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .dcq-address-box {
    padding: 18px;
    max-width: 100%;
    border-radius: 10px;
  }

  .dcq-modal-header h3 {
    font-size: 1.3rem;
  }

  .dcq-address-box input {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}