* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #eaf3fc;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 20px;
}

.logo {
  display: block;
  margin: 0 auto -20px auto;
  width: 400px;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 105, 180, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all .5s ease;
}

.main-heading {
  text-align: center;
  font-size: 26px;
  color: #004080;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #527ba0;
}

.subtitle a {
  font-size: 16px;
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.form-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-section {
  flex: 1;
  background-color: #f0f6fd;
  border: 1px solid #cce0f5;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section h3 {
  font-size: 18px;
  color: #003366;
  margin-bottom: 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #99c2f2;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  outline: none;
}

input:focus {
  outline: none;
  border: 1px solid #0066cc;
}

select {
  background-color: #fff;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}

.submit {
  background-color: #0066cc;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.submit:hover {
  background-color: #004d99;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
}

.eye-icon {
  position: absolute;
  right: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  color: #0066cc;
}

.captcha-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-image {
  height: 50px;
  border-radius: 6px;
  border: 1px solid #99c2f2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.captcha-refresh-btn {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-refresh-btn:hover {
  background-color: #004d99;
}

.captcha-refresh-btn i {
  font-size: 18px;
  transition: transform 0.5s ease;
}

.rotate-once {
  animation: rotate 0.3s ease-in-out;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

.login-link {
  text-align: center;
  font-size: 18px;
}

.login-link a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

.tc_btn{
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}

/* Email Verification Notice */
.email-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 193, 7, 0.12);
    border-left: 4px solid #ffc107;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    /* margin: 18px 0; */
}

.email-note i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 2px;
}

.email-note p {
    margin: 0;
    line-height: 1.5;
}

.email-note strong {
    color: #000;
}


/* terms and conditions and privacy policies modal css */


.legal-modal-container{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.111);
  opacity: 0;
  transition: all .3s ease;
  z-index: -1;
}

.legal-modal{
  position: fixed;
  background-color: white;
  top: 50%;
  left: 50%;
  margin: 20px;
  padding: 10px 20px;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 90%;
  display: none;
  justify-content: center;
  align-items: center;
  border: 2px solid blue;
  border-radius: 10px;
}

.legal-modal .header-place{
  width: 100%;
  height: 60px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0056b3;
}

.legal-modal .container{
  overflow-y: scroll;
  max-height: 80%;
}

.legal-modal .container h1,
.legal-modal .container h2,
.legal-modal .container h3 {
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 20px;
}

.legal-modal .container h2 {
    font-size: 2rem;
    margin-top: 30px;
}

.legal-modal .container h3 {
    font-size: 1.5rem;
    margin-top: 20px;
}

.legal-modal .container p {
    font-size: 1.1rem;
    margin: 20px 10px;
    line-height: 1.8;
}

.legal-modal .container ul {
    list-style: disc;
    margin-left: 20px;
}

.legal-modal .container li {
    margin-bottom: 10px;
}

/* Links */
.legal-modal .container a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-modal .container a:hover {
    color: #003b75;
}

@media (max-width: 768px) {

    .legal-modal {
        width: 90%;
        height: 90%;
        margin: 0 auto;
        padding: 10px
    }
    
    .legal-modal .header-place {
        height: 9%;
    }

    .header-place h1 {
        font-size: 1.7rem;
    }

    .legal-modal .container {
        width: 95%;
        padding: 15px;
        margin: 20px auto;
        height: 75%;
    }

    .legal-modal .container h1 {
        font-size: 2rem;
    }

    .legal-modal .container h2 {
        font-size: 1.5rem;
    }

    .legal-modal .container h3 {
        font-size: 1.2rem;
    }

    .legal-modal .container p {
        font-size: 1rem;
    }

    .legal-modal .footer-place {
        height: 6%;
    }
}

.legal-modal .footer-place{
  width: 100%;
  height: 60px;
  margin-top: 10px;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.legal-modal .accept-btn{
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  float: right;
  width: 100px;
  transition: all 0.3s ease;
}

.legal-modal .accept-btn:hover{
  background-color: #004d99;
}


/* Blur and disable background when modal is active */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Dark overlay */
  backdrop-filter: blur(5px);
  /* Optional blur effect */
  display: none;
  z-index: 1;
}

/* Modal box */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  width: 300px;
  height: auto;
  text-align: center;
}

.modal img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.modal .fs {
  color: #006aff !important;
  font-size: 18px;
  margin: 5px 0;

}

.modal p {
  font-size: 18px;
}

.modal button {
  padding: 10px 20px;
  background: rgb(0, 106, 255);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 15px;
}

/* loading animation css */

.loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.111);
  opacity: 0;
  transition: all .3s ease;
  z-index: -1;
}

.loading-wrapper .loading {
  width: 50px;
  height: 50px;
  /* border: 5px solid #f3f3f3; */
  border-top: 5px solid #0099ff;
  border-radius: 50%;
  animation: spin .5s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive for smaller screens */
@media (max-width: 768px) {

  .container {
    padding: 15px 10px;
  }

  .form-card {
    padding: 25px 15px;
    box-shadow: 0 10px 30px rgba(0, 105, 180, 0.374);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-flex {
    flex-direction: column;
  }

  .logo {
    width: 290px;
    margin: auto;
  }
}