/* Estilos con mayor especificidad para WordPress */
body .atlascash-home-wrapper {
  max-width: 380px;
  margin: 0 auto;
  font-family: "DM Sans", sans-serif;
  box-sizing: border-box;
}

body .atlascash-home-content {
  background: #fff !important;
  padding: 40px;
  border-radius: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* overflow: hidden; REMOVED to allow dropdown to show */
  position: relative;
  z-index: 10;
}

body .atlascash-home-wrapper * {
  box-sizing: border-box;
}

/* Progress Bar */
body .atlascash-home-progress-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

body .atlascash-home-progress-bar .step {
  height: 6px;
  flex: 1;
  background-color: #a8b6ae;
  border-radius: 10px;
}

body .atlascash-home-progress-bar .step.active {
  background-color: #012d26;
}

/* Title */
body .atlascash-home-title {
  color: #052e34;
  font-size: 32px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  margin: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.2;
}

body .atlascash-home-description {
  color: #5f746d;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px 0 !important;
  font-weight: 400;
}

body .atlascash-home-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #012d26;
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  color: #012d26;
  border-radius: 0;
}

body .atlascash-home-wrapper input::placeholder {
  color: #7a8c85;
}

body .atlascash-home-wrapper .field {
  margin-bottom: 20px;
}

/* Intl Tel Input Overrides */
body .atlascash-home-wrapper .iti {
  width: 100%;
  display: block;
}
body .atlascash-home-wrapper .iti__flag-container {
  padding: 0;
}

/* Mejoras de usabilidad para el selector de país */
body .atlascash-home-wrapper .iti__country-list {
  z-index: 9999 !important;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 25px rgba(0,0,0,0.15);
  margin-top: 8px;
  overflow-x: hidden;
}

body .atlascash-home-wrapper .iti__country {
  padding: 12px 15px; /* Más espacio para tocar */
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}

body .atlascash-home-wrapper .iti__country:last-child {
  border-bottom: none;
}

/* Highlight destacado */
body .atlascash-home-wrapper .iti__country.iti__highlight {
  background-color: #f0f7f5;
}

/* En móviles, convertimos el dropdown en un modal centrado */
@media (max-width: 480px) {
  body .atlascash-home-wrapper .iti__country-list {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 90vw !important; /* Más ancho */
    max-height: 70vh !important; /* Más alto */
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 9999px rgba(0, 0, 0, 0.6) !important; /* Overlay muy oscuro y grande */
    border-radius: 16px;
    z-index: 999999 !important; /* Asegurar que esté encima de todo */
  }
  
  body .atlascash-home-wrapper .iti__country {
    font-size: 17px !important; /* Texto más grande para lectura fácil */
    padding: 18px 20px !important; /* Zona de toque generosa */
    background: #fff;
  }

  body .atlascash-home-wrapper .iti__country:active {
      background-color: #f0f0f0;
  }
  
  /* Ocultar scrollbar pero permitir scroll */
  body .atlascash-home-wrapper .iti__country-list::-webkit-scrollbar {
    width: 4px;
  }
  body .atlascash-home-wrapper .iti__country-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
  }
}

body .atlascash-home-wrapper button {
  margin-top: 10px;
  width: 100%;
  background: #cdef45;
  color: #012d26;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid #012d26; /* The image button has a thin dark border actually? Hard to tell, looks like just dark text. But some lime buttons have borders. I'll add a border if needed, but image looks borderless or same color border. Wait, looking closely at the image, the button has a black border. */
  border: 2px solid #012d26;
}

body .atlascash-home-wrapper button:hover {
  background: #bfe034;
}

body .atlascash-home-wrapper button:disabled {
  background: #e0e0e0;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

/* Footer text */
body .atlascash-home-footer {
  text-align: center;
  font-size: 13px;
  color: #7a8c85;
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  font-weight: 400;
}

/* Error message style */
body .atlascash-home-error-message {
  color: #d32f2f;
  background-color: #fdecea;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  text-align: center;
}
