* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(
    ellipse at top,
    #1a1a2e 0%,
    #16213e 25%,
    #0f0f23 100%
  );
  color: #eee;
  font-family: Segoe UI, Tahoma, sans-serif;
  margin: 0;
  padding: 30px;
  min-height: 100vh;
}

.container {
  max-width: 700px;
  margin: auto;
  padding: 30px;
}

h1 {
  text-align: center;
  font-size: 4vw;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: colorShift 10s ease infinite;
  position: relative;
}

@keyframes colorShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #e0e0e0;
}

.wrapper{
    display: flex;
    gap: 10px;
}
.left, .right {
    width: 50%;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6c63ff;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: #eee;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px rgba(255, 255, 255, 0.1);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px);
}

input:focus,
select:focus,
textarea:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  background-image: none !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

button {
  background: linear-gradient(135deg, #6c63ff, #5952d6);
  border: none;
  padding: 15px;
  color: white;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
  background: linear-gradient(135deg, #5952d6, #4a43c7);
}

.alert {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
  font-weight: 600;
}

.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid #f44336;
}

.required {
  color: #ff6b6b;
}

.form-group {
  margin-bottom: 20px;
}

.info-note {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid #6c63ff;
  color: #e0e0e0;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.status-connected {
  color: #4caf50;
}

.status-disconnected {
  color: #f44336;
}

/* Custom scrollbar for textarea */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #6c63ff;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #5952d6;
}

/* Form layout - Your requested layout */
form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* First row: First Name and Last Name (50-50 width) */
.form-row:nth-child(1) .form-field {
  width: 50%;
}

/* Second row: Email and Company (50-50 width) */
.form-row:nth-child(2) .form-field {
  width: 50%;
}

/* Third row: Select dropdown (100% width) */
.form-row:nth-child(3) .form-field {
  width: 100%;
}

/* Fourth row: Textarea (100% width) */
.form-row:nth-child(4) .form-field {
  width: 100%;
}

/* Fifth row: Button (100% width) */
.form-row:nth-child(5) .form-field {
  width: 100%;
}

/* Apply the layout structure to your existing HTML */
form > * {
  margin-bottom: 20px;
}

form > label:nth-child(1),
form > input:nth-child(2) {
  width: 48%;
  float: left;
  margin-right: 4%;
}

form > label:nth-child(3),
form > input:nth-child(4) {
  width: 48%;
  float: left;
}

form > label:nth-child(5),
form > input:nth-child(6) {
  width: 48%;
  float: left;
  margin-right: 4%;
  clear: both;
}

form > label:nth-child(7),
form > input:nth-child(8) {
  width: 48%;
  float: left;
}

form > label:nth-child(9),
form > select:nth-child(10) {
  width: 100%;
  clear: both;
}

form > label:nth-child(11),
form > textarea:nth-child(12) {
  width: 100%;
}

form > button {
  width: 100%;
  clear: both;
}

/* Clear floats */
form::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  form > label:nth-child(1),
  form > input:nth-child(2),
  form > label:nth-child(3),
  form > input:nth-child(4),
  form > label:nth-child(5),
  form > input:nth-child(6),
  form > label:nth-child(7),
  form > input:nth-child(8) {
    width: 100%;
    float: none;
    margin-right: 0;
  }
}
