/* Container & Layout Matching the Reference Design */
.aim-container,
.aim-modal-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 720px;
  margin: 30px auto;
  padding: 40px 45px 35px 45px;
  border-radius: 4px;
  background: #fcfcfc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  position: relative;
}

/* Modal Overlay & Floating Close Button */
.aim-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.aim-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  background: #000000;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.aim-modal-close:hover {
  background: #222222;
  transform: scale(1.08);
}

/* Typography & Headline */
.aim-headline {
  font-size: 32px;
  font-weight: 800;
  color: #5c6370;
  text-align: center;
  margin: 25px 0 30px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Form Group & Input with Icon */
.aim-form-group {
  margin-bottom: 18px;
  position: relative;
}

.aim-input-wrapper {
  position: relative;
  width: 100%;
}

.aim-form-group input {
  width: 100%;
  padding: 16px 45px 16px 20px;
  font-size: 18px;
  color: #4a5568;
  background-color: #ffffff;
  border: 1px solid #d2d6dc;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aim-form-group input:focus {
  border-color: #5073e5;
  box-shadow: 0 0 0 3px rgba(80, 115, 229, 0.15);
  outline: none;
}

.aim-form-group input::placeholder {
  color: #a0aec0;
}

/* Input Right Envelope Icon */
.aim-input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #a0aec0;
  display: flex;
  align-items: center;
}

/* Full Width Action Button */
.aim-btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: #5073e5 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.aim-btn:hover {
  background: #3f62d4;
}

.aim-btn:active {
  transform: translateY(1px);
   outline: none;
}
.aim-btn:focus {
   outline: none;
}

.aim-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Fine Print Footer */
.aim-footer-text {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
}

.aim-footer-text a {
  color: #3182ce;
  text-decoration: none;
}

.aim-footer-text a:hover {
  text-decoration: underline;
}

.aim-referred-by {
  margin-top: 15px;
  text-align: center;
  font-size: 18px;
  color: #a0aec0;
  font-weight: 500;
}

/* Notifications */
.aim-notification {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.aim-notification.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}


.aim-container.step-2 .aim-step-1-only,
.aim-modal-content.step-2 .aim-step-1-only {
    display: none !important;
}
