/*
 * Soda Palette Composer — Demande de devis
 * v1.0.0
 */

.spc-quote {
  box-sizing: border-box;
  width: calc(100% - 32px);
  margin: 34px auto 72px;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1A1A;
}

.spc-quote *,
.spc-quote *::before,
.spc-quote *::after {
  box-sizing: border-box;
}

.spc-quote__header {
  margin: 0 0 24px;
  text-align: center;
}

.spc-quote__header h1 {
  margin: 0 0 8px !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}

.spc-quote__header p {
  margin: 0;
  color: #6F747C;
  font-size: 15px;
}

.spc-quote__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.spc-quote__panel {
  padding: 26px;
  border: 1px solid #E4E7EB;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 48, 84, .045);
}

.spc-quote__form-panel h2,
.spc-quote__recap-head h2 {
  margin: 0 0 18px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

.spc-quote__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.spc-quote__row .spc-quote__field {
  margin-bottom: 0;
}

.spc-quote__field {
  margin: 0 0 15px;
}

.spc-quote__field label {
  display: block;
  margin: 0 0 6px;
  color: #34445b;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.spc-quote__field label .required {
  color: #C8102E;
  text-decoration: none;
}

.spc-quote__field input,
.spc-quote__field select,
.spc-quote__field textarea {
  display: block;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #dce5ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1A1A1A !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  outline: none;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.spc-quote__field input,
.spc-quote__field select {
  height: 42px;
}

.spc-quote__field textarea {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.5;
  resize: vertical;
}

.spc-quote__field input::placeholder,
.spc-quote__field textarea::placeholder {
  color: #9aa4b1;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.spc-quote__field input::-webkit-input-placeholder,
.spc-quote__field textarea::-webkit-input-placeholder {
  color: #9aa4b1;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.spc-quote__field input::-moz-placeholder,
.spc-quote__field textarea::-moz-placeholder {
  color: #9aa4b1;
  font-size: 14px !important;
  font-weight: 400 !important;
  opacity: 1;
}

.spc-quote__field input:-ms-input-placeholder,
.spc-quote__field textarea:-ms-input-placeholder {
  color: #9aa4b1;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.spc-quote__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236F747C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.spc-quote__field input:hover,
.spc-quote__field select:hover,
.spc-quote__field textarea:hover {
  border-color: #cbd8e6 !important;
}

.spc-quote__field input:focus,
.spc-quote__field select:focus,
.spc-quote__field textarea:focus {
  border: 1px solid #C8102E !important;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, .10) !important;
}

.spc-quote__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 4px 0 14px;
  padding: 9px 18px 11px !important;
  border: 0;
  border-radius: 9px;
  background: #C8102E;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1 !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.spc-quote__submit:hover {
  background: #A90C25;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (min-width: 561px) {
  .spc-quote__submit {
    font-size: 17px;
    font-weight: 800;
  }
}

/* ---------------- Récapitulatif ---------------- */

.spc-quote__recap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.spc-quote__recap-kicker {
  color: #C8102E;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spc-quote__recap-items {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.spc-quote__recap-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eef0f2;
}

.spc-quote__recap-item:last-child {
  border-bottom: 0;
}

.spc-quote__recap-item--sub {
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.spc-quote__recap-item--sub .spc-quote__recap-thumb {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.spc-quote__recap-item--sub .spc-quote__recap-info strong {
  font-size: 12px;
  font-weight: 500;
}

.spc-quote__recap-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f8fc;
}

.spc-quote__recap-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spc-quote__recap-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.spc-quote__recap-info strong {
  font-size: 13px;
  font-weight: 700;
}

.spc-quote__recap-info small {
  color: #6F747C;
  font-size: 12px;
}

.spc-quote__recap-total {
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
}

.spc-quote__recap-totals {
  padding-top: 14px;
  border-top: 1px solid #E4E7EB;
}

.spc-quote__recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: #34445b;
}

.spc-quote__recap-row--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #E4E7EB;
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 700;
}

.spc-quote__recap-row--total strong { color: #C8102E; }

.spc-quote__final-text {
  font-size: 14px;
  font-weight: 600;
}

.spc-quote__disclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #f5c6c6;
  border-radius: 10px;
  background: #fdecec;
  color: #7a1414;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------------- Panier vide ---------------- */

.spc-quote--empty {
  max-width: 480px;
  margin: 60px auto;
  padding: 40px 24px;
  text-align: center;
}

.spc-quote--empty p {
  margin: 0 0 20px;
  color: #6F747C;
}

.spc-quote__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9px;
  background: #C8102E;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

/* ---------------- Confirmation ---------------- */

.spc-quote--success {
  max-width: 480px;
  margin: 60px auto;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid #E4E7EB;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 48, 84, .045);
}

.spc-quote__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e9f8ef;
  color: #1E8E3E;
}

.spc-quote__success-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spc-quote--success h1 {
  margin: 0 0 10px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.spc-quote--success p {
  margin: 0 0 22px;
  color: #6F747C;
  font-size: 14px;
  line-height: 1.6;
}

.spc-quote--success .spc-quote__submit {
  display: inline-flex;
  width: auto;
  padding: 10px 26px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .spc-quote__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .spc-quote__final-text {
    font-size: 14px;
    font-weight: 500;
  }

  .spc-quote__header h1 {
    font-size: 26px !important;
    font-weight: 600 !important;
  }

  .spc-quote__panel {
    padding: 20px 16px;
  }

  .spc-quote__row {
    grid-template-columns: 1fr;
  }
}
