/* Lyryska Bons Cadeaux V4 Finale — formulaire public */
.lybc3-card,
.lybc3-verify {
  max-width: 820px;
  margin: 48px auto;
  background: #f7f3ee;
  color: #171313;
  border: 1px solid #d8cbc1;
  box-shadow: 0 20px 60px rgba(30, 18, 15, .10);
}

.lybc3-card *,
.lybc3-verify * {
  box-sizing: border-box;
}

.lybc3-top {
  background: #191313;
  color: #fff;
  padding: 54px 52px 48px;
  border-bottom: 5px solid #7d1f2a;
}

.lybc3-kicker {
  color: inherit;
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.lybc3-mark {
  display: inline-block;
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 9px 13px;
  font-size: 10px;
  letter-spacing: 3px;
}

.lybc3-top h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  margin: 22px 0 12px;
}

.lybc3-top p {
  color: #eee7e2;
  margin: 0;
}

.lybc3-form {
  padding: 4px 52px 48px;
  color: #171313;
}

.lybc3-section {
  padding: 34px 0;
  border-bottom: 1px solid #d8cbc1;
}

.lybc3-section-title {
  color: #7d1f2a !important;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
  margin-bottom: 22px;
  text-transform: uppercase;
}

/* Force readable labels even if the WordPress theme globally makes labels white. */
.lybc3-form label,
.lybc3-form .lybc3-custom-label {
  display: block;
  color: #171313 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 19px;
}

.lybc3-form label small {
  color: #6b5d56 !important;
  font-weight: 500;
}

.lybc3-form input[type="text"],
.lybc3-form input[type="email"],
.lybc3-form input[type="number"],
.lybc3-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  color: #171313 !important;
  background: #fff !important;
  border: 1px solid #b9aaa0 !important;
  border-radius: 4px;
  box-shadow: none;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.lybc3-form input::placeholder,
.lybc3-form textarea::placeholder {
  color: #786c66 !important;
  opacity: 1;
}

.lybc3-form input:focus,
.lybc3-form textarea:focus {
  border-color: #7d1f2a !important;
  box-shadow: 0 0 0 2px rgba(125,31,42,.10);
}

.lybc3-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.lybc3-amounts label {
  margin: 0;
  color: #171313 !important;
}

.lybc3-amounts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lybc3-amounts span {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid #9f8e84;
  border-radius: 4px;
  background: #fff;
  color: #171313 !important;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.lybc3-amounts span:hover {
  border-color: #7d1f2a;
  transform: translateY(-1px);
}

/* Selected amount: burgundy + white, clearly visible. */
.lybc3-amounts input:checked + span {
  background: #7d1f2a !important;
  border-color: #7d1f2a !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(125,31,42,.20);
}

.lybc3-custom {
  display: grid !important;
  grid-template-columns: minmax(130px, 1fr) 190px auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 15px;
  background: #eee5de;
  border: 1px solid #d2c2b7;
  border-radius: 4px;
}

.lybc3-custom .lybc3-custom-label {
  margin: 0;
}

.lybc3-custom input {
  margin-top: 0;
}

.lybc3-custom.is-active {
  border-color: #7d1f2a;
  background: #f0e1e3;
}

.lybc3-submit {
  width: 100%;
  margin-top: 32px;
  padding: 18px 20px;
  border: 0;
  border-radius: 4px;
  background: #191313 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.lybc3-submit:hover {
  background: #7d1f2a !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.lybc3-submit span {
  float: right;
  color: #fff !important;
  font-size: 20px;
}

.lybc3-error {
  max-width: 820px;
  margin: 20px auto;
  padding: 15px 18px;
  color: #6b1622 !important;
  border-left: 4px solid #7d1f2a;
  background: #f7e8ea;
}

.lybc3-success,
.lybc3-verify {
  padding: 48px 52px;
}

.lybc3-success h1,
.lybc3-verify h1 {
  color: #171313;
  font-size: 42px;
  font-weight: 400;
}

.lybc3-verify form {
  display: flex;
  margin-top: 25px;
}

.lybc3-verify input {
  flex: 1;
  min-width: 0;
  padding: 14px;
  color: #171313 !important;
  background: #fff !important;
  border: 1px solid #b9aaa0 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.lybc3-verify button {
  padding: 14px 20px;
  background: #191313 !important;
  color: #fff !important;
  border: 0;
}

.lybc3-verdict {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #aaa;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #171313;
}

.lybc3-verdict.ok { background: #eef3ed; }
.lybc3-verdict.ko { background: #fff0f0; }

@media (max-width: 720px) {
  .lybc3-top,
  .lybc3-form,
  .lybc3-success,
  .lybc3-verify {
    padding-left: 24px;
    padding-right: 24px;
  }
  .lybc3-amounts { grid-template-columns: repeat(2, 1fr); }
  .lybc3-custom { grid-template-columns: 1fr; }
  .lybc3-custom input { width: 100%; }
  .lybc3-verify form { display: block; }
  .lybc3-verify input,
  .lybc3-verify button { width: 100%; box-sizing: border-box; }
  .lybc3-verify button { margin-top: 8px; }
}
