/* JUNKPRO free quote submission UI */

.quote-form-card {
  width: 100%;
}

.quote-submit {
  width: 100%;
  gap: 10px;
}

.quote-submit:disabled {
  opacity: .8;
  cursor: wait;
}

.quote-button-spinner {
  width: 19px;
  height: 19px;
  border: 3px solid rgba(0, 0, 0, .25);
  border-top-color: #111;
  border-radius: 50%;
  display: inline-block;
  animation: quoteSpin .7s linear infinite;
}

@keyframes quoteSpin {
  to { transform: rotate(360deg); }
}

.quote-error {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  padding: 12px 14px;
}

.quote-success {
  background: #fff;
  color: #111;
  padding: clamp(28px, 6vw, 48px);
  border-radius: var(--radius, 22px);
  text-align: center;
  box-shadow: var(--shadow, 0 16px 45px rgba(0,0,0,.14));
  border-top: 8px solid var(--green, #79e600);
}

.quote-success[hidden] {
  display: none !important;
}

.quote-success-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green, #79e600);
  color: #111;
  font-size: 2.7rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(121, 230, 0, .28);
}

.quote-success-label {
  margin: 0 0 8px;
  color: var(--green-dark, #4b9800);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: .9rem;
}

.quote-success h2 {
  margin: 0 0 12px;
  color: #111;
  font-family: 'Bowlby One SC', Impact, sans-serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.quote-success > p:not(.quote-success-label) {
  color: #333;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.quote-success-note {
  margin-top: 12px;
  margin-bottom: 26px;
  color: #666 !important;
}

@media (max-width: 600px) {
  .quote-success {
    padding: 30px 20px;
  }

  .quote-success-icon {
    width: 66px;
    height: 66px;
    font-size: 2.25rem;
  }
}


/* Quote phone + image upload */
.field-help {
  display: block;
  margin-top: 2px;
  color: #6b6b6b;
  font-size: .78rem;
  font-weight: 600;
}

.optional-text {
  color: #777;
  font-size: .85em;
  font-weight: 600;
}

.quote-photo-field input[type="file"] {
  padding: 11px;
  background: #fafafa;
  cursor: pointer;
}

.quote-image-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.quote-image-preview:empty {
  display: none;
}

.quote-image-preview-item {
  overflow: hidden;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #f7f7f7;
  aspect-ratio: 1;
}

.quote-image-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .quote-image-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Success message replaces the submit button area */
.quote-success-inline {
  margin-top: 0;
  padding: 22px 18px;
  border-radius: 14px;
  text-align: center;
  border-top-width: 5px;
}

.quote-success-inline .quote-success-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  font-size: 1.9rem;
}

.quote-success-inline p {
  margin: 0;
  color: #111;
  font-size: 1.05rem;
  font-weight: 900;
}


/* Full confirmation replaces the entire quote input form after success */
.quote-success-full {
  width: 100%;
  padding: clamp(34px, 6vw, 56px) 24px;
  text-align: center;
  border-top: 8px solid var(--green, #79e600);
}

.quote-success-full .quote-success-message {
  margin: 0 auto 24px;
  max-width: 520px;
  color: #111;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  line-height: 1.4;
}

.quote-home-btn {
  display: inline-flex;
  justify-content: center;
  min-width: 190px;
}

@media (max-width: 600px) {
  .quote-success-full {
    padding: 34px 20px;
  }

  .quote-home-btn {
    width: 100%;
  }
}


/* === QUOTE REQUEST CONFIRMATION DETAILS / SAVE / PRINT === */
.quote-confirmation-summary {
  width: min(100%, 560px);
  margin: 24px auto;
  padding: 18px 22px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.quote-confirmation-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}

.quote-confirmation-summary > div:last-child {
  border-bottom: 0;
}

.quote-confirmation-summary span {
  color: #777;
  flex: 0 0 42%;
}

.quote-confirmation-summary strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.quote-confirmation-message-row strong {
  max-width: 58%;
  white-space: pre-wrap;
}

.quote-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.quote-confirmation-actions .btn {
  min-width: 180px;
}

@media (max-width: 600px) {
  .quote-confirmation-summary {
    padding: 14px 16px;
  }

  .quote-confirmation-summary > div {
    flex-direction: column;
    gap: 4px;
  }

  .quote-confirmation-summary span,
  .quote-confirmation-message-row strong {
    max-width: 100%;
    flex-basis: auto;
  }

  .quote-confirmation-summary strong {
    text-align: left;
  }

  .quote-confirmation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quote-confirmation-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .site-header,
  .footer,
  .quote-copy,
  .quote-confirmation-actions {
    display: none !important;
  }

  main,
  .quote-section,
  .quote-page,
  .quote-form-card {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #111 !important;
  }

  .quote-success-full {
    display: block !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 20px auto !important;
    padding: 30px !important;
    box-shadow: none !important;
    border: 2px solid #111 !important;
    border-top: 8px solid var(--green, #79e600) !important;
    break-inside: avoid;
  }
}
