@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif ;
}
/* Center the form on the page */



/* ✅ Center only the registration form on the screen */
.registration-section {
  display: flex;
  justify-content: center;
  align-items: center;
 
  
}

/* Optional subtle form shadow enhancement */
.registration-wrapper {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
}


.form-container {
  background: #fff;
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.form-container:hover {
  transform: translateY(-3px);
}

h1 {
  text-align: center;
  color:  #0d6dce;;
  font-weight: 600;
  font-size: 2.3rem;
  
}

.form-subtitle {
  text-align: center;
  color: #555;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 16px;
}

.form-instruction {
      text-align: left;
    font-weight: 400;
    color: #666;
    margin-bottom: 37px;
    font-size: 16px;
    margin-top: 38px;
}

/* Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group.full {
  grid-column: span 2;
}

/* Inputs & Floating Labels */
input, select, textarea {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: #333;
  transition: 0.3s;
}

label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #777;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease;
  background: #fff;
  padding: 0 4px;
}

input:focus, textarea:focus, select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 6px rgba(26, 115, 232, 0.3);
}

/* Label Animation */
input:focus + label,
textarea:focus + label,
input:not(:placeholder-shown) + label,
textarea:not(:placeholder-shown) + label,
select:valid + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #1a73e8;
}

/* File Upload */
.file-upload label {
  position: relative;
  color: #333;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.file-upload input[type="file"] {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

/* Button */
.submit-btn {
  margin-top: 19px;
  width: 100%;
  padding: 14px;
  background:  #003ce6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0d47a1, #1a237e);
  transform: scale(1.02);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: popup 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.modal-content h3 {
  color: #1a73e8;
  font-size: 22px;
  margin: 10px 0;
  font-weight: 600;
}

.modal-content p {
  color: #555;
  font-size: 15px;
  margin-bottom: 25px;
}

.modal-content button {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.modal-content button:hover {
  background: #0d47a1;
}

@keyframes popup {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* Fix floating label overlap for select fields */
select:focus + label,
select:valid + label {
  top: -10px;
  font-size: 12px;
  color: #333;
}


/* 📱 Full-width form on mobile screens */
@media (max-width: 768px) {


  body, html {
        height: 100%;
        min-height: 100vh;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .registration-section {
        /* Ensure the registration section can utilize the full screen space */
        min-height: 100vh;
        align-items: flex-start; /* IMPORTANT: Align to start to allow scrolling */
        padding-top: 2rem; /* Add some top padding */
        padding-bottom: 2rem; /* Add some bottom padding */
    }
   

  .registration-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
     height: auto; /* Changed from original */
     min-height: 100vh;
  }

  .form-container {
    width: 100%;
    max-width: 100%;
    border-radius: 0;          /* remove rounded corners */
    box-shadow: none;          /* remove outer shadow */
    padding: 1.5rem;           /* inner spacing */
    min-height: 100vh;         /* make it fill full screen height */
  }

 

  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    width: 100%;
      overflow: visible;
  }
  select {
    width: 100%;
    font-size: 16px; /* prevents zoom-in on iOS/Android */
    padding: 14px;
  }
 .form-container,
  .registration-wrapper,
  .registration-section {
    overflow: visible !important; /* allow dropdowns to expand fully */
  }
  .form-group {
    position: relative;
    width: 100%;
    overflow: visible; /* ensures dropdown expands properly */
  }

  .form-container {
    overflow-y: auto; /* allow scrolling if dropdown is large */
  }

  label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Make sure dropdown doesn't get clipped */
  select,
  option {
    max-width: 100%;
  }

  /* Fix floating label overlap for select */
  select:focus + label,
  select:valid + label {
    top: -10px;
    font-size: 12px;
    color: #1a73e8;
    background: #fff;
  }
}


