@media (max-width: 480px) {
  .rcs-registration-content {
    padding: 1rem;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .registration-form {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
  }

  .rcs-registration-message {
    font-size: 14px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    width: 100%;
  }

  .form-group input {
    padding: 12px;
    font-size: 16px; /* Prevent auto-zoom on iOS */
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none; /* Fix for iOS input styling */
    appearance: none; /* Standard property for compatibility */
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
  }

  .registration-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    position: relative; /* Changed from fixed to ensure form scrollability */
    margin: 20px 0 0 0;
    width: 100%;
    box-sizing: border-box;
  }
}

.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%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.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;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .rcs-registration-content {
    padding: 0.5rem;
  }
  
  .form-group input {
    padding: 10px;
    font-size: 14px;
  }
  
  .rcs-registration-message {
    font-size: 12px;
    padding: 8px;
    margin-bottom: 15px;
  }
  
  .registration-submit {
    padding: 12px;
    font-size: 14px;
  }
}

/* Tablets and medium-sized screens */
@media (min-width: 481px) and (max-width: 768px) {
  .rcs-registration-content {
    padding: 1.5rem;
  }
  
  .registration-form {
    max-width: 500px;
  }
  
  .form-group input {
    padding: 0.85rem;
    font-size: 1rem;
  }
  
  .registration-submit {
    padding: 0.85rem;
    font-size: 1rem;
  }
}

/* Adding styles for the logo icon and title alignment */
.rcs-chat-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.rcs-logo-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  /* Fallback in case the image fails to load */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 3h18v18H3V3zm15 15V6H6v12h12z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}