
.afd-infos-box {
    margin-bottom: 40px;
    padding: 30px 10px 30px 20px;
    box-shadow: 6px 6px 18px 0 rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background: #fff;
}

.afd-infos-box h2, .afd-infos-boxh2 {
  color :#474747;
  font-size: 27px;
  font-weight: bold;
  line-height: 1em;
  margin-top : 10px;
  padding-top :10px;
  padding-bottom: 20px;
}

.afd-infos-label-title {
    color: #ff9999 ;
    font-size: 0.85em;
    margin-bottom: 5px;
    font-weight: normal;
}

.afd-infos-civilite-buttons {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.afd-infos-civilite-btn {
    padding: 5px 35px;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    color: #666666;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.afd-infos-civilite-btn input[type="radio"] {
    display: none;
}

.afd-infos-civilite-btn.active {
    background-color: #ff9999;
}

.afd-infos-box-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom : 25px;
    text-align: center;
}

.afd-infos-box-btn {
    padding: 5px 35px;
    border: 1px solid #d6d6d6;    
    border-radius: 5px;
    min-width: 300px;
    background-color: #fff;
    color: inherit;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.afd-infos-box-btn input[type="radio"] {
    display: none;
}

.afd-infos-field-grid-1col {
    grid-column: 1 / -1;
}

.afd-infos-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.afd-infos-field-grid label {
    display: block;
    font-size: 0.85em;
    color: #ff9999; 
    font-weight: normal;
}

.afd-infos-field-grid input,
.afd-infos-field-grid select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #d6d6d6;
    padding: 6px 2px;
    background: none;
    font-size: 14px;
}

.afd-infos-submit {
    background: #d91818;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: normal;
    cursor: pointer;
    margin: 30px 0;
}

.afd-infos-submit:hover {
    background: #000;
}


.afd-infos-submit-s {
    background: #d91818;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
}

.afdm-box-card {
  position: relative;
  flex: 0 0 320px;
  height: 110px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.afdm-box-card.select {
  border: 1px solid #d91818;
}

.afdm-box-card-img {
  flex: 0 0 54px;
  width: 54px;
  height: 72px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/*PICTO DES THEMES*/
/* Thème Grossesse */
.afdm-box-card-grossesse .afdm-box-card-img {
  background-image: url('/wp-content/plugins/Afdm-Createbook/assets/picto-boxinactive-grosesse.png');
}

.afdm-box-card-grossesse.is-active-box .afdm-box-card-img {
  background-image: url('/wp-content/plugins/Afdm-Createbook/assets/picto-boxactive-grosesse.png');
}

/* Theme Premiers sourires*/
.afdm-box-card-bebe .afdm-box-card-img {
  background-image: url('/wp-content/plugins/Afdm-Createbook/assets/picto-boxinactive-bebe.png');
}

.afdm-box-card-bebe.is-active-box .afdm-box-card-img {
  background-image: url('/wp-content/plugins/Afdm-Createbook/assets/picto-boxactive-bebe.png');
}

.afdm-box-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.afdm-box-card-badge {
  min-height: 22px;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.afdm-box-card-badge.is-active {
  width: fit-content;
  background: #d91818;
  color: #fff;
  border-radius: 20px;
  padding: 2px 12px;
}

.afdm-box-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 700;
  color:#000;
}

.afdm-box-card:not(.active) strong {
  color: #777;
}

.afdm-box-card small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.2;
}

.afdm-box-card:not(.active) small {
  color: #777;
}

.afd-infos-al h3 {
  color: #333;
  padding-bottom: 10px;
  line-height: 1em;
  font-weight: 500;
  font-size: 16px !important;
  padding-top: 20px !important; 
  font-weight: 600 !important;
}

.afd-infos-p {
  font-size: 13px !important;
  margin-bottom: 30px;
}

.afdm-box-slider-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0 22px;
}

.afdm-box-selector {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px 0 10px;
    scrollbar-width: none;
}

.afdm-box-selector::-webkit-scrollbar {
    display: none;
}

.afdm-box-arrow {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #ffe1e1;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.afdm-box-arrow i {
    font-size: 20px;
    line-height: 1;
}

.afdm-box-arrow:hover {
    background: #ffcccc;
}

.afdm-box-card-add {
    border: 2px dashed #d6d6d6 !important;
    background: #fff;
    justify-content: center;
    text-align: center;
}

.afdm-box-card-add:hover {
    border-color: #ff9999 !important;
}

.afdm-box-card-add-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 15px;
    line-height: 1.35;
}

.afdm-box-card-add-icon {
    width: 30px;
    height: 30px;
    border: 2px solid #ff9999;
    border-radius: 50%;
    color: #ff9999;
    font-size: 26px;
    line-height: 25px;
    margin-bottom: 10px;
}

.afd-infos-profil-form .afd-infos-field-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.afd-infos-profil-form .afd-infos-field-grid input,
.afd-infos-profil-form .afd-infos-field-grid select {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}

.afd-infos-box .afd-infos-field-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.afd-infos-box .afd-infos-field-grid input,
.afd-infos-box .afd-infos-field-grid select {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}

.afd-infos-fields-3col {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.afd-infos-fields-3col > div {
    flex: 1;
}

.afd-infos-fields-3col label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85em;
    color: #ff9999;
    font-weight: normal;
}

.afd-infos-fields-3col input {
    width: 100% !important;
    box-sizing: border-box;
}

@media (max-width:768px)
{
    .afd-infos-box-buttons {
        flex-direction:column;
        gap:10px;
    }

    .afd-infos-civilite-btn {
        width:90%;
        box-sizing:border-box;
        padding:10px;
    }

    .afdm-box-slider-wrap {
        gap: 0;
    }

    .afdm-box-arrow {
        display: none;
    }

    .afdm-box-card {
        flex: 0 0 92%;
        height: 115px;
    }

    .afdm-box-selector {
        overflow-x: auto;
        padding-left: 0;
        padding-right: 0;
    }
}