/* Importing fonts from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=PT+Sans:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap");

/* Color definitions */
/* #1C4FC3 - Dark Blue */
/* #3F3D56 - Grey (for content) */
/* #ECF5FF - Light Blue */
/* #A4B9E7 - Secondary */
/* #86a4e7 - Heading */

/* Resetting default styles for all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Styling the body element */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #f5f5f9;
}

/* Styling the container for the page content */
.container {
  width: 90%;
  margin: 3% auto;
  display: flex;
  justify-content: space-evenly;
  height: 100%;
  box-shadow: 0 12px 18px rgba(54, 176, 138, 0.005);
  border-radius: 6px;
  background: #fff;
}

/* Styling the registration link section */
.register-link {
  background-image: url(../images/Map_illustration_portrait.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 52%;
  padding: 3%;
}

/* Styling the registration form content */
.registration-form-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Styling the logo image */
.logo img {
  width: 11rem;
}

/* Styling the side details section */
.side-details p {
  font-weight: 600;
  color: #141313;
  font-size: 1.7rem;
  margin: 15rem 2rem;
}

/* Styling the submit details form container */
.submit-details-form-container {
  padding: 2rem;
  text-align: center;
}

/* Styling the big heading */
.big-heading {
  font-weight: 700;
  font-size: 2rem;
  color: #86a4e7;
  margin-top: 1.5rem;
}

/* Styling the social media links */
.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling the social media link elements */
.social-media a {
  color: #1c4fc3;
  text-decoration: none;
  border-radius: 50%;
  display: inline-flex;
  margin: 1rem;
  font-size: x-large;
  padding: 1%;
}

/* Styling the progress bar section */
.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3% 0;
}

/* Styling the progress bar stages */
.progress-bar .stage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  flex-direction: column;
}

/* Styling the progress bar tooltips */
.progress-bar .tool-tip {
  color: #1c4fc3;
  font-weight: 600;
}

/* Styling the stage numbers in the progress bar */
.stageno {
  padding: 2% 7%;
  border-radius: 50%;
  background-color: #f5f5f9;
}

/* Styling specific stage numbers in the progress bar */
.stageno-1,
.stageno-2,
.stageno-3,
.stageno-4,
.stageno-5 {
  padding: 3px 8px;
}

/* Styling the button container */
.button-container {
  display: flex;
  align-items: center;
  margin: 4% 0;
}

/* Styling text fields for input */
.text-fields {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 1.2%;
  margin: 0 2%;
  width: 46%;
  border: 1px solid;
  border-radius: 0.5em;
  color: #84848d;
}

/* Styling input elements */
input {
  border: none;
  outline: none;
  background: inherit;
  color: #84848d;
  width: 200%;
  margin-left: 4%;
  font-size: 1rem;
}

/* Styling date input and placeholder */
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-year-field,
input::placeholder {
  color: #84848d;
}

/* Styling date input calendar picker indicator */
input[type="date"]::-webkit-calendar-picker-indicator {
  color: rgba(0, 0, 0, 0);
  opacity: 1;
  display: block;
  background: url("../images/bx-cake.svg") no-repeat;
  height: 20px;
  width: 20px;
}

/* Styling text fields with labels */
.text-fields.fname:after {
  content: "First name";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -180px;
  width: 302px;
  color: #696cff;
  top: -28px;
}

.text-fields.lname:after {
  content: "Last name";

  background-color: #fff;

  position: relative;

  padding: 0 4%;

  left: -180px;
  width: 302px;

  color: #696cff;

  top: -28px;
}
.text-fields.dob:after {
  content: "Date of birth";
  background-color: #fff;
  position: relative;
  padding: 0 2%;
  left: -168px;
  width: 370px;
  color: #696cff;
  top: -28px;
}

/* Styling specific text field for email */
.text-fields.email {
  font-size: 1rem;
  width: 96%;
}

.text-fields.email:after {
  content: "Email";
  background-color: #fff;
  position: relative;
  padding: 0 2%;
  left: -602px;
  width: 120px;
  color: #696cff;
  top: -28px;
}

/* Styling text field for date of birth */
.text-fields.dob {
  margin: 4% 0;
  position: relative;
  left: 12px;
}

.text-fields.dob input {
  text-align: center;
  padding-left: 35px;
}

/* Styling field heading */
.field-heading {
  color: #696cff;
  width: 35%;
}

/* Styling next page and previous page buttons */
.nextPage,
.previousPage {
  background-color: #8789ff;
  color: #fff;
  width: 30%;
  cursor: pointer;
  padding: 2%;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 2rem;
  border: none;
  outline: none;
}

.nextPage:hover,
.previousPage:hover {
  background-color: #696cff;
}

/* Styling for hidden elements */
.hidden {
  display: none;
}

/* Styling for dropdown menu */
.dropdown {
  min-width: 15em;
  position: relative;
  margin-left: 15px;
  margin-top: 20px;
  width: 46%;
}

/* Styling for dropdown menu */
.dropdown * {
  box-sizing: border-box;
}

/* Styling for dropdown label */
.dropdown:after {
  content: "Degree";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -83px;
  width: 370px;
  color: #696cff;
  top: -60px;
}

/* Styling for button details */
.btn-details {
  background: #fff;
  color: #84848d;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid;
  border-radius: 0.5em;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

/* Styling for selected dropdown option */
.select-clicked {
  border: 2px #26489a solid;
  box-shadow: 0 0 0.8em #26489a;
}

.btn-details:hover {
  background: #a8a8a8;
  color: #fff;
}

/* Styling for dropdown caret */
.caret {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #84848d;
  transition: 0.3s;
}

/* Styling for rotated dropdown caret */
.caret-rotate {
  transform: rotate(180deg);
}

/* Styling for menu list */
.menu {
  list-style: none;
  padding: 0.2em 0.5em;
  background: #84848d;
  border: 1px #617bb4 solid;
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
  border-radius: 0.5em;
  color: #ccc;
  position: absolute;
  top: 3em;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  opacity: 0;
  display: none;
  transition: 0.2s;
  z-index: 1;
}

/* Styling for menu list items */
.menu li {
  padding: 0.7em 0.5em;
  margin: 0.3em 0;
  border-radius: 0.5em;
  cursor: pointer;
}

.menu li:hover {
  background: #2a2d35;
}

/* Styling for open menu */
.menu-open {
  display: block;
  opacity: 1;
}

/* Styling for input field with label "Institution" */
.text-fields.iName {
  margin-left: 30px;
  background: #fff;
  color: #84848d;
  border: 1px solid;
  border-radius: 0.5em;
  padding: 10px;
}

.text-fields.iName:after {
  content: "Institution";
  background-color: #fff;
  position: relative;
  left: -178px;
  width: 370px;
  color: #696cff;
  top: -30px;
}

/* Styling for specialization and experience input fields */
.specialization,
.wExp {
  margin-top: -1rem;
  background: #fff;
  color: #84848d;
  border: 1px solid;
  border-radius: 0.5em;
  padding: 12px;
}

/* Styling for textarea element */
textarea {
  border: none;
  width: 100%;
  resize: none;
}

.text-fields.specialization:after {
  content: "Specialization";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -150px;
  width: 370px;
  color: #696cff;
  top: -30px;
}

.text-fields.wExp::after {
  content: "Experience";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -180px;
  width: 80px;
  color: #696cff;
  top: -78px;
}

/* Styling for additional input fields */
.cInstiName,
.appCountry,
.pos,
.goal {
  margin: 1rem;
}

/* Styling for "about" input field */
input[name="about"] {
  margin: 3px;
}

.text-fields.cInstiName:after {
  content: "Institute";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -195px;
  width: 200px;
  color: #696cff;
  top: -28px;
}
.text-fields.appCountry:after {
  content: "Country";
  background-color: #fff;
  position: relative;
  padding: 0 2%;
  left: -180px;
  width: 340px;
  color: #696cff;
  top: -28px;
}
.text-fields.pos:after {
  content: "Program";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -200px;
  width: 62px;
  color: #696cff;
  top: -28px;
}
.text-fields.goal:after {
  content: "Goals";
  background-color: #fff;
  position: relative;
  padding: 0;
  left: -190px;
  width: 320px;
  color: #696cff;
  top: -28px;
}

/* Styling for language proficiency input fields */
.listen,
.speak,
.read,
.write {
  margin: 1rem;
}

.text-fields.listen:after {
  content: "Listen";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -200px;
  width: 280px;
  color: #696cff;
  top: -28px;
}

.text-fields.read:after {
  content: "Read";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -200px;
  width: 280px;
  color: #696cff;
  top: -28px;
}

.text-fields.speak:after {
  content: "Speak";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -200px;
  width: 280px;
  color: #696cff;
  top: -28px;
}

.text-fields.write:after {
  content: "Write";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -200px;
  width: 280px;
  color: #696cff;
  top: -28px;
}

/* Styling for radio button questions */
.radioQuestion1,
.radioQuestion2 {
  color: #696cff;
}

/* Styling for radio buttons */
.radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 10px;
}

/* Styling for radio input */
.radio__input {
  display: none;
}

/* Styling for radio button circle */
.radio__radio {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #d8e4e2;
  border-radius: 50%;
  margin-right: 10px;
  box-sizing: border-box;
  padding: 2px;
}

.radio__radio::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: #617bb4;
  border-radius: 50%;

  transform: scale(0);
  transition: transform 0.15s;
}

/* Styling for checked radio button circle */
.radio__input:checked + .radio__radio::after {
  transform: scale(1);
}

.tuifee {
  margin-left: 6%;
}

.gicfee {
  margin-left: 5%;
}

/* Styling for checked radio button circle */
.radiobtn,
.tuifee,
.gicfee {
  margin: 1rem;
  padding: 0.5rem;
}

.radiobtn {
  width: 100%;
}

.text-fields.tuifee:after {
  content: "Tuition Fees";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -180px;
  width: 400px;
  color: #696cff;
  top: -28px;
}
.text-fields.gicfee:after {
  content: "GIC Fees";
  background-color: #fff;
  position: relative;
  padding: 0 4%;
  left: -180px;
  width: 380px;
  color: #696cff;
  top: -28px;
}

/* Styling for popup container */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 9999;

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  transition: opacity 0.3s ease-in-out;
}

/* Styling for popup content */
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #696cff;
  color: #f5f5f9;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

/* Styling for popup close button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* -----------MEDIA QUERY----------------------- */
/* Adjust container width for larger laptop screens */
@media (max-width: 1440px) {
  .container {
    width: 95%;
  }
}

/* Responsive layout adjustments for smaller laptop screens */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .register-link {
    background-image: url(../images/Map_illustration_landscape.png);
    width: 100%;
    height: 100%;
  }
  .registration-form-content {
    width: 100%;
  }

  .logo img {
    width: 18rem;
  }

  .side-details p {
    font-size: 2.2rem;
    text-align: center;
    margin-top: 20rem;
  }

  .submit-details-form-container {
    padding-top: 0;
  }
}

/* Responsive layout adjustments for tablets */
@media (max-width: 768px) {
  .register-link {
    padding-bottom: 0;
  }

  .logo img {
    width: 10.5rem;
  }

  .side-details p {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 15rem;
    padding-bottom: 0;
  }

  .big-heading {
    font-size: 1.7rem;
    margin-top: 0;
  }
  .progress-bar {
    margin: 0.6rem 0;
    font-size: 1.1rem;
  }

  input {
    margin-left: 2%;
    font-size: 0.9rem;
  }

  .text-fields.fname:after,
  .text-fields.lname:after {
    left: -160px;
  }

  .text-fields.email:after {
    left: -530px;
  }

  .text-fields.dob:after {
    left: -150px;
    width: 400px;
  }

  .dropdown:after {
    left: -85px;
  }

  .text-fields.specialization:after {
    left: -140px;
  }
  .text-fields.iName:after {
    padding: 0 2%;
  }
}

/* Responsive layout adjustments for phone screens */
@media (max-width: 430px) {
  .register-link {
    background-image: url(../images/Map_illustration_portrait.png);
  }

  .logo img {
    width: 8.5rem;
    padding: 10px;
  }

  .side-details p {
    font-size: 1rem;
    margin-top: 13rem;
    padding-bottom: 50px;
  }

  .big-heading {
    font-size: 1.7rem;
    margin-top: 0;
  }

  .text-fields,
  textarea {
    margin: 1rem 0;
    width: fit-content;
  }

  .progress-bar .tool-tip {
    display: none;
  }

  .progress-bar.stageno {
    margin: 0.6rem;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .text-fields.fname,
  .text-fields.lname {
    padding: 5px;
  }

  .text-fields.email {
    margin: -3px -0.4px;
    width: 100%;
    padding: 5px;
  }
  .text-fields.email:after {
    left: -207px;
  }

  .text-fields.dob {
    width: 21.2rem;
    margin: 30px -0.7rem;
    padding: 5.5px;
  }

  .text-fields.dob:after {
    left: -150px;
  }

  .dropdown {
    width: 95.6%;
  }

  .dropdown:after {
    left: -97px;
  }

  .text-fields.iName,
  .text-fields.specialization,
  .text-fields.wExp {
    width: 20.5rem;
    margin-left: 14px;
  }

  .text-fields.specialization::after {
    left: -152px;
  }

  .text-fields.wExp::after {
    top: -93px;
  }

  .text-fields.appCountry,
  .text-fields.pos {
    width: 100%;
  }

  .text-fields.pos {
    margin-top: 4px;
  }

  .text-fields.goal:after {
    width: 150px;
    left: -220px;
  }

  .text-fields.listen:after,
  .text-fields.read:after,
  .text-fields.speak:after,
  .text-fields.write:after {
    width: 150px;
    left: -220px;
    top: -22px;
  }

  .text-fields.speak {
    margin-top: 4px;
  }

  .text-fields.tuifee,
  .text-fields.gicfee {
    width: 100%;
    margin: 1.5rem -2rem;
  }

  .radiobtn {
    margin-top: 0;
  }
}

/* Responsive layout adjustments for smaller screens */
@media (max-width: 380px) {
  .side-details p {
    margin-top: 10rem;
  }

  .text-fields.dob {
    width: 20.3rem;
  }

  .dropdown,
  .text-fields.text-fields.iName,
  .text-fields.specialization,
  .text-fields.wExp {
    margin-right: 8px;
  }

  .text-fields.cInstiName,
  .text-fields.appCountry,
  .text-fields.pos,
  .text-fields.goal {
    width: 95%;
  }

  .text-fields.listen:after,
  .text-fields.read:after,
  .text-fields.speak:after,
  .text-fields.write:after {
    left: -210px;
  }

  .text-fields.tuifee,
  .text-fields.gicfee {
    width: 90%;
  }
}

/* Responsive layout adjustments for even smaller screens */
@media (max-width: 325px) {
  .logo img {
    width: 8rem;
  }

  .side-details p {
    font-size: 0.9rem;
    margin: 13.5rem 2rem;
    margin-top: 8rem;
    padding-bottom: 0;
  }

  .big-heading {
    font-size: 1.2rem;
    margin: 1.2rem 0;
  }

  .progress-bar {
    font-size: 0.9rem;
  }

  input {
    font-size: 0.75rem;
  }

  .text-fields.fname,
  .text-fields.lname,
  .text-fields.dob {
    width: 18rem;
  }

  .text-fields.fname:after,
  .text-fields.lname:after {
    width: 19rem;
    font-size: 0.8rem;
    top: -20px;
  }

  input[type="email"] {
    font-size: 0.68rem;
  }

  .text-fields.email::after {
    font-size: 0.72rem;
    width: auto;
    top: -20px;
  }

  .text-fields.dob:after {
    font-size: 0.8rem;
    top: -20px;
  }

  .dropdown,
  .text-fields.text-fields.iName,
  .text-fields.specialization,
  .text-fields.wExp {
    width: 70%;
  }

  textarea {
    padding: 0;
    margin: 0;
    font-size: 0.72rem;
  }

  .selected {
    font-size: 0.8rem;
  }

  .dropdown::after,
  .text-fields.iName::after,
  .text-fields.specialization::after,
  .text-fields.wExp::after {
    font-size: 0.8rem;
  }

  .text-fields.iName:after {
    left: -180px;
    width: auto;
  }

  .text-fields.wExp::after {
    top: -65px;
    left: -170px;
  }
  .text-fields.cInstiName,
  .text-fields.appCountry,
  .text-fields.pos,
  .text-fields.goal {
    width: 82%;
  }

  .text-fields.cInstiName::after,
  .text-fields.appCountry::after,
  .text-fields.pos::after,
  .text-fields.goal::after {
    font-size: 0.8rem;
    top: -22px;
  }

  .text-fields.appCountry::after {
    padding: 0;
  }

  .text-fields.listen:after,
  .text-fields.read:after,
  .text-fields.speak:after,
  .text-fields.write:after {
    font-size: 0.8rem;
  }

  .radioQuestion1,
  .radioQuestion2,
  label.radio {
    font-size: 0.9rem;
    padding-left: 1.2rem;
  }

  .text-fields.tuifee,
  .text-fields.gicfee {
    width: 80%;
  }

  .text-fields.gicfee:after,
  .text-fields.tuifee:after {
    font-size: 0.85rem;
  }

  input[type="button"] {
    font-size: 0.85rem;
  }
}
