/**
 * Banner - Formulario Horizontal ATM C2C
 * Basado en estilos oficiales de residencial.movistar.com.pe
 * Scope: .atm-c2c-formbanner 
 */

.atm-c2c-formbanner {
  margin: 20px auto;
  padding: 0 20px;
  font-family: MovistarText, Telefonica, Telefonica-Regular, TelefonicaWeb-Light, sans-serif;
  font-size: 16px;
  line-height: 20px;
}

/* Container */
.atm-c2c-formbanner .atm-c2c-lb-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mensajes de error de validación */
.atm-c2c-formbanner .atm-c2c-error-message,
.atm-c2c-formbanner .atm-msg-error {
  color: red;
  font-size: 10px;
  margin: -13px 0 4px 4px !important;
  display: block;
}

.atm-c2c-formbanner .atm-c2c-lb-input.error,
.atm-c2c-formbanner input[style*="border-color: rgb(213, 78, 33)"] {
  border-color: #d54e21 !important;
}

/* Títulos */
.atm-c2c-formbanner .atm-c2c-lb-title {
  color: #fff;
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.atm-c2c-formbanner .atm-c2c-lb-subtitle {
  color: #fff;
  margin-bottom: 18px !important;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Formulario */
.atm-c2c-formbanner .atm-c2c-lb-form {
  width: 100%;
  text-align: center;
}

/* Form groups */
.atm-c2c-formbanner .atm-c2c-lb-form-group {
  margin-bottom: 10px !important;
}

/* Labels */
.atm-c2c-formbanner .atm-c2c-lb-label {
  color: #777;
  font-weight: 400 !important;
  display: inline-block !important;
  margin-bottom: 4px !important;
  font-size: 16px;
}

/* Inputs */
.atm-c2c-formbanner .atm-c2c-lb-input {
  border: 1px solid #bbb !important;
  background-color: #eee !important;
  border-radius: 8px !important;
  padding: 5px !important;
  display: block;
  width: 280px !important;
  margin-bottom: 10px !important;
  height: inherit !important;
  max-width: inherit !important;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4), 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* Checkbox */
.atm-c2c-formbanner .atm-c2c-lb-checkbox {
  margin: 0 4px 15px 0 !important;
  vertical-align: inherit !important;
}

.atm-c2c-formbanner .atm-c2c-lb-label-small {
  font-size: 12px;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.atm-c2c-formbanner .atm-c2c-lb-label-small a {
  color: #fff;
  text-decoration: underline;
}

/* Botón submit */
.atm-c2c-formbanner .atm-c2c-lb-button {
  background-color: #5bc500;
  color: #019df4;
  border: 0;
  display: block;
  width: 208px;
  padding: 12px !important;
  font-size: 18px !important;
  border-radius: 6px;
  margin-top: 4px !important;
  text-align: center;
  cursor: pointer;
  font-family: MovistarText, Telefonica, sans-serif !important;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4), 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.atm-c2c-formbanner .atm-c2c-lb-button:hover {
  background-color: #8be43e;
}

/* Loading */
.atm-c2c-formbanner .atm-c2c-lb-loading {
  display: none;
  background-image: url(https://crossattachmedia.serviciosmovistar.com/developers/files/resources/atm_spinner_1.gif);
  background-position: 0 0;
  width: 50px;
  height: 50px;
  background-size: 200%;
  background-repeat: no-repeat;
  background-position: center center;
  margin: 0 auto !important;
}

/* Desktop: campos inline */
@media (min-width: 768px) {
  .atm-c2c-formbanner .atm-c2c-lb-form-group {
    display: inline-block;
    vertical-align: top;
    margin-right: 18px;
  }

  .atm-c2c-formbanner .atm-c2c-lb-label {
    display: none;
  }

  /* Checkbox en su propia línea debajo de los inputs */
  .atm-c2c-formbanner .atm-c2c-lb-form-group:has(.atm-c2c-lb-checkbox) {
    display: block;
    margin-top: 10px;
  }

  /* Labels de checkbox sí se muestran */
  .atm-c2c-formbanner .atm-c2c-lb-form-group:has(.atm-c2c-lb-checkbox) .atm-c2c-lb-label {
    display: inline-block !important;
  }

  /* Botón inline con los inputs */
  .atm-c2c-formbanner .atm-c2c-btn-center {
    display: inline-block;
    vertical-align: top;
    margin-right: 0;
  }

  .atm-c2c-formbanner .atm-c2c-lb-input {
    height: 56px;
    padding: 18px !important;
  }

  .atm-c2c-formbanner .atm-c2c-lb-input::placeholder {
    color: #86888c;
    font-style: italic;
    font-size: 18px;
  }

  .atm-c2c-formbanner .atm-c2c-lb-button {
    height: 56px;
    padding: 0 30px !important;
    margin: 0;
  }
}

/* Mobile: campos stacked */
@media (max-width: 767px) {
  .atm-c2c-formbanner .atm-c2c-lb-form-group {
    text-align: left;
    margin-bottom: 15px;
  }

  .atm-c2c-formbanner .atm-c2c-lb-label {
    display: block !important;
    font-size: 15px;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.6);
  }

  .atm-c2c-formbanner .atm-c2c-lb-input::placeholder {
    opacity: 0;
  }
}

/* Modal de respuesta */
.atm-c2c-frm-overlay {
  background-color: rgba(0, 0, 0, 0.85);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.atm-c2c-frm-overlay .atm-c2c-lb-msg-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 420px;
  max-width: 90%;
  box-shadow: 2px 2px 30px 15px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.atm-c2c-frm-overlay .atm-c2c-lb-msg-header-h2 {
  font-size: 24px;
  font-weight: 700;
  color: #019df4;
  margin: 0 0 20px;
}

.atm-c2c-frm-overlay .atm-c2c-lb-msg-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.atm-c2c-frm-overlay .atm-c2c-lb-msg-button button {
  background-color: #5bc500;
  color: #fff;
  border: 0;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: MovistarText, Telefonica, sans-serif;
}

.atm-c2c-frm-overlay .atm-c2c-lb-msg-button button:hover {
  background-color: #8be43e;
}

/* ── Campo fecha programada ── */
.atm-c2c-fecha-input input[type="date"] {
    border: 1px solid #bbb;
    background-color: #eee;
    border-radius: 8px;
    padding: 5px 8px;
    display: block;
    width: 100%;
    height: 38px;
    font-size: 14px;
    font-family: MovistarText, Telefonica, sans-serif;
    color: #50535a;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.atm-c2c-fecha-input input[type="date"]:focus {
    border-color: #019df4;
    outline: none;
    background-color: #fff;
}

/* ── Banner layout horizontal ── */
.atm-c2c-formbanner--horizontal .atm-c2c-input-group-form,
.atm-c2c-formbanner--horizontal .atm-c2c-lb-container .atm-c2c-input-group-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}
.atm-c2c-formbanner--horizontal .atm-c2c-lb-form-group {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
}
.atm-c2c-formbanner--horizontal .atm-c2c-btn-center {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .atm-c2c-formbanner--horizontal .atm-c2c-input-group-form {
        flex-direction: column;
    }
    .atm-c2c-formbanner--horizontal .atm-c2c-lb-form-group {
        flex: none;
        width: 100%;
    }
}
