/**
* Theme Name: Teapoz Child
* Description: This is a child theme of Teapoz, generated by Merlin WP.
* Author: <a href="https://wpopal.com/">Opalthemes</a>
* Template: teapoz
* Version: 1.2.3
*/

.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-container a{
	background: #194A33;
    color: white;
}
/* ============================================
   CONTANNA — Formulaire B2B (Contact Form 7)
   ============================================ */

.cf7-b2b-form {
  display: flex;
  flex-direction: column;
  gap: 20px !important;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

/* --- Grille 2 colonnes --- */
.cf7-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cf7-row {
  margin-bottom: 30px;
}

/* --- Labels --- */
.cf7-b2b-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d4a22;
  letter-spacing: 0.02em;
}

/* --- Inputs, selects, textarea --- */
.cf7-b2b-form input[type="text"],
.cf7-b2b-form input[type="email"],
.cf7-b2b-form input[type="tel"],
.cf7-b2b-form select,
.cf7-b2b-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #f7f9f4;
  border: 1.5px solid #d4e4c5;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.cf7-b2b-form input::placeholder,
.cf7-b2b-form textarea::placeholder {
  color: #aab8a0;
  font-weight: 400;
}

/* Focus state */
.cf7-b2b-form input[type="text"]:focus,
.cf7-b2b-form input[type="email"]:focus,
.cf7-b2b-form input[type="tel"]:focus,
.cf7-b2b-form select:focus,
.cf7-b2b-form textarea:focus {
  border-color: #5a9e3a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(90, 158, 58, 0.12);
}

/* Erreur CF7 */
.cf7-b2b-form .wpcf7-not-valid {
  border-color: #e05252 !important;
  box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.1) !important;
}

.cf7-b2b-form .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #e05252;
  margin-top: 4px;
}

/* --- Select --- */
.cf7-b2b-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a9e3a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* --- Textarea --- */
.cf7-b2b-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* --- Bouton submit --- */
.cf7-b2b-form .wpcf7-submit {
  width: 100%;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #5a9e3a 0%, #3d7a25 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 20px rgba(90, 158, 58, 0.35);
}

.cf7-b2b-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(90, 158, 58, 0.45);
}

.cf7-b2b-form .wpcf7-submit:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* Bouton pendant l'envoi */
.cf7-b2b-form .wpcf7-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* --- Message de confirmation --- */
.wpcf7-response-output {
  margin-top: 12px !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  border: none !important;
}

/* Succès */
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #edf7e8;
  color: #2d6e18;
  box-shadow: 0 0 0 1.5px #a8d98b;
}

/* Erreur */
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
  background: #fdf0f0;
  color: #b83232;
  box-shadow: 0 0 0 1.5px #f0b0b0;
}

/* --- Notice Akismet --- */
.cf7-akismet-notice {
  font-size: 0.78rem;
  color: #9aab90;
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}

.cf7-akismet-notice a {
  color: #5a9e3a;
  text-decoration: underline;
}

/* --- Responsive mobile --- */
@media (max-width: 640px) {
  .cf7-b2b-form {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .cf7-two-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* ============================================
   CONTANNA — Formulaire de Contact (.ct-form)
   ============================================ */

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 16px !important;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

/* --- Inputs & Textarea --- */
.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #f7f9f4;
  border: 1.5px solid #d4e4c5;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.ct-form input::placeholder,
.ct-form textarea::placeholder {
  color: #aab8a0;
  font-weight: 400;
}

/* Focus */
.ct-form input[type="text"]:focus,
.ct-form input[type="email"]:focus,
.ct-form input[type="tel"]:focus,
.ct-form textarea:focus {
  border-color: #5a9e3a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(90, 158, 58, 0.12);
}

/* Erreur CF7 */
.ct-form .wpcf7-not-valid {
  border-color: #e05252 !important;
  box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.1) !important;
}

.ct-form .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #e05252;
  margin-top: 4px;
  display: block;
}

/* --- Textarea --- */
.ct-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* --- Bouton submit --- */
.ct-form .wpcf7-button button[type="submit"],
.ct-form button[type="submit"] {
  width: 100%;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #5a9e3a 0%, #3d7a25 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(90, 158, 58, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ct-form .wpcf7-button button[type="submit"]:hover,
.ct-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(90, 158, 58, 0.45);
}

.ct-form .wpcf7-button button[type="submit"]:active,
.ct-form button[type="submit"]:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* --- Messages CF7 --- */
.ct-form + .wpcf7-response-output,
.wpcf7-form .wpcf7-response-output {
  margin-top: 12px !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background: #edf7e8 !important;
  color: #2d6e18 !important;
  box-shadow: 0 0 0 1.5px #a8d98b !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #fdf0f0 !important;
  color: #b83232 !important;
  box-shadow: 0 0 0 1.5px #f0b0b0 !important;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .ct-form {
    padding: 24px 16px;
    border-radius: 12px;
  }
}
