@media (max-width: 480px) {
  .rcs-registration-content {
    padding: 1rem;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .registration-form {
    margin-top: 20px;
    width: 100%;
  }

  .rcs-registration-message {
    font-size: 14px;
    padding: 10px;
  }

  .form-group input {
    padding: 12px;
    font-size: 16px; /* Prevent auto-zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }

  .registration-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 1rem;
    width: calc(100% - 2rem);
  }
}

.rcs-registration-content {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.registration-submit {
  padding: 0.75rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.registration-submit:hover {
  background-color: #1d4ed8;
}

.rcs-registration-message {
  text-align: center;
  margin-bottom: 25px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding: 12px 15px;
  background-color: #f3f4f6;
  border-radius: 6px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
  .rcs-registration-content {
    padding: 0.5rem;
  }

  .registration-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .registration-submit {
    grid-column: span 2;
    position: static;
    margin: 0;
  }
}