.div {
  position: relative;
  width: 100%;
  height: max(100%, 1200px);
  background-color: #f9fafb;
  border: 0px none;
}

.loader {
  font-weight: bold;
  font-family: monospace;
  font-size: 30px;
  display: inline-flex;
}
.loader::before {
  content:"Loadi";
  animation: l27 2s infinite;
}
.loader::after {
  content:"ng...";
  animation: l27 2s infinite 1s;
}

@keyframes l27{
  50%,100%{transform:rotate(1turn)}
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  z-index: 9999;
}
.div .header {
  position: absolute;
  width: 100%;
  height: 62px;
  top: 0;
  left: 0;
  background-color: #ffffff;
  border: 0px none;
  box-shadow: 0px 1px 2px #0000000d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.div .header-container {
  position: relative;
  width: 100%;
  height: 62px;
  margin: 0 auto;
  border: 0px none;
}


.div .site-logo-icon {
  position: absolute;
  width: 38px;
  height: 30px;
  top: 0;
  left: 0;
}

.div .site-logo-text {
  position: absolute;
  width: 126px;
  top: 1px;
  left: 50px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #1f2937;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 20px;
}

.div .button {
  all: unset;
  box-sizing: border-box;
  width: 134px;
  height: 24px;
  top: 19px;
  right: 16px; /* Change left: 1130px to right: 16px */
  position: absolute;
  border: 0px none;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.div .img {
  position: absolute;
  width: 14px;
  height: 16px;
  top: 2px;
  left: 0;
}

.div .back-link-text {
  position: absolute;
  width: 111px;
  top: 1px;
  left: 22px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #4b5563;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
}
.div .main {
  position: relative;
  width: 90%; /* Use percentage instead of fixed 60vw */
  max-width: 736px; /* Maximum width for larger screens */
  min-width: 300px; /* Minimum width for content */
  height: auto; /* Allow height to adjust based on content */
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  border: 0 none;
  padding-bottom: 100px; /* Add padding at bottom for scrolling space */
}
.div .section {
  position: absolute;
  width: 736px;
  height: 152px;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  border: 0 none;
}

.div .p {
  position: absolute;
  width: 629px;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #111827;
  font-size: 36px;
  text-align: center;
  letter-spacing: 0;
  line-height: 36px;
}

.div .form-intro-text {
  position: absolute;
  width: 729px;
  top: 101px;
  left: 4px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #4b5563;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: 18px;
}

.div .form {
  position: absolute;
  width: 736px;
  height: 1265px;
  top: 232px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 12px;
  border: 0;
  box-shadow: 0px 10px 15px #0000001a, 0px 4px 6px #0000001a;
}

.div .personal-info-section {
  position: absolute;
  width: 672px;
  height: 221px;
  top: 32px;
  left: 32px;
  border: 0px none;
}

.div .section-heading {
  position: absolute;
  width: 257px;
  top: -1px;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #1f2937;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 24px;
}

.div .name-fields-container {
  position: absolute;
  width: 672px;
  height: 70px;
  top: 56px;
  left: 0;
  border: 0px none;
}

.div .first-name-container {
  position: absolute;
  width: 324px;
  height: 70px;
  top: 0;
  left: 0;
  border: 0px none;
}

.div .label {
  position: absolute;
  width: 324px;
  height: 20px;
  top: 0;
  left: 0;
  border: 0px none;
}

.div .firstname-label {
  position: absolute;
  width: 76px;
  top: 0;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.div .text-field {
  width: 324px;
  height: 42px;
  top: 28px;
  left: 0;
  border-radius: 8px;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid;
  border-color: #d1d5db;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 24px;
  padding: 0;
  padding-left: 16px;
}
.div .text-field::placeholder {
  color: #adaebc;
}

.div .last-name-container {
  position: absolute;
  width: 324px;
  height: 70px;
  top: 0;
  left: 348px;
  border: 0px none;
}

.div .lastname-label {
  position: absolute;
  width: 75px;
  top: 0;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.div .contact-fields-container {
  position: absolute;
  width: 672px;
  height: 71px;
  top: 150px;
  left: 0;
  border: 0px none;
}

.div .email-field-container {
  position: absolute;
  width: 324px;
  height: 71px;
  top: 0;
  left: 0;
  border: 0px none;
}

.div .email-label-text {
  position: absolute;
  width: 101px;
  top: 0;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.div .phone-field-container {
  position: absolute;
  width: 324px;
  height: 71px;
  top: 0;
  left: 348px;
  border: 0px none;
}

.div .phone-wrapper{
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  position: relative;
  top: 10px;
}

.div .phone-label-text {
  top: 0;
  left: 0;
  color: #374151;
  font-size: 14px;
  line-height: normal;
  position: relative;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
}

.div .phone-input-group {
  position: absolute;
  width: 324px;
  height: 43px;
  top: 28px;
  left: 0;
  border: 0px none;
}

.div .phone-code-dropdown {
  width: 83px;
  top: 0;
  background-color: #f9fafb;
  border-radius: 8px 0px 0px 8px;
  border-top-width: 1px;
  border-top-style: solid;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-left-width: 1px;
  border-left-style: solid;
  position: relative;
  height: 42px;
  left: 0;
  border-color: #d1d5db;
}

.div .phone-dropdown-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 12px;
  left: 52px;
}

.div .phone-field {
  width: 241px;
  height: 42px;
  top: 0;
  left: 0px;
  border-radius: 0px 8px 8px 0px;
  position: relative;
  background-color: #ffffff;
  border: 1px solid;
  border-color: #d1d5db;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 24px;
  padding: 0;
  padding-left: 16px;
}
.div .phone-field::placeholder {
  color: #adaebc;
}

.div .academic-section {
  position: absolute;
  width: 672px;
  height: 127px;
  top: 285px;
  left: 32px;
  border: 0px none;
}

.div .academic-heading {
  position: absolute;
  width: 276px;
  top: -1px;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #1f2937;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 24px;
}

.div .academic-fields-container {
  position: absolute;
  width: 672px;
  height: 71px;
  top: 56px;
  left: 0;
  border: 0px none;
}

.div .major-label-text {
  position: absolute;
  width: 97px;
  top: 0;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.div .budget-dropdown {
  width: 324px;
  top: 28px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid;
  position: absolute;
  height: 43px;
  left: 0;
  border-color: #d1d5db;
}

.div .select-dropdown-icon {
  position: absolute;
  width: 27px;
  height: 27px;
  top: 9px;
  left: 289px;
}



.div .major-field {
  width: 324px;
  height: 43px;
  top: 0;
  left: 0px;
  border-radius: 8px;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid;
  border-color: #d1d5db;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 24px;
  padding: 0;
  padding-left: 16px;
}
.div .major-field::placeholder {
  color: #adaebc;
}

.div .budget-label-text {
  position: absolute;
  width: 147px;
  top: 0;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.div .budget-dropdown-icon {
  position: absolute;
  width: 27px;
  height: 27px;
  top: 8px;
  left: 289px;
}


.div .documents-section {
  position: absolute;
  width: 672px;
  height: 456px;
  top: 444px;
  left: 32px;
  border: 0px none;
}

.div .passport-upload-zone {
  position: absolute;
  width: 672px;
  height: 188px;
  top: 56px;
  left: 0;
  border-radius: 8px;
  border: 2px dashed;
  border-color: #d1d5db;
}

.div .passport-icon {
  position: absolute;
  width: 32px;
  height: 36px;
  top: 26px;
  left: 320px;
}

.div .passport-dropzone-message {
  position: absolute;
  width: 316px;
  top: 70px;
  left: 178px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #4b5563;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
}

.div .passport-dropzone-divider {
  top: 92px;
  position: absolute;
  width: 15px;
  left: 329px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: 14px;
}

.div .div-wrapper {
  all: unset;
  box-sizing: border-box;
  width: 129px;
  height: 40px;
  top: 122px;
  left: 271px;
  background-color: #f3f4f6;
  border-radius: 8px;
  position: absolute;
  border: 0px none;
}

.div .passport-browse-button-text {
  position: absolute;
  width: 96px;
  top: 8px;
  left: 16px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.div .additional-docs-zone {
  position: absolute;
  width: 672px;
  height: 188px;
  top: 268px;
  left: 0;
  border-radius: 8px;
  border: 2px dashed;
  border-color: #d1d5db;
}

.div .additional-docs-icon {
  position: absolute;
  width: 27px;
  height: 36px;
  top: 22px;
  left: 323px;
}

.div .additional-docs-message {
  position: absolute;
  width: 324px;
  top: 70px;
  left: 174px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #4b5563;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
}

.div .additional-docs-divider {
  top: 95px;
  position: absolute;
  width: 15px;
  left: 329px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: 14px;
}

.div .button-2 {
  all: unset;
  box-sizing: border-box;
  width: 129px;
  height: 40px;
  top: 122px;
  left: 269px;
  background-color: #f3f4f6;
  border-radius: 8px;
  position: absolute;
  border: 0px none;
}

.div .additional-browse-button-text {
  position: absolute;
  width: 96px;
  top: 8px;
  left: 17px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #374151;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.div .comments-section {
  position: absolute;
  width: 672px;
  height: 208px;
  top: 932px;
  left: 32px;
  border: 0px none;
}

.div .comments-heading {
  position: absolute;
  width: 270px;
  top: 11px;
  left: 0;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #1f2937;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 24px;
}

.div .textarea {
  position: absolute;
  width: 672px;
  height: 128px;
  top: 50px;
  left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid;
  border-color: #d1d5db;
}
.div .textarea::placeholder {
  color: #adaebc;
}

.div .any-additional {
  position: absolute;
  width: 371px;
  top: 7px;
  left: 16px;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #adaebc;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 24px;
}

.div .button-3 {
  all: unset;
  box-sizing: border-box;
  width: 672px;
  height: 60px;
  top: 1160px;
  left: 32px;
  background-color: #2563eb;
  border-radius: 8px;
  position: absolute;
  border: 0px none;
}


.div .submit-button-text {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  width: fit-content;
}
.div .footer {
  position: absolute;
  width: 100%;
  height: 129px;
  top: 1620px;
  left: 0;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-right: none;
  border-bottom: none;
  border-left: none;
  display: flex;
  justify-content: center;
  width: 100%;
}

.div .footer-content {
  position: relative;
  height: 64px;
  
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 33px;
}

.div .policy-wrap {
  position: relative;
  display: inline-flex;
  width: fit-content;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  color: #4b5563;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
  text-align: center;
}

.div .contacts {
  position: relative;
  width: fit-content;
  display: inline-flex;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.div .number-frame {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.div .phone-icon {
  position: relative;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 0;
}

.div .contact-number {
  font-size: 16px;
  text-align: center;
  line-height: 16px;
  position: relative;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  display: inline-flex;
}

.div .location-frame {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.div .location-icon {
  position: relative;
  width: 12px;
  height: 16px;
  top: 2px;
  left: 0;
}

.div .location-text {
  position: relative;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
  white-space: nowrap;
  display: inline-flex;
}

.div .email-frame {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.div .email-text {
  position: relative;
  font-family: "Poppins", Helvetica;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 16px;
  white-space: nowrap;
  display: inline-flex;
  top: -1px;
}
.div .email-icon {
  position: relative;
  width: 16px;
  height: 17px;
  top: 2px;
  left: 0;
}

/* Add these styles at the end of your CSS file */

.budget-dropdown select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-family: "Poppins", Helvetica;
    font-size: 16px;
    color: #374151;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.budget-dropdown {
    position: relative;
}

.budget-dropdown::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #374151;
    pointer-events: none;
}

/* Style for uploaded file names */
.additional-docs-zone div:not(:first-child) {
    margin: 5px 16px;
    font-family: "Poppins", Helvetica;
    font-size: 14px;
    color: #374151;
}

.uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 16px;
    padding: 4px 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    font-family: "Poppins", Helvetica;
    font-size: 14px;
    color: #374151;
    max-width: 185px; /* limits overall width */
}

.uploaded-file span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.uploaded-file .remove-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #ff0000;
    cursor: pointer;
}

/* Style footer links */
.div .contacts a {
    color: #2563eb; /* blue color */
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.div .contacts a:hover * {
    text-decoration: underline;
    cursor: pointer;
}


.div .div-wrapper:hover,
.div .button-2:hover {
  cursor: pointer;
  transform: scale(1.05); /* Scale up to 105% */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}

.div .logo-link:hover,
.div .button:hover {
    cursor: pointer;
}

.div .button-3:hover {
  cursor: pointer;
  transform: scale(1.05); /* Scale up to 105% */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}



.phone-num{
  position: relative;  
  width: fit-content;
  display: inline-flex;
}

.location{
  position: relative;
  width: fit-content;
  display: inline-flex;

}

.email-add{
  position: relative; 
  width: fit-content;
  display: inline-flex;

}


/* Replace your existing media queries with these improved versions */

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Reset main container */
  .div .main {
    width: 95%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    top: 70px;
  }

  /* Completely reset form positioning */
  .div .form {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: 0px !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  /* Reset section positioning */
  .div .section {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    transform: none !important;
    padding-bottom: 50px !important;
  }
  .div .section-heading,
  .div .academic-heading,
  .div .comments-heading {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  .div .p {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    font-size: 28px !important;
    line-height: 32px !important;
    text-align: center !important;
  }

  .div .form-intro-text {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 20px !important;
    transform: none !important;
    text-align: center !important;
  }

  /* Reset all form sections */
  .div .personal-info-section,
  .div .academic-section,
  .div .documents-section,
  .div .comments-section {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 40px !important;
  }

  /* Reset field containers */
  .div .name-fields-container,
  .div .contact-fields-container,
  .div .academic-fields-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    left: 0 !important;
    top: 0 !important;
  }

  /* Reset individual field containers */
  .div .first-name-container,
  .div .last-name-container,
  .div .email-field-container,
  .div .phone-field-container {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    margin-bottom: 20px !important;
  }

  /* Reset input fields */
  .div .text-field,
  .div .major-field,
  .div .budget-dropdown
   {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    left: 0 !important;
    top: 28px !important;
  }
  .div .textarea{
    
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    left: 0 !important;
    top: 0px !important;
  }
  /* Reset file upload zones */
  .div .passport-upload-zone,
  .div .additional-docs-zone {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    margin-bottom: 20px !important;
    top: 0px !important;
  }

  /* Reset upload icons positioning */
  .div .passport-icon,
  .div .additional-docs-icon {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Reset upload text positioning */
  .div .passport-dropzone-message,
  .div .additional-docs-message,
  .div .passport-dropzone-divider,
  .div .additional-docs-divider {
    position: absolute !important;
    width: 90% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
  }

  /* Reset browse buttons */
  .div .div-wrapper,
  .div .button-2 {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Reset submit button */
  .div .button-3 {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }

  /* Reset footer */
  .div .footer {
    position: relative !important;
    height: auto !important;
    top: 70px !important;
    margin-top: 40px !important;
    padding: 20px 0 !important;
  }

  .div .contacts {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .div .contacts > div {
    margin: 5px 0 !important;
  }
}

/* Small phone screens */
@media (max-width: 480px) {
  .div .p {
    font-size: 24px !important;
    line-height: 28px !important;
  }

  .div .form-intro-text {
    font-size: 16px !important;
  }


  .div .section-heading,
  .div .academic-heading,
  .div .comments-heading {
    font-size: 20px !important;
    line-height: 24px !important;
  }

  /* Adjust phone input group */
  .div .phone-wrapper {
    width: 100% !important;
    flex-direction: row !important;
    display: flex !important;
  }

  .div .phone-code-dropdown {
    width: 30% !important;
  }

  .div .phone-field {
    width: 70% !important;
  }
}