/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Body */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blur Background */
.blur-bg-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  z-index: 1;
}

/* Popup Container */
.form-popup {
  position: relative;
  width: 850px;
  max-width: 95%;
  background: #fff;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #555;
}

/* Form Box */
.form-box {
  display: flex;
  width: 100%;
}

/* Left Side */
.form-details {
  width: 50%;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-details h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.form-details p {
  font-size: 14px;
  line-height: 1.6;
}

/* Right Side */
.form-content {
  width: 100%;
  padding: 40px;
}

.form-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.input-field {
  position: relative;
  margin-bottom: 20px;
}

.input-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  background: transparent;
}

/* Label default */
.input-field label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
  font-size: 13px;
  pointer-events: none;
  transition: 0.2s ease;
  background: #fff;
  padding: 0 5px;
}

/* ✅ Floating label (NO required needed) */
.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 11px;
  color: #2575fc;
}

/* When error exists → force label up */
.input-field.has-error label {
  top: -8px;
  left: 10px;
  font-size: 11px;
    color: #2575fc;
}

/* Checkbox */
.policy-text {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.policy-text input {
  margin-right: 8px;
}

.policy-text a {
  color: #2575fc;
  text-decoration: none;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background: #2575fc;
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #1a5edb;
}

/* Bottom Link */
.bottom-link {
  margin-top: 15px;
  font-size: 14px;
}

.bottom-link a {
  color: #2575fc;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .form-popup {
    flex-direction: column;
  }

  .form-details,
  .form-content {
    width: 100%;
  }

  .form-details {
    text-align: center;
  }
}

/* Row for 50-50 layout */
.row {
  display: flex;
  gap: 15px;
}

/* Each field takes equal space */
.row .input-field {
  flex: 1;
}

.error-text {
  color: red;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
