* {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 500px;
  margin: 0 auto;
  padding: 15px 30px 25px 30px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  font-size: 30px;
  background-color: #703d92;
  padding: 10px;
}

.pi-logo {
width: 25px;
font-size: 800;
}

.pi-wallet-label {
  font-size: 15px;
  color: white;
}

.pi-wallet {
width: 30px;
}

.title {
  width: 100%;
  text-align: center;
  font-weight: 600;
  margin-bottom: 30px;
}

.error-message {
  width: 100%;
  text-align: center;
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

.input {
  width: 100%;
  min-height: 230px;
  border-radius: 10px;
  resize: none;
  overflow: hidden;
  padding: 15px 25px;
  border: 2px solid rgba(0, 0, 0, 0.199);
  font-size: 19px;
  box-sizing: border-box;
}

.input:focus {
  border: 2px solid #703d92;
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  color: #703d92;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #a15dce;
  cursor: pointer;
  margin-top: 30px;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.2s;
}

.submit-btn:hover {
  border: 1px solid #703d92;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(163, 87, 214, 0.4); /* your purple wave */
  pointer-events: none;
  z-index: 1;
}
.infotext{
    font-size: 15px;
    color: #464646;
    margin-bottom: 20px;
    letter-spacing: 0.6px;
}
.infotext-container{
    margin-top: 50px;
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Styles for the container holding success/error messages */
.message-container {
    width: 100%;
    min-height: 24px; /* Prevents layout shifting when messages appear */
    text-align: center;
    margin-top: 10px;
}

/* Hide both messages by default */
.error-message, .success-message {
    display: none; 
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    border-radius: 6px;
}
        
/* Existing .error-message style is fine, but ensure it's hidden by default */
.error-message {
    color: #D8000C;
    background-color: #FFD2D2;
}
 
/* New style for the success message */       
.success-message {
    color: #270;
    background-color: #DFF2BF;
}

/* Styles for when the input and button are disabled */
.input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.submit-btn:disabled {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
}
