/* Wrapper */
@media (max-width: 600px) {
	.taa-adhesion-form-wrapper { width:100% !important; padding:3px !important;max-width: 100% !important; margin:0 !important;}
	fieldset { width:100% !important;}
}
.taa-adhesion-form-wrapper {
  max-width: 85%;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
}

/* Field titles */
.taa-adhesion-form-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
  color: #1a1a1a;
}

/* Inputs and Textareas */
.taa-adhesion-form-wrapper input[type="text"],
.taa-adhesion-form-wrapper input[type="email"],
.taa-adhesion-form-wrapper textarea,
.taa-adhesion-form-wrapper input[type="tel"],
.taa-adhesion-form-wrapper .form-managed-file {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  background-color: #f8f9fb;
  font-size: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Textareas */
.taa-adhesion-form-wrapper textarea {
  min-height: 100px;
  resize: vertical;
}

/* Section titles */
.taa-adhesion-form-wrapper .form-type-fieldset > legend {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
}

/* Checkbox */
.taa-adhesion-form-wrapper input[type="checkbox"] {
  margin-right: 10px;
}
.taa-adhesion-form-wrapper .form-type-checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}

/* Submit button */
.taa-adhesion-form-wrapper input[type="submit"] {
  background-color: #d42128;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.taa-adhesion-form-wrapper input[type="submit"]:hover {
  background-color: #b41c22;
}

/* Responsive: Side-by-side fields */
@media (min-width: 768px) {
  .taa-adhesion-form-wrapper .form-type-textfield,
  .taa-adhesion-form-wrapper .form-type-email {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
  }
  .taa-adhesion-form-wrapper .form-type-textfield:nth-child(even),
  .taa-adhesion-form-wrapper .form-type-email:nth-child(even) {
    margin-right: 0;
  }
}
/* Container global */
.taa-adhesion-form-wrapper .js-form-type-managed-file {
  padding: 20px;
  background-color: #f2f4f8;
  border: 2px dashed #1f3c67;
  border-radius: 10px;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

/* Icône (SVG ou image centrale) */
.taa-adhesion-form-wrapper .js-form-type-managed-file::before {
  content: "";
  display: block;
  background: url('/themes/custom/gowilds/assets/images/upload-icon.svg') no-repeat center;
  background-size: 40px;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px auto;
}

/* Texte "Drop files here or click to upload." */
.taa-adhesion-form-wrapper .js-form-type-managed-file .description,
.taa-adhesion-form-wrapper .js-form-type-managed-file .form-managed-file {
  font-size: 14px;
  color: #1f3c67;
  margin: 0 auto;
  padding: 0;
}

/* Cache le bouton par défaut si nécessaire */
.taa-adhesion-form-wrapper .js-form-type-managed-file .js-form-managed-file {
  border: none;
  background: transparent;
  padding: 40px 0;
  color: transparent;
  text-indent: -9999px;
  cursor: pointer;
}
.taa-adhesion-form-wrapper label {text-transform: initial !important;}
.path-adhesion .bb-inner {padding-top: 0 !important;
    padding-bottom: 30px !important;}
.path-adhesion .header-title { display:none !important;}

/* Zone d'upload */
.upload-zone {
  border: 2px dashed #1f3c67;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background-color: #f8f9fb;
  margin: 15px 0;
  transition: all 0.3s;
}

.upload-zone:hover {
  background-color: #eef2f7;
}

/* Feedback visuel */
.upload-feedback {
  margin-top: 15px;
  display: none;
}

.file-info {
  display: flex;
  align-items: center;
  background: #e8f4fe;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  padding: 12px 15px;
}

.file-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.file-name {
  flex-grow: 1;
  font-weight: 500;
}

.file-status {
  color: #28a745;
  font-weight: 600;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.file-info {
  animation: fadeIn 0.3s ease-out;
}
.form-item-engagement-confirmation .js-form-required { display:inline !important;}

@media (min-width: 768px) {
  .taa-adhesion-form-wrapper .js-form-item-first-name,.taa-adhesion-form-wrapper .js-form-item-last-name,.taa-adhesion-form-wrapper .js-form-item-function,.taa-adhesion-form-wrapper .js-form-item-phone { width:48% !important; display:inline-block !important;}
  .intl-tel-input { min-width:507px !important;}
  .path-adhesion .js-form-type-textfield,.path-adhesion .js-form-type-email,.path-adhesion .js-form-type-textarea,.path-adhesion #ajax-wrapper, .path-adhesion .engagement-section {width: 96.5%;}
  .taa-file-input.form-managed-file {}
}

.taa-adhesion-form .taa-form-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 28px 0;
  padding-bottom: 12px;
  color: #1e3a5f;
}

.taa-adhesion-form-wrapper input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-right: -5px;
  border-radius: 5px;
  appearance: none; /* Pour enlever le style par défaut */
  border: 2px solid #555; /* Ajoute une bordure visible */
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

/* Style quand la checkbox est cochée */
.taa-adhesion-form-wrapper input[type="checkbox"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

/* Pour afficher un "check" personnalisé si besoin */
.taa-adhesion-form-wrapper input[type="checkbox"]::after {
  
}

.taa-adhesion-form-wrapper input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 3px;
  height: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  display: none;
  color:#fff !important;
  font-size:12px;
}

/* Conteneur principal du champ */
.taa-file-input.form-managed-file {
  width: 100%;
  height: 137px;
  background-color: #f4f7fc;
  border: 2px dashed #264e76;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* Masquer le champ file natif */
.taa-file-input.form-managed-file input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

/* Texte personnalisé centré */
.taa-file-input.form-managed-file::after {
  content: "Drop files here or click to upload.";
  color: #264e76;
  font-size: 14px;
  text-align: center;
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  font-family: 'Segoe UI', sans-serif;
  z-index: 1;
}

/* Icône SVG upload centrée */
.taa-file-input.form-managed-file::before {
  content: "";
  background-image: url('data:image/svg+xml;utf8,<svg fill="%231b335f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16l4-5h-3V4h-2v7H8z"/><path d="M20 18H4v-2h16v2z" opacity=".3"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1;
}

/* Masquer le bouton Upload par défaut de Drupal */
.taa-file-input.form-managed-file input[type="submit"] {
  display: none;
}
fieldset legend { padding:0 !important;}
.fieldset-legend {font-size: 24px !important;}





