/*
Theme Name: Blocksy Child
Description: Child theme for Blocksy. You can now safely customize it and not risk losing your customizations.
Author: Equinoxal
Author URI: equinoxal.fr
Template: blocksy
Version: 1.0
*/
.cf7-step {
  text-align: center;
}
.mdc-linear-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}
.mdc-linear-progress__indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 6px;
  transition: background 0.3s ease;
}
.mdc-linear-progress__indicator--active {
  background: #bed800;
}
.cf7-subtitle {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  color: #1f2937;
}
.wpcf7 input[type="radio"], .wpcf7 input[type="checkbox"] {
  display: none !important;
}
.wpcf7 label {
  display: inline-block;
  padding: 12px 24px;
  margin: 6px 10px 6px 0;
  border: 2px solid #c1db36;
  border-radius: 16px;
  background-color: #fff;
  color: #1f2937;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
  text-align: center;
  user-select: none;
}
.wpcf7 label:has(input:checked) {
  background-color: #c1db36;
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 0 1px #c1db36;
}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
  width: 100%;
  padding: 23px 15px;
  margin-bottom: 15px;
  border: 2px solid #c1db36;
  border-radius: 12px;
  background-color: #fff;
  font-size: 16px;
  color: #1f2937;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wpcf7 input[type="text"]:not(:focus):placeholder-shown, .wpcf7 input[type="email"]:not(:focus):placeholder-shown, .wpcf7 input[type="tel"]:not(:focus):placeholder-shown, .wpcf7 textarea:not(:focus):placeholder-shown, .wpcf7 select:not(:focus):placeholder-shown {
  border-color: #ccc;
}
.wpcf7 input[type="text"]:not(:placeholder-shown):valid, .wpcf7 input[type="email"]:not(:placeholder-shown):valid, .wpcf7 input[type="tel"]:not(:placeholder-shown):valid, .wpcf7 textarea:not(:placeholder-shown):valid, .wpcf7 select:not(:placeholder-shown):valid {
  border-color: #bed800;
}
.wpcf7 input[type="text"]::placeholder, .wpcf7 input[type="email"]::placeholder, .wpcf7 input[type="tel"]::placeholder, .wpcf7 textarea::placeholder, .wpcf7 select::placeholder {
  color: #999;
  font-style: italic;
}
.wpcf7 input[type="text"]:focus, .wpcf7 input[type="email"]:focus, .wpcf7 input[type="tel"]:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
  border-color: #0084ea;
  outline: none;
  box-shadow: 0 0 4px #0085ea81;
}
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 14px;
  font-style: italic;
  margin-top: -15px !important;
  margin-bottom: 10px;
  display: block;
}
.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
  border-color: #e74c3c !important;
  background-color: #fff5f5;
}
.wpcf7-acceptance {
  display: flex !important;
  align-items: center;
  margin: 20px 0;
  font-size: 14px;
  color: #888;
  gap: 10px;
}
.wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #c1db36;
  cursor: pointer;
}
.wpcf7-form-control-wrap[data-name="accept-privacy"] label {
  border: none !important;
  padding: 0 !important;
  background: none !important;
  display: inline-flex;
  gap: 10px;
}
.wpcf7-form-control-wrap[data-name="accept-privacy"] label:has(input:checked) {
  box-shadow: none;
}
.wpcf7-form-control-wrap[data-name="accept-privacy"] input {
  display: block !important;
  margin: auto;
}
.wpcf7-form-control-wrap[data-name="accept-privacy"] p {
  margin: 0;
  padding: 0;
}
.nav-forms p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.nav-forms button.prev-step {
  background: none;
  border: none;
  color: #1d1d1d;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  padding: 12px 24px;
  transition: color 0.3s ease;
}
.nav-forms button.prev-step:hover {
  color: #22B573;
}
.nav-forms button.next-step {
  padding: 12px 32px;
  font-size: 18px;
  border-radius: 40px;
  border: 2px solid #c1db36;
  background-color: transparent;
  color: #c1db36;
  cursor: not-allowed;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.nav-forms button.next-step.active {
  background-color: #bed800;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}
.nav-forms button.next-step.active:hover {
  background-color: #22B573;
  border-color: #22B573;
}
.form-row.double {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.form-row.double div {
  flex: 1;
  min-width: 200px;
}
.form-row.double div::after {
  content: none !important;
  display: none !important;
}
@media screen and (max-width: 480px) {
  .wpcf7 label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }
  .nav-forms {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-forms button {
    width: 100%;
    text-align: center;
  }
}
.floating-label-group {
  position: relative;
  margin-bottom: 25px;
}
.floating-label-group label {
  position: absolute;
  left: 15px;
  top: -15px;
  color: #999;
  font-size: 11px !important;
  transition: all 0.2s ease-out;
  border: none;
  padding: 0 5px;
  pointer-events: none;
}
.floating-label-group input, .floating-label-group textarea {
  padding: 23px 15px 10px 15px;
}
.floating-label-group input:focus + label, .floating-label-group input:valid + label, .floating-label-group textarea:focus + label, .floating-label-group textarea:valid + label {
  top: -8px;
  left: 12px;
  font-size: 13px;
  color: #007bff;
  background: #fff;
  padding: 0 4px;
}
.floating-label-group input::placeholder, .floating-label-group textarea::placeholder {
  color: transparent;
}
