/* =========================================================
   BUZÓN DE SUGERENCIAS
========================================================= */

body:has(.buzon-page) {
  height: 100vh;
  width: 100%;
  background-color: #fff;
  overflow: hidden !important;
}

@supports (height: 100dvh) {
  body:has(.buzon-page) {
    height: 100dvh;
  }
}

body:has(.buzon-page) #site-footer,
body:has(.buzon-page) footer {
  display: none !important;
}

body:has(.buzon-page) #site-header,
body:has(.buzon-page) #main-header {
  display: none !important;
}

.buzon-page {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: #fff;
  overflow: hidden !important;
}

@supports (height: 100dvh) {
  .buzon-page {
    height: 100dvh;
  }
}

.buzon-shell {
  height: 100vh;
}

@supports (height: 100dvh) {
  .buzon-shell {
    height: 100dvh;
  }
}

/* Form general */

.buzon-form {
  position: relative;
  width: 75%;
  height: 100vh;
}

@supports (height: 100dvh) {
  .buzon-form {
    height: 100dvh;
  }
}

.buzon-logo {
  width: 50px;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.buzon-logo svg {
  width: 50px;
  height: auto;
}

/* Textos iniciales */

.start-buzon h1 {
  font-size: 3rem;
}

.start-buzon h2 {
  font-size: 2.3rem;
  font-weight: 400;
}

.start-buzon h3 {
  font-size: 2rem;
  font-weight: 400;
}

.txt-1 {
  font-size: 3.5rem !important;
}

/* Estados validación */

.buzon-page input.invalid,
.buzon-page textarea.invalid {
  background-color: transparent;
}

/* Tabs */

.tab {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  top: 8%;
  width: 90%;
  height: 70%;
  transform: translate(-50%, 100%);
  opacity: 0;
  transition: 1s all ease;
  pointer-events: none;
}

.tab.on {
  transform: translate(-50%, 0%);
  opacity: 1;
  transition: 1s all ease;
  pointer-events: initial;
}

.img-tab {
  width: 140px;
}

/* Steps */

.step {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 2px;
  border: none;
  border-radius: 50%;
  background-color: rgba(254, 201, 58, 1);
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

.step.finish {
  background-color: rgba(254, 201, 58, 1);
}

/* Helpers */

.margin-top-5 {
  margin-top: 1rem;
}

.margin-bottom-5 {
  margin-bottom: 1rem;
}

/* Selectores departamentos */

.cc-selector {
  display: flex;
  justify-content: center;
}

.cc-selector input {
  margin: 0;
  padding: 0;
  appearance: none;
}

.cc-selector label p {
  position: absolute;
  left: 10px;
  bottom: 0%;
  margin-bottom: 0.3em;
  font-size: 1.5rem;
  line-height: 1;
  text-align: left;
}

/* Imágenes de departamentos */

.rrhh {
  background-image: url("../../img/buzon-sugerencias/rrhh.png");
}

.logistica {
  background-image: url("../../img/buzon-sugerencias/logistica.png");
}

.confeccion {
  background-image: url("../../img/buzon-sugerencias/confeccion.png");
}

.produccion {
  background-image: url("../../img/buzon-sugerencias/produccion.png");
}

.innovacion {
  background-image: url("../../img/buzon-sugerencias/innovacion.png");
}

.codigo-etico {
  background-image: url("../../img/buzon-sugerencias/codigo-etico.png");
}

.seguridad {
  background-image: url("../../img/buzon-sugerencias/seguridad.png");
}

.at-cliente {
  background-image: url("../../img/buzon-sugerencias/atencion-cliente.png");
}

.img-corporativo {
  background-image: url("../../img/buzon-sugerencias/corporativo.png");
}

.cc-selector input:active + .drinkcard-cc {
  opacity: 0.9;
}

.cc-selector input:checked + .drinkcard-cc {
  filter: none;
}

.drinkcard-cc {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0.5rem !important;
  border: 3px solid #fec93a !important;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: 50% 35%;
  cursor: pointer;
  transition: all 100ms ease-in;
  filter: grayscale(1) opacity(0.7);
}

.drinkcard-cc:hover {
  filter: grayscale(0.5) opacity(0.9);
}

/* Inputs */

.buzon-page textarea,
.buzon-page input {
  border: 0;
  border-bottom: 1px solid #fec93a;
  background-color: transparent;
  font-size: 2rem;
}

.buzon-page textarea {
  width: 100%;
  min-height: 35px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  resize: none;
}

.buzon-page input.finish {
  width: 100%;
  background-color: transparent;
  font-size: 2rem;
}

.buzon-page :focus-visible {
  outline: 0 !important;
}

.buzon-page input::placeholder,
.buzon-page textarea::placeholder {
  color: rgba(254, 201, 58, 0.6);
  font-size: 2rem !important;
}

/* Botones inferiores */

.buzon-page button {
  margin: 0 1rem;
  border: 0;
  background: #fec93a;
  color: #000 !important;
  padding: 10px 20px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.buzon-page button[type="button"].off {
  opacity: 0.5;
  pointer-events: none;
}

.buzon-form.is-submitting .buzon-controls-buttons button {
  opacity: 0.65;
  pointer-events: none;
}

/* Controles fijos abajo */

.buzon-controls {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(3vh + env(safe-area-inset-bottom)));
  z-index: 20;
  transform: translateX(-50%);
}

.buzon-status {
  min-height: 1.35em;
  margin: 0 0 1rem;
  color: #1e252b;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.buzon-status:empty {
  margin-bottom: 0;
}

.buzon-status.is-error {
  color: #a01818;
}

.buzon-status.is-success {
  color: #1e252b;
}

.buzon-controls-buttons {
  display: flex;
  justify-content: center;
}

.buzon-steps {
  margin-top: 10px;
  text-align: center;
}

.grecaptcha-badge {
  display: none;
}

.buzon-cf7-bridge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 996px) {
  .buzon-form {
    width: 90%;
    height: 100vh;
  }

  @supports (height: 100dvh) {
    .buzon-form {
      height: 100dvh;
    }
  }

  .buzon-page p,
  .buzon-page h1,
  .buzon-page h2 {
    text-align: left;
  }

  .img-tab {
    width: 90px;
    margin-bottom: 20px;
  }

  .tab {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    top: 8%;
    width: 90%;
    height: 70%;
    transform: translate(-50%, 100%);
    opacity: 0;
    transition: 1s all ease;
    pointer-events: none;
  }

  .tab.on {
    transform: translate(-50%, 0%);
    opacity: 1;
    transition: 1s all ease;
    pointer-events: initial;
  }

  .tab h1 {
    font-size: 2.3rem !important;
  }

  .start-buzon,
  .start-buzon h1,
  .start-buzon h2,
  .start-buzon h3 {
    text-align: center !important;
  }

  .start-buzon h1 {
    font-size: 2rem !important;
  }

  .start-buzon h2 {
    font-size: 1.7rem;
    font-weight: 400;
  }

  .start-buzon h3 {
    font-size: 1.5rem;
    font-weight: 400;
  }

  .txt-1 {
    font-size: 2.5rem !important;
  }

  .margin-top-5 {
    margin-top: 0;
  }

  .margin-bottom-5 {
    margin-top: 0;
  }

  .cc-selector {
    display: flex;
    justify-content: center;
  }

  .drinkcard-cc {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0.5rem !important;
    border: 3px solid #fec93a !important;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: 50% 35%;
    cursor: pointer;
    transition: all 100ms ease-in;
    filter: grayscale(1) opacity(0.7);
  }

  .cc-selector > input {
    border: 0;
    border-bottom: 0 !important;
    font-size: 2rem;
  }

  .cc-selector label p {
    position: absolute;
    left: 10px;
    bottom: 0%;
    font-size: 1.2rem;
    line-height: 1;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .buzon-form {
    width: 95%;
  }

  .buzon-controls {
    width: 100%;
    bottom: max(18px, calc(2.5vh + env(safe-area-inset-bottom)));
  }

  .buzon-controls-buttons {
    gap: 1rem;
  }

  .buzon-page button {
    margin: 0;
    padding: 10px 14px;
    font-size: 1.3rem;
  }
}
