/* ========================================
   CORUM-STYLE — Contact Form 7
   Design inspiré du formulaire "Register a Watch"
   ======================================== */

/* --- Wrapper global --- */
.wpcf7.js{
	background: white;
	padding: 30px;
	border-radius: 30px;
	margin: 0 auto;
}
body .wpcf7 .em-contact-wrapper input[type="text"], body .wpcf7 .em-contact-wrapper input[type="email"], body .wpcf7 .em-contact-wrapper input[type="tel"], body .wpcf7 .em-contact-wrapper select, .wpcf7 .em-contact-wrapper textarea {
	color: black;
	font-weight: normal;
	opacity: 1;
}
.em-contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Colonne gauche / droite --- */
.em-contact-1 {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- Label wrapper --- */
.Contact-label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a3a3a;
  cursor: pointer;
}

/* ========================================
   INPUTS & TEXTAREA
   ======================================== */

/* Cible tous les champs texte/email CF7 */
.wpcf7 .em-contact-wrapper input[type="text"],
.wpcf7 .em-contact-wrapper input[type="email"],
.wpcf7 .em-contact-wrapper input[type="tel"],
.wpcf7 .em-contact-wrapper select,
.wpcf7 .em-contact-wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #b0b0b0;
  border-radius: 0;
  padding: 10px 0;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.3s ease;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Focus : ligne noire */
.wpcf7 .em-contact-wrapper input[type="text"]:focus,
.wpcf7 .em-contact-wrapper input[type="email"]:focus,
.wpcf7 .em-contact-wrapper input[type="tel"]:focus,
.wpcf7 .em-contact-wrapper select:focus,
.wpcf7 .em-contact-wrapper textarea:focus {
  border-bottom-color: #1a1a1a;
}

/* Placeholder */
.wpcf7 .em-contact-wrapper input::placeholder,
.wpcf7 .em-contact-wrapper textarea::placeholder {
  color: #9a9a9a;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ========================================
   SELECT — Style personnalisé
   ======================================== */

.wpcf7 .em-contact-wrapper .wpcf7-select,
.wpcf7 .em-contact-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233a3a3a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
  color: #9a9a9a; /* Couleur "Country*" label */
}

/* Quand une option est sélectionnée */
.wpcf7 .em-contact-wrapper select:not(:invalid) {
  color: #1a1a1a;
}

/* ========================================
   TEXTAREA
   ======================================== */

.wpcf7 .em-contact-wrapper textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* ========================================
   VALIDATION ERRORS CF7
   ======================================== */

.wpcf7 .em-contact-wrapper .wpcf7-not-valid-tip {
  font-size: 10px;
  color: #c0392b;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.wpcf7 .em-contact-wrapper input.wpcf7-not-valid,
.wpcf7 .em-contact-wrapper select.wpcf7-not-valid,
.wpcf7 .em-contact-wrapper textarea.wpcf7-not-valid {
  border-bottom-color: #c0392b;
}

/* ========================================
   BOUTON SUBMIT — Style "box_anim"
   ======================================== */

.Contact-submit {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

.wpcf7 .Contact-submit .box_anim,
.wpcf7 .Contact-submit input[type="submit"] {
  position: relative;
  display: inline-block;
  padding: 14px 48px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover : inversion couleur */
.wpcf7 .Contact-submit .box_anim:hover,
.wpcf7 .Contact-submit input[type="submit"]:hover {
  background-color: transparent;
  color: #1a1a1a;
}

/* Animation "wipe" au hover */
.wpcf7 .Contact-submit .box_anim::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.wpcf7 .Contact-submit .box_anim:hover::before {
  left: 0;
}

.wpcf7 .Contact-submit .box_anim span,
.wpcf7 .Contact-submit .box_anim {
  position: relative;
  z-index: 1;
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */

@media (max-width: 640px) {
  .em-contact-wrapper {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }

  .em-contact-1 {
    gap: 22px;
  }

  .Contact-submit {
    justify-content: center;
  }

  .wpcf7 .Contact-submit .box_anim,
  .wpcf7 .Contact-submit input[type="submit"] {
    width: 100%;
    text-align: center;
  }
}
.wpcf7 .em-contact-wrapper select:not(:invalid) {
	color: #9a9a9a;
}
/* ========================================
   MESSAGE DE CONFIRMATION CF7
   ======================================== */

.wpcf7-response-output {
  margin-top: 24px !important;
  padding: 12px 16px !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  border: 1px solid #b0b0b0 !important;
  border-radius: 0 !important;
  color:#8f610e;
}

/* Succès */
.wpcf7-mail-sent-ok {
  border-color: #27ae60 !important;
  color: #27ae60 !important;
  background: transparent !important;
}

/* Erreur */
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
  border-color: #c0392b !important;
  color: #c0392b !important;
  background: transparent !important;
}


/* Custom CSS*/

.wpcf7 .Contact-submit .box_anim, .wpcf7 .Contact-submit input[type="submit"] {
  font-size: 12px;
  font-weight: 200;
  background: white;
  border: 1px solid #80808038;
  color: #454849;
}

.wpcf7-form-control-wrap[data-name="Country1"] {
	top: 5px;
}

.Contact-submit {
	margin-top: 40px;
	display: flex;
	justify-content: end;
}

.Contact-submit p {
	display: flex;
	flex-direction: column;
}

.wpcf7 .Contact-submit .box_anim, .wpcf7 .Contact-submit input[type="submit"] {
	border-radius: 3px;
}

@media (min-width: 768px) {
  .Contact-submit {
    position: absolute;
    bottom: 11px;
  }
  .wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;
    position: absolute;
    background: white;
    top: -76px;
    text-align: center;
  }

}