
:root {
  --background-color: #E1EF96; /*#E9F4F4;*/
  --main-color: #014E42;
  --secondary-color: #C1DFDFB2;
  --color-accent: #c1dfdf;
  --tertiary-color: #DC865B;

  /* New pact colors */
  --color-pacts-main: #657105; /* tren, comnpoartir coche */
  --color-pacts-comunity: #004e42;
  --color-pact-reciclin: #c25230;
  --color-pact-shower: #95b1f4;
}

button {
  font-family: var(--e-global-typography-text-font-family), sans-serif!important;
}

.eco-pact-form {
  background-color: transparent; /*var(--background-color);*/
}

.center-text {
  text-align: center!important;
  padding: 0 40px;
}

.eco-pact-form .ep-section-title h2 {
  margin: 0;
  font-size: clamp(31.2px, 2.7778vw, 48px);
  line-height: 44px;
  font-weight: 800;
  color: var(--color-pacts-comunity);
}

.eco-pact-form h3 {
  font-weight: 400;
  color: black;
  font-size: 16px !important;
  margin-bottom: 0;
}

.eco-pact-form input[type="text"],
.eco-pact-form input[type="email"],
.eco-pact-form select {
  padding: 0.6em;
  margin-top: 1.2em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.eco-pact-selection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  max-width: max-content;
  margin-top: 60px;
}

.option-container {
  display: flex;
}

/*.option-container:nth-child(2n) {
  justify-content: flex-start;
}
.option-container:nth-child(2n+1) {
  justify-content: flex-end;
}*/

.eco-pact-option {
  cursor: pointer;
  position: relative;
  /*height: 250px;*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.svg-ico-shape {
  position: absolute;
  inset: 0;
  background-color: transparent;
  /*-webkit-mask-image: url('../images/bg.svg');
  mask-image: url('../images/bg.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;*/
  transition: background-color 0.3s;
  z-index: 1;
}

/*.eco-pact-option:hover .svg-ico-shape,*/
/*.eco-pact-option.selected .svg-ico-shape {
  background-color: var( --secondary-color );
}*/

/* Clase temporal para forzar fondo transparente al deseleccionar */
.eco-pact-option.force-transparent .ico-image {
  background-color: transparent !important;
}

.ico-image {
  padding: 5px;
  margin-bottom: 20px;
  transform: rotate(-3deg);
  width: 100%;
  img {
    transform: rotate(3deg);
  }
}

.option-container:nth-child(2) .ico-image {
  transform: rotate(4deg);
  img {
    transform: rotate(-4deg);
  }
}

.option-container:nth-child(3) .ico-image {
  transform: rotate(-2deg);
  img {
    transform: rotate(2deg);
  }
}

.option-container:nth-child(4) .ico-image {
  transform: rotate(3deg);
  img {
    transform: rotate(-3deg);
  }
}

.option-container:nth-child(5) .ico-image {
  transform: rotate(4deg);
  img {
    transform: rotate(-4deg);
  }
}

.option-container:nth-child(6) .ico-image {
  transform: rotate(3deg);
  img {
    transform: rotate(-3deg);
  }
}

.option-container:nth-child(7) .ico-image {
  transform: rotate(-2deg);
  img {
    transform: rotate(2deg);
  }
}

.ico-content {
  position: relative;
  z-index: 2;
  color: var( --main-color );
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.eco-pact-option input[type="checkbox"] {
  display: none;
}

.eco-pact-option img {
  /*max-width: 160px !important;
  max-height: 160px !important;*/
  width: 100%;
  max-height: 160px;
}

.ico-content span {
  max-width: 180px;
}

article.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
  
/*.eco-pact-form button {
    background-color: var( --main-color );
    color: white;
    padding: 0.8em 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
  
.eco-pact-form button:hover {
    background-color: var( --main-color );
}*/

.eco-pact-form button,
.eco-pact-form input[type="submit"],
a.eco-submit-button-sending,
.eco-cancel-option {
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  color: white!important;
  background-color: var( --tertiary-color );
  font-weight: 800;
  font-size: var(--e-global-typography-secondary-font-size);
  line-height: 1em;
  text-align: center;
  padding: 10px 35px 15px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  margin-top: 40px;
  transition: all .3s;
  text-decoration: none!important;
  width: max-content;
}

.eco-pact-form button:hover,
.eco-pact-form input[type="submit"]:hover,
.eco-submit-button-sending:hover,
.eco-cancel-option:hover {
  background-color: var( --main-color );
  text-decoration: none!important;
  color: white!important;
}

.hide-element {
  display: none;
}

.eco-pact-legal {
  display: inline-block;
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

.submit-button {
  /*display: flex;
  justify-content: center;*/
  margin-top: 40px;
}

.error-message {
    color: #DC865B;
    font-size: 0.9em;
    margin: 5px;
    text-align: left;
    font-weight: 800;
}

.margin-top-big {
  margin-top: 60px!important;
}

.margin-bottom-big {
  margin-bottom: 60px!important;
}

.width-60ch {
  max-width: 60ch;
}

/* Public pact */

.elementor-widget-text-editor .eco-pact-titles a,
.eco-pact-titles a {
  text-decoration: none!important;
  font-weight: bold;
}
.elementor-widget-text-editor .eco-pact-titles a:hover,
.eco-pact-titles a:hover {
  color: var(--main-color)!important;
  text-decoration: underline!important;
}

.eco-sharing-options {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}

.eco-sharing-options > div {
  flex: 1;
}

.eco-pact-public-thanks .eco-share-option {
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  a, button {
    display: block;
    background-color: var(--tertiary-color);
    color: white!important;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none!important;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    width: 100%;
    line-height: 1;
  }

  a:hover, button:hover {
    /*color:#95b1f4!important;*/
    background-color: var( --main-color );
    text-decoration: none!important;
    color: white!important;
  }
}

/* Responsive */

@media (max-width: 768px) {

  .eco-pact-option {
    height: 210px;
  }

  .eco-sharing-options {
    flex-direction: column;
  }

  .eco-pact-selection {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 20px;
  }

  .eco-pact-option img {
    margin-bottom: 20px;
    max-width: 70px !important;
    max-height: 70px !important;
  }

  .eco-pact-form input[type="text"],
  .eco-pact-form input[type="email"],
  .eco-pact-form select {
    width: 100%;
  }

}

/* ============================================================
   New design: eco_pact_form_public (ep-* classes)
   ============================================================ */

:root {
  --ep-cream: #f1f4e4;
  --ep-blue: #9fb3ea;
}

/* 2-column layout: cards left, form-box right */
.ep-content {
  display: flex !important;
  gap: 7.46%;
  align-items: flex-start;
  background-color: transparent;
}

.ep-pacts {
  flex: 1;
  min-width: 0;
}

/* Section title: badge + h2 */
.ep-section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.ep-badge {
  width: 63px;
  height: 63px;
  border-radius: 999px;
  background: var(--main-color);
  color: var(--ep-cream);
  display: grid;
  place-items: center;
  font-size: clamp(28px, 2.7778vw, 48px);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* Pact cards grid */
.ep-cards.eco-pact-selection {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 26px !important;
  max-width: none !important;
  margin-top: 0 !important;
}

.eco-pact-option.ep-card {
  background: var(--ep-cream);
  border-radius: 34px;
  box-shadow: 6px 4px 14.6px rgb(124 116 116 / 42%), 0 4px 4px rgb(0 0 0 / 25%);
  width: 100%;
  min-height: 240px;
  padding: 16px 12px 18px;
  text-align: center;
  display: grid !important;
  flex-direction: unset;
  justify-content: unset;
  align-content: start;
  justify-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.eco-pact-option.ep-card input[type="checkbox"] {
  display: none;
}

.eco-pact-option.ep-card .ep-icon {
  display: block;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.eco-pact-option.ep-card .ep-icon svg {
  width: 100%;
  height: 100%;
  color: var(--ep-icon-color, var(--main-color));
  transition: color 0.2s ease;
}

.eco-pact-option.ep-card img {
  width: 112px !important;
  height: 112px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  margin-bottom: 8px;
}

.eco-pact-option.ep-card p {
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: -0.4px;
  color: var(--main-color);
  transition: color 0.2s ease;
}

.eco-pact-option.ep-card.ep-inactive p {
  color: white;
}

.eco-pact-option.ep-card:hover .ep-icon svg,
.eco-pact-option.ep-card.selected .ep-icon svg {
  color: var(--ep-cream);
}

.eco-pact-option.ep-card:hover p,
.eco-pact-option.ep-card.selected p {
  color: var(--ep-cream);
}

/* Al deseleccionar mientras se hace hover, mostrar estado de reposo */
.eco-pact-option.ep-card.ep-deselecting:hover {
  background: var(--ep-cream) !important;
}
.eco-pact-option.ep-card.ep-deselecting:hover .ep-icon svg {
  color: var(--ep-icon-color, var(--main-color));
}
.eco-pact-option.ep-card.ep-deselecting:hover p {
  color: var(--main-color);
}

/* Inactive (non-selected) cards in the signature form */
.eco-pact-option.ep-card.ep-inactive {
  cursor: default;
  pointer-events: none;
}

/* Signature form heading and intro */
.ep-signature-heading {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.5vw, 40px);
  color: var(--main-color);
}

.ep-signature-intro {
  margin: 0 0 24px;
  color: var(--main-color);
}

/* Cancel link below form box */
.ep-signature-cancel {
  text-align: center;
  margin-top: 16px;
}

.ep-signature-cancel .eco-cancel-link {
  color: var(--main-color);
  text-decoration: underline;
  font-size: 14px;
}

/* Form aside */
.ep-form-box {
  box-sizing: border-box;
  background: var(--ep-blue);
  border-radius: 62px;
  box-shadow: 6px 4px 14.6px rgb(124 116 116 / 42%), 0 4px 4px rgb(0 0 0 / 25%);
  width: 39%;
  min-width: 280px;
  padding: 60px 5% 40px;
  position: relative;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-box-signature form {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ep-form-box .ep-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
}

.ep-form-title {
  margin: 0 !important;
  font-size: clamp(22px, 2.2vw, 38px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: var(--main-color) !important;
}

.ep-form-box input[type="text"],
.ep-form-box input[type="email"] {
  width: 100% !important;
  border: 0 !important;
  border-radius: 45px !important;
  background: var(--ep-cream) !important;
  color: var(--main-color) !important;
  font-size: clamp(16px, 1.8vw, 28px) !important;
  font-weight: 800 !important;
  text-align: center !important;
  padding: 14px 20px !important;
  margin-top: 0 !important;
}

.ep-form-box input[type="text"]::placeholder,
.ep-form-box input[type="email"]::placeholder {
  color: var(--main-color) !important;
}

.ep-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-color);
  width: 100%;
  margin-top: 0;
}

.ep-terms input[type="checkbox"] {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--main-color);
}

.ep-terms a {
  color: var(--main-color);
  text-decoration: underline;
}

.ep-legal-info {
  font-size: 13px;
  line-height: 1.4;
  color: var(--main-color);
  margin: 0;
}

.ep-legal-info a {
  color: var(--main-color);
  text-decoration: underline;
}

.ep-form-box .submit-button {
  margin-top: 0;
  text-align: center;
}

.ep-form-box .eco-submit-button,
.ep-form-box input[type="submit"].eco-submit-button {
  display: inline-block !important;
  width: auto !important;
  margin: 0 auto !important;
  font-size: clamp(16px, 1.8vw, 26px) !important;
  padding: 14px 50px !important;
  border-radius: 37.5px !important;
}

.ep-form-box .error-message {
  margin: -10px 0 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .ep-content {
    flex-direction: column !important;
    gap: 36px;
  }

  .ep-pacts {
    width: 100%;
  }

  .ep-cards.eco-pact-selection {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .eco-pact-option.ep-card {
    min-height: 200px;
  }

  .eco-pact-option.ep-card .ep-icon,
  .eco-pact-option.ep-card img {
    width: 80px !important;
    height: 80px !important;
    min-width: 0;
  }

  .ep-form-box {
    width: 100% !important;
    border-radius: 34px;
    padding: 50px 24px 30px;
  }
}

/* Impact stats block shortcode */
.eco-impact-stats-block {
  margin: 0;
  background-color: white;
}

.eco-impact-card {
  margin: 0 0 14px;
}

.eco-impact-head {
  margin: 0;
  padding: 12px 16px;
  font-family: "Essentielle", Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: #f1f4e4;
}

.eco-impact-body {
  background: #fff;
  padding: 12px 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eco-impact-copy {
  margin: 0;
  font-family: "Essentielle", Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.15;
}

.eco-impact-icon {
  width: 44px;
  flex: 0 0 44px;
  padding-top: 40px;
}

.eco-impact-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.eco-impact-card-co2 .eco-impact-head {
  background: #657105;
}

.eco-impact-card-co2 .eco-impact-copy {
  color: #657105;
}

.eco-impact-card-co2 .eco-impact-icon {
  color: #657105;
}

.eco-impact-card-water .eco-impact-head {
  background: #abc3ff;
}

.eco-impact-card-water .eco-impact-copy {
  color: #abc3ff;
}

.eco-impact-card-water .eco-impact-icon {
  color: #abc3ff;
}

.eco-impact-card-plastic .eco-impact-head {
  background: #c25230;
}

.eco-impact-card-plastic .eco-impact-copy {
  color: #c25230;
}

.eco-impact-card-plastic .eco-impact-icon {
  color: #c25230;
}

.eco-impact-card-people .eco-impact-head {
  background: #004e42;
}

.eco-impact-card-people .eco-impact-copy {
  color: #004e42;
}

.eco-impact-card-people .eco-impact-icon {
  color: #004e42;
}

.eco-impact-footnote {
  margin: 16px 0 28px;
  font-family: "Essentielle", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #004e42;
}
