/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Container */
.register-container {
  display: flex;
  height: 100vh;
}

/* Left image side */
.register-image {
  width: 60%;
  flex: 1;
  background-color: #f1f1f1; /* grey background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-overlay {
  width: 70%;
  height: 70%;
  background-image: url('../img/register-banner.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
}

/* Right register form side */
.register-form {
  width: 40%;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
}

.register-form h1 {
  color: #e05827;
  font-size: 32px;
  margin-bottom: 10px;
}

.register-form h3 {
  color: #555;
  font-size: 18px;
  margin-bottom: 30px;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.input-group label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.input-group input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-width: 100%;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  border-color: #e05827;
  box-shadow: 0 0 5px rgba(224, 88, 39, 0.5);
  outline: none;
}

/* Match Select2 with input fields */
.select2-container--default .select2-selection--single {
  height: 40px !important;              
  padding: 0 40px 0 12px !important;     /* left padding for text, right space for arrow */
  font-size: 16px !important;           
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  display: flex !important;              /* flexbox container */
  align-items: center !important;        /* vertical centering */
  box-sizing: border-box;
}

/* Rendered text (force full height flex child) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;        /* center vertically */
  font-size: 16px !important;
  color: #333;
}

/* Arrow aligned center */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%) !important;
  height: auto !important;
  display: flex;
  align-items: center;
}

/* Button */
.btn-register {
  width: 100%;
  padding: 12px;
  background-color: #e05827;
  color: #fff;
  border: none;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-register:hover {
  background-color: #c64c23;
}

/* Login link */
.login-link {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.login-link a {
  color: #e05827;
  text-decoration: none;
}

/* Popup Notification */
.custom-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.custom-popup.show { opacity: 1; transform: translateY(0); }
.custom-popup.success { background-color: #28a745; }
.custom-popup.error { background-color: #dc3545; }
.custom-popup.warning { background-color: #ffc107; color: #333; }

/* Close button */
.custom-popup .popup-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.custom-popup .popup-close:hover { opacity: 1; }

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.step {
  position: relative;
  text-align: center;
  flex: 1;
}

.step .circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ccc;
  display: inline-block;
  line-height: 22px;
  color: white;
  font-weight: bold;
  z-index: 1;
  position: relative;
  font-size: 12px;
}

.step.active .circle,
.step.completed .circle {
  background-color: #e05827;
}

.step .label {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 4px;
  background-color: #ccc;
  z-index: 0;
}

.step:last-child::after {
  display: none;
}

.step.completed::after {
  background-color: #e05827;
}


/* Responsive for mobile */
@media (max-width: 768px) {
  .register-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  .register-image {
    display: none;
  }

  .register-form {
    width: 90%;
    max-width: 500px;
    padding: 30px 20px;
  }
}