.device4cash-page {
  --d4c-primary: #e11b22;
  --d4c-primary-dark: #b91318;
  --d4c-soft: #fff5f5;
  --d4c-soft-2: #fff9f2;
  --d4c-text: #1f2937;
  --d4c-muted: #6b7280;
  --d4c-border: rgba(225, 27, 34, 0.14);
  background: linear-gradient(180deg, #fffdfd 0%, #fff8f8 100%);
}

#main.device4cash-page {
  padding-top: 92px;
}

.device4cash-page .section {
  padding: 84px 0;
}

.device4cash-page .section-title span,
.device4cash-page .eyebrow,
.device4cash-page .form-section-title {
  display: inline-block;
  color: var(--d4c-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device4cash-page .section-title span,
.device4cash-page .eyebrow {
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.device4cash-page .form-section-title {
  font-size: 0.72rem;
  margin-bottom: 18px;
}

.device4cash-page .section-title h2,
.device4cash-page h1,
.device4cash-page h2,
.device4cash-page h3 {
  color: var(--d4c-text);
}

.device-hero {
  background:
    radial-gradient(circle at right top, rgba(225, 27, 34, 0.08), transparent 34%),
    linear-gradient(90deg, #fffdfd 0%, #fff9f9 100%);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-copy .lead {
  font-size: 1.14rem;
  color: var(--d4c-muted);
  margin-bottom: 24px;
  max-width: 650px;
}

.hero-points {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points div,
.quote-list li,
.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-points i,
.quote-list i,
.feature-box i {
  color: var(--d4c-primary);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.device4cash-page .btn-primary {
  background: var(--d4c-primary);
  border-color: var(--d4c-primary);
}

.device4cash-page .btn-primary:hover,
.device4cash-page .btn-primary:focus {
  background: var(--d4c-primary-dark);
  border-color: var(--d4c-primary-dark);
}

.device4cash-page .btn-outline-primary {
  color: var(--d4c-primary);
  border-color: var(--d4c-primary);
}

.device4cash-page .btn-outline-primary:hover,
.device4cash-page .btn-outline-primary:focus {
  background: var(--d4c-primary);
  border-color: var(--d4c-primary);
}

.hero-visual-wrap {
  position: relative;
  padding: 24px;
}

.hero-leaflet-img {
  width: 100%;
  display: block;
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  border: 1px solid var(--d4c-border);
  background: #fff;
}

.hero-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--d4c-border);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  padding: 16px 18px;
  min-width: 220px;
}

.hero-float-card.top { top: 2px; right: -10px; }
.hero-float-card.bottom { left: -10px; bottom: 14px; }

.hero-float-card i {
  color: var(--d4c-primary);
  font-size: 1.4rem;
  margin-right: 8px;
}

.hero-float-card strong {
  display: block;
  color: var(--d4c-text);
}

.hero-float-card span {
  color: var(--d4c-muted);
  font-size: 0.95rem;
}

.feature-strip {
  padding-top: 16px;
}

.feature-box,
.step-box,
.quote-form-wrap,
.tips-box,
.terms-box {
  background: #fff;
  border: 1px solid var(--d4c-border);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.feature-box {
  height: 100%;
  padding: 28px;
}

.feature-box i {
  font-size: 2rem;
  display: inline-flex;
  width: 58px;
  height: 58px;
  justify-content: center;
  align-items: center;
  background: var(--d4c-soft);
  border-radius: 16px;
  margin-bottom: 14px;
}

.feature-box p,
.step-box p,
.quote-content p,
.tips-box p,
.field-help,
.form-note,
.terms-box p,
.photo-guidance li {
  color: var(--d4c-muted);
}

.step-box {
  padding: 28px;
  height: 100%;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--d4c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.quote-content h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
  font-weight: 800;
}

.quote-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
  display: grid;
  gap: 12px;
}

.sticky-side {
  position: sticky;
  top: 118px;
}

.tips-box {
  padding: 26px;
}

.quote-form-wrap {
  padding: 34px;
}

.quote-form .form-label {
  font-weight: 700;
  color: var(--d4c-text);
}

.quote-form .form-control,
.quote-form .form-select {
  min-height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  box-shadow: none;
  font-size: 1rem;
}

.quote-form textarea.form-control {
  min-height: 132px;
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
  border-color: rgba(225, 27, 34, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(225, 27, 34, 0.08);
}

.field-help {
  margin-top: 8px;
  font-size: 0.92rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.photo-preview-item {
  border: 1px solid var(--d4c-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.photo-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.photo-preview-item span {
  display: block;
  padding: 10px;
  font-size: 0.82rem;
  color: var(--d4c-muted);
  word-break: break-word;
}

.photo-remove-btn {
  width: 100%;
  border: 0;
  background: var(--d4c-primary);
  color: #fff;
  padding: 9px 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.photo-remove-btn:hover,
.photo-remove-btn:focus {
  background: var(--d4c-primary-dark);
  color: #fff;
}

.terms-box {
  padding: 28px 30px;
  background: linear-gradient(180deg, #fff, #fff9f9);
}

.terms-list {
  padding-left: 18px;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.agreement-wrap {
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
  padding-top: 22px;
  display: grid;
  gap: 12px;
}

.agreement-check {
  padding: 16px 18px;
  border: 1px solid var(--d4c-border);
  border-radius: 16px;
  background: #fff;
}

.agreement-check .form-check-input {
  margin-top: 0.2rem;
}

.agreement-check .form-check-label {
  color: var(--d4c-text);
  font-weight: 600;
}

.extra-field.d-none {
  display: none !important;
}

.is-invalid-hard {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.08) !important;
}

@media (max-width: 991.98px) {
  .sticky-side {
    position: static;
  }

  .hero-visual-wrap {
    padding: 0;
  }

  .hero-float-card {
    position: static;
    margin-top: 14px;
  }
}

@media (max-width: 767px) {
  #main.device4cash-page {
    padding-top: 82px;
  }

  .device4cash-page .section {
    padding: 64px 0;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .quote-form-wrap {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}


.device4cash-page .btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 700;
}

.device4cash-page .btn-whatsapp:hover,
.device4cash-page .btn-whatsapp:focus {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
}

.quick-summary-section {
  padding-top: 18px;
}

.quick-summary-card {
  background: #fff;
  border: 1px solid var(--d4c-border);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  padding: 34px;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
  align-items: center;
}

.quick-summary-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.quick-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-summary-grid div {
  background: var(--d4c-soft);
  border: 1px solid var(--d4c-border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
}

.quick-summary-grid i {
  color: var(--d4c-primary);
  font-size: 1.5rem;
}

.quick-summary-grid strong {
  color: var(--d4c-text);
  font-size: 1rem;
}

.quick-summary-grid span {
  color: var(--d4c-muted);
  font-size: 0.94rem;
}

.buyback-box {
  background: linear-gradient(180deg, #fffdf4, #fff8dc);
  border: 1px solid rgba(225, 27, 34, 0.20);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.buyback-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(225, 27, 34, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
}

.buyback-icon i {
  color: var(--d4c-primary);
  font-size: 1.6rem;
}

.buyback-box h3 {
  margin: 0 0 8px;
  font-weight: 800;
}

.buyback-box p {
  color: var(--d4c-muted);
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .quick-summary-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .quick-summary-card,
  .buyback-box {
    padding: 22px;
  }

  .quick-summary-grid {
    grid-template-columns: 1fr;
  }

  .buyback-box {
    flex-direction: column;
  }
}

/* Device4Cash final agreement box */
.agreement-check-main {
  background: #fff9f9;
  border-color: rgba(225, 27, 34, 0.22);
}

.agreement-check-main .form-check-label {
  font-weight: 700;
}


/* Updates for Device4Cash cash / charity / second-life options */
.device4cash-page .feature-box .bi-heart-fill {
  color: #e83e8c;
}

.device4cash-page .feature-box .bi-recycle,
.device4cash-page .quick-summary-grid .bi-recycle {
  color: #198754;
}

.device4cash-page .quote-form select[name="service_option"] {
  font-weight: 700;
}

.device4cash-page .terms-box li {
  line-height: 1.55;
}


/* Charity allocation section */
.charity-panel {
  background: linear-gradient(180deg, #fff, #fff9f9);
  border: 1px solid var(--d4c-border);
  border-radius: 22px;
  padding: 26px;
}

.charity-panel h3,
.charity-panel h4 {
  font-weight: 800;
  color: var(--d4c-text);
}

.charity-panel h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.charity-total-box {
  background: #fff;
  border: 1px solid var(--d4c-border);
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--d4c-text);
  min-width: 250px;
  text-align: center;
}

.charity-total-box.is-perfect {
  color: #157347;
  border-color: rgba(21, 115, 71, 0.25);
  background: #f2fbf6;
}

.charity-total-box.is-warning {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.25);
  background: #fff8ed;
}

.charity-total-box.is-danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.25);
  background: #fff1f1;
}

.charity-row {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 18px;
  padding: 16px;
}

.charity-row .form-check-label {
  font-weight: 700;
  color: var(--d4c-text);
}

.allocation-help {
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  color: var(--d4c-muted);
  font-weight: 700;
}

.allocation-help.is-perfect {
  color: #157347;
  background: #f2fbf6;
  border-color: rgba(21, 115, 71, 0.25);
}

.allocation-help.is-warning {
  color: #b45309;
  background: #fff8ed;
  border-color: rgba(180, 83, 9, 0.25);
}

.allocation-help.is-danger {
  color: #b42318;
  background: #fff1f1;
  border-color: rgba(180, 35, 24, 0.25);
}

@media (max-width: 575px) {
  .charity-panel {
    padding: 20px;
  }
  .charity-total-box {
    width: 100%;
    min-width: 0;
  }
}

/* Multi-step Device4Cash form */
.form-progress {
  margin-bottom: 24px;
}
.progress-line {
  height: 8px;
  background: #f3e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-line span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--d4c-primary);
  transition: width 0.25s ease;
}
.progress-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.progress-step {
  border: 1px solid var(--d4c-border);
  background: #fff;
  color: var(--d4c-muted);
  border-radius: 14px;
  padding: 10px 6px;
  font-weight: 800;
  line-height: 1.1;
}
.progress-step span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 4px;
}
.progress-step.active,
.progress-step.completed {
  background: var(--d4c-primary);
  border-color: var(--d4c-primary);
  color: #fff;
}
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.autosave-notice,
.review-warning {
  border: 1px solid var(--d4c-border);
  background: var(--d4c-soft);
  color: var(--d4c-text);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-weight: 700;
}
.step-actions {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.step-actions .btn {
  min-width: 140px;
}
.clear-autosave-btn {
  margin-top: 14px;
  background: transparent;
  border: 0;
  color: var(--d4c-muted);
  text-decoration: underline;
  padding: 0;
}
.charity-panel {
  border: 1px solid var(--d4c-border);
  border-radius: 22px;
  padding: 24px;
  background: #fff9f9;
}
.charity-total-box,
.allocation-help {
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--d4c-border);
  font-weight: 800;
}
.is-perfect { color: #137333 !important; }
.is-warning { color: #b26a00 !important; }
.is-danger { color: #b00020 !important; }
.review-summary {
  display: grid;
  gap: 16px;
}
.review-block {
  border: 1px solid var(--d4c-border);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}
.review-block h4 {
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--d4c-primary);
}
.review-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(17, 24, 39, 0.10);
}
.review-row:last-child {
  border-bottom: 0;
}
.review-row strong {
  color: var(--d4c-text);
}
.review-row span {
  color: var(--d4c-muted);
  word-break: break-word;
}
.bullet-terms {
  list-style: disc;
  padding-left: 24px;
}
.bullet-terms li {
  display: list-item;
  margin-bottom: 10px;
}
@media (max-width: 767px) {
  .progress-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .step-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Device4Cash layout polish - reviewed against latest form
   ========================================================= */

/* Keep form cards consistent and professional across all steps */
.quote-form .row.gy-3 {
  align-items: flex-start;
}

.quote-form .row.gy-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.quote-form .form-label {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  line-height: 1.35;
  margin-bottom: 10px;
}

.quote-form .form-control,
.quote-form .form-select {
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
}

.quote-form textarea.form-control {
  min-height: 132px;
}

.quote-form .field-help {
  min-height: 44px;
  margin-top: 10px;
  line-height: 1.45;
}

/* Fields with no helper text should still align with fields that have helper text */
.quote-form .col-md-6:not(:has(.field-help))::after {
  content: "";
  display: block;
  min-height: 44px;
}

/* Avoid forced spacing on hidden conditional fields */
.quote-form .extra-field.d-none::after,
.quote-form .d-none::after {
  display: none !important;
  content: none !important;
}

/* Step 5 has longer labels, so give both columns equal label space */
.form-step[data-step="4"] .form-label {
  min-height: 58px;
}

.form-step[data-step="4"] .field-help {
  min-height: 52px;
}

/* Step 4 has condition questions with conditional guidance */
.form-step[data-step="3"] .form-label {
  min-height: 52px;
}

/* Checkbox groups for accessories and confirmations */
.accessory-panel,
.condition-confirm-panel,
.photo-guidance-box,
.id-confirm-panel,
.payment-choice-panel {
  background: #fff;
  border: 1px solid var(--d4c-border);
  border-radius: 18px;
  padding: 18px;
}

.accessory-grid,
.confirm-grid,
.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.accessory-grid .form-check,
.confirm-grid .form-check,
.payment-choice-grid .form-check {
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 14px;
  padding: 12px 14px 12px 40px;
  background: #fffdfd;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.accessory-grid .form-check-input,
.confirm-grid .form-check-input,
.payment-choice-grid .form-check-input {
  margin-left: -26px;
  margin-top: 0;
}

.accessory-grid .form-check-label,
.confirm-grid .form-check-label,
.payment-choice-grid .form-check-label {
  font-weight: 700;
  color: var(--d4c-text);
  line-height: 1.35;
}

/* Network lock and IMEI guidance areas */
.network-lock-panel,
.imei-help-box {
  background: var(--d4c-soft);
  border: 1px solid var(--d4c-border);
  border-radius: 18px;
  padding: 18px;
}

.imei-help-box ul,
.photo-guidance-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--d4c-muted);
}

.imei-help-box li,
.photo-guidance-box li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.imei-help-box a {
  color: var(--d4c-primary);
  font-weight: 800;
  text-decoration: underline;
}

/* Make invalid fields obvious but tidy */
.quote-form .form-control.is-invalid-hard,
.quote-form .form-select.is-invalid-hard {
  border-color: #dc3545 !important;
  background-color: #fffafa;
}

/* Stop the red focus ring looking like a validation error */
.quote-form .form-control:focus,
.quote-form .form-select:focus {
  outline: none;
}

/* Better progress buttons on desktop */
.progress-step {
  min-height: 66px;
}

.progress-step span {
  line-height: 1.2;
}

/* Final review readability */
.review-block {
  overflow: hidden;
}

.review-row {
  align-items: start;
}

/* Photo upload area */
#devicePhotos {
  padding-top: 18px;
}

.photo-preview-grid:empty {
  display: none;
}

/* Remove duplicate-looking charity styles by making this the final source of truth */
.charity-panel {
  background: linear-gradient(180deg, #fff, #fff9f9);
  border: 1px solid var(--d4c-border);
  border-radius: 22px;
  padding: 26px;
}

.charity-total-box,
.allocation-help {
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--d4c-border);
  font-weight: 800;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
  .quote-form .form-label,
  .quote-form .field-help,
  .form-step[data-step="4"] .form-label,
  .form-step[data-step="4"] .field-help,
  .form-step[data-step="3"] .form-label {
    min-height: auto;
  }

  .quote-form .col-md-6:not(:has(.field-help))::after {
    display: none;
    content: none;
  }
}

@media (max-width: 767px) {
  .quote-form-wrap {
    padding: 22px 18px;
  }

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-step {
    min-height: 58px;
  }

  .accessory-grid,
  .confirm-grid,
  .payment-choice-grid {
    grid-template-columns: 1fr;
  }

  .quote-form .form-control,
  .quote-form .form-select {
    min-height: 58px;
  }
}

@media (max-width: 420px) {
  .progress-steps {
    grid-template-columns: 1fr;
  }
}

/* final submit/loading fix */
#submitStepBtn.is-submitting,
#submitStepBtn:disabled {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

/* Multi-device Device4Cash upgrade */
.device-list-panel,.device-entry-panel{background:#fff;border:1px solid var(--d4c-border);border-radius:22px;padding:22px;box-shadow:0 10px 30px rgba(17,24,39,.05)}
.device-card{border:1px solid rgba(17,24,39,.12);border-radius:18px;padding:18px;background:#fffdfd;margin-bottom:14px}
.device-card h4{font-weight:800;margin-bottom:8px;color:var(--d4c-primary)}
.device-card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.device-count-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--d4c-border);background:var(--d4c-soft);border-radius:999px;padding:8px 14px;font-weight:800;color:var(--d4c-text)}
.multi-device-note{border:1px solid var(--d4c-border);background:var(--d4c-soft);border-radius:16px;padding:14px 16px;color:var(--d4c-text);font-weight:700}.device-photo-name-list{font-size:.9rem;color:var(--d4c-muted);margin-top:8px}.device-editing-banner{display:none;border:1px solid rgba(180,83,9,.25);background:#fff8ed;color:#92400e;border-radius:16px;padding:12px 14px;margin-bottom:18px;font-weight:800}.device-editing-banner.show{display:block}
#submitStepBtn.is-submitting{opacity:.75;cursor:wait;pointer-events:none}.csv-info-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:16px;color:#475569}.csv-info-box strong{color:#111827}
.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:8px}.check-grid .form-check{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px 10px 36px}.field-help strong{font-weight:800;color:#06142b}


/* Added photo list remove button for multi-upload */
.device-photo-name-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--d4c-border);
  border-radius: 12px;
  padding: 9px 10px;
  margin-top: 8px;
}

.photo-remove-mini {
  border: 0;
  background: var(--d4c-primary);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.photo-remove-mini:hover,
.photo-remove-mini:focus {
  background: var(--d4c-primary-dark);
}


/* Photo selection clarity */
.photo-selected-status {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--d4c-text);
}
#dPhotoNames div {
  align-items: center;
}
#dPhotos {
  cursor: pointer;
}

/* UK validation guidance */
.quote-form input:invalid.is-invalid-hard { border-color: #dc3545 !important; }
