* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;

}

body {
  display: flex;
  flex-direction: column;
}

a {
  list-style: none;
  all: unset;
  cursor: pointer;
}

main {
  flex: 1;
}

/* ================= HEADER ================= */
header {
  position: fixed;      
  top: 0;               
  left: 0;
  right: 0;
  z-index: 1000;        
  background: #fff;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.header-logo img {
  height: 45px;
  justify-content: center;
  display: flex;
}

.Login-button {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  padding: 5px 5px 5px 20px;
  gap: 5px; 
  align-items: center;
  justify-content: center;
  display: flex; 
  border-radius: 40px;
  color: #ffffff;
  background-color: #393185;
  border: 1px solid #393185;
  margin-top: 0px;
}

.Login-button img {
  height: 3rem;  
}

.Login-button:hover {
  background-color: transparent;
  color: #393185;
}

.user-menu {
  position: relative;
  display: inline-block;
  align-items: center;
  justify-content: center;
  display: flex;
}

.user-icon {
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
  align-items: center;
  justify-content: center;
  display: flex;
}

.user-avatar {
  height: 45px;
  border-radius: 50%;
}

.dropdown-menu {
  position: absolute;
  top: 105%;
  right: 0;
  background: white;  
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-menu:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  margin-top: 0px ;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item img {
  width: 25px;
  height: 25px;
  margin-right: 8px;
}

.dropdown-form {
  margin: 0;
  padding: 0;
}

.logout-btn {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:only-child {
  border-radius: 8px;
}

/* HEADER Responsive */
@media (max-width: 768px) {
  header {
    padding: 20px 40px;
  }
  .header-logo img {
    height: 35px;
  }
  .user-avatar {
    height: 35px;
  }
  .Login-button {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0px 5px 0px 20px ;
  }
  .Login-button img {
    height: 45px;
  }
}

@media (max-width: 425px) {
  header {
    padding: 20px 20px;
  }
  .header-logo img {
    height: 25px;
  }
  .Login-button {
    font-size: 1rem;
    padding: 0px 0px 0px 10px ;
    gap: 3px;
  }
  .Login-button img {
    height: 30px;
  }
}

/* ================= FOOTER ================= */
.footer {
  background: #e7e1fa;
  color: #1e1e1e;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h4 {
  color: #393185;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.logo {
  width: 80px;
  margin-bottom: 10px;
}

.sub-logo {
  width: 180px;
  margin: 45px 0;
  margin-left: 10px;
}

.footer-section p {
  font-size: 1.2rem;
  line-height: normal;
}

.footer-section a {
  text-decoration: none;
}

.payments img {
  height: 30px;
  margin: 15px 5px 0 0;
}

.footer-bottom {
  padding: 15px 30px;
  border-top: 1px solid #ccc;
  text-align: center;
  background: #393185;
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  margin: 0 8px;
}

.company {
  max-width: 40%;
}
.website {
  max-width: 15%;
}
.contact {
  max-width: 15%;
}
.address {
  max-width: 25%;
}

/* FOOTER Responsive */
@media (max-width: 768px) {
  .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 17px;
  }
  .company {
    max-width: 100%;
  }
  .website {
    max-width: 100%;
  }
  .contact {
    max-width: 100%;
  }
  .address {
    max-width: 100%;
  }
  .footer-section h4 {
    margin-bottom: 0px;
  }
  .footer-section {
    flex: 1 1 100%;
  }
  .payments {
    justify-content: center;
  }
}


/* MAIN REGISTER CONTAINER */
.login-register-main-container {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-wrapper {
  margin: 0px 40px;
  display: flex;
  flex-direction: row;
  width: 1200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 20px;
}

/* LEFT FORM SECTION */
.form-section {
  flex: 1 1 400px;
  background: #F4F6FB;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px 0px 0px 20px;
}

.logo {
  width: 70px;
  margin-bottom: 15px;
}

.project-logo {
  width: 180px;
  margin-bottom: 30px;
}

h2 {
  color: #393185;
  margin-bottom: 20px;
  font-size: 2.3rem;
}

/* FORM STYLING */
.register-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.register-form input,
.register-form select {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-top: 10px;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.phone-input input {
  flex: 1;
}

/* BUTTON */
.register-form-button {
  background-color: #393185;
  color: white;
  padding: 12px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register-form-button:hover {
  background-color: #DDDAFF;
  color: #393185;
}

/* RIGHT IMAGE SECTION */
.image-section {
  flex: 1 1 400px;
  background: url('../../../../frontend/assets/images/landing-page-img.png') center/cover no-repeat;
  position: relative;
  min-height: 300px;
  border-radius: 0px 20px 20px 0px;
}

/* REGISTER FOOTER LINK */
.register {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
}

.register a {
  color: #0066ff;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .form-section {
    padding: 30px 20px;
  }
  .register-form {
    max-width: 100%;
  }
  h2 {
    font-size: 22px;
  }
  .project-logo {
    width: 160px;
  }
}

@media (max-width: 425px) {
  .register-wrapper {
    flex-direction: column;
    height: auto;
  }
  .image-section {
    display: none;
  }
}


/*otp*/

/* Container */
.login-register-main-container {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-wrapper {
  margin: 0px 40px;
  display: flex;
  flex-direction: row;
  width: 1200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 20px;
}

/* Left Section */
.form-section {
  flex: 1 1 400px;
  background: #F4F6FB;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px 0px 0px 20px;
}
.form-section h2 {
  color: #393185;
  margin-bottom: 20px;
  font-size: 2.3rem;
}
.form-section p {
  text-align: center;
  margin-bottom: 5px;
  line-height: 1.4rem;
}

/* OTP inputs */
.mobile-update {
  font-size: 1.2rem;
}

.otp-inputs {
  width: 280px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.otp-inputs input {
  width: 55px;
  height: 55px;
  font-size: 1.5rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.otp-inputs input:focus {
  border-color: #393185;
  box-shadow: 0 0 6px rgba(57, 49, 133, 0.4);
}

/* Buttons */
.otp-form-button {
  width: 280px;
  background-color: #393185;
  color: white;
  padding: 12px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.otp-form-button:hover {
  background-color: #DDDAFF;
  color: #393185;
}

/* Timer */
.timer {
  margin: 5px;
  font-size: 0.9rem;
  color:#4D4E4E;
}

/* Right Section (Image) */
.image-section {
  flex: 1 1 400px;
  background: url('../../../../frontend/assets/images/landing-page-img.png') center/cover no-repeat;
  position: relative;
  min-height: 300px;
  border-radius: 0px 20px 20px 0px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 0px 20px 20px 0px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-section {
    padding: 30px 20px;
  }
  h2 {
    font-size: 22px;
  }
}

@media (max-width: 425px) {
  .register-wrapper {
    flex-direction: column;
    height: auto;
  }
  .image-section {
    display: none;
  }
}



/*company profile */

    .headerdiv {
      background: #393185;
      color: #fff;
      padding: 15px 30px;
      font-size: 30px;
      font-weight: bold;
      margin-top: 85.8px;
      text-align: center;
    }
    .alert {
      background: #fbe9e9;
      color: #d32f2f;
      padding: 10px;
      margin: 20px auto;
      border: 1px solid #f5c2c2;
      text-align: center;
      width: 80%;
      border-radius: 5px;
      font-size: 14px;
    }
    .containers {
      background: #fff;
      width: 80%;
      max-width: 900px;
      margin: 20px auto;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    form {
      display: flex;
      flex-direction: column;
    }
    label {
      font-weight: 600;
      margin-bottom: 5px;
      display: block;
    }
    input, select, textarea {
      width: 100%;
      padding: 10px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 14px;
    }
    textarea {
      resize: vertical;
      min-height: 100px;
    }
    .row {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }
    .col {
      flex: 1;
      min-width: 220px;
    }
    .file-input {
      margin-bottom: 20px;
    }
    .btn {
      background: #393185;
      color: #fff;
      border: none;
      padding: 12px;
      font-size: 20px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      width: 50%;
      align-self: flex-start;
      margin: auto;
    }
    .btn:hover {
      background: #DDDAFF;
      color: #393185;
    }
  /* Responsive */
@media (max-width: 768px) {
  .headerdiv {
    margin-top: 75.8px;
    font-size: 25px;
  }
}

@media (max-width: 425px) {
  .headerdiv {
    font-size: 20px;
  }
}



  /* popup */
  .success-card {
  margin:auto;
  margin-top: 150px;
  margin-bottom: 50px;  
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  background: #000;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DDDAFF;
}

.checkmark-icon {
  color: #3b3086;
  font-size: 32px;
  line-height: 1;
}

.success-card h2 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: #3b3086;
  margin-bottom: 12px;
}

.success-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 28px;
}

.confirm-btn {
  background-color: #3b3086;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
}

.confirm-btn:hover {
  background-color: #DDDAFF;
  color: #3b3086;
}

/* Responsive tweaks */
@media (max-width: 425px) {
  .success-card {
    padding: 30px 20px;
    max-width: 350px;
  }

  .success-card h2 {
    font-size: 1rem;
  }

  .success-card p {
    font-size: 0.875rem;
  }

  .confirm-btn {
    font-size: 0.875rem;
    padding: 10px 20px;
  }
}

@media (max-width: 375px) {
  .success-card {
    max-width: 270px;
  }
}

/*quvary page */
    .Queries-container {
        background: #fff;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-width: 1200px;
        margin: 150px auto;
        margin-bottom: 50px;

    }

    .Queries-container h2 {
        font-size: 22px;
        font-weight: 600;
        color: #333;
    }

    select.form-control {
        padding: 8px;
        font-size: 14px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    .table-custom {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }

    .table-custom th, .table-custom td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: left;
        font-size: 14px;
    }

    .table-custom th {
        background: #393185;
        font-weight: 600;
        color: white;
    }

    .table-custom tr:nth-child(even) {
        background: #fafafa;
    }

    .table-custom a {
        color: #393185;
        text-decoration: none;
        font-weight: 500;
    }

    .table-custom a:hover {
        text-decoration: underline;
    }

    /*quvary show page */

    .details-wrapper {
      max-width: 1200px;
      margin: 150px auto;
      margin-bottom: 50px;
      padding: 0 15px;
    }

    .details-card {
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      overflow: hidden;
    }

    .details-header {
      background: #393185;
      padding: 20px 30px;
      color: #fff;
      text-align: center;
    }

    .details-header h3 {
      margin: 0;
      font-weight: 600;
      font-size: 1.4rem;
    }

    .details-body {
      padding: 25px 30px;
    }

    .info-grid {
      display: grid;
      grid-template-columns: 1fr 2fr;
      row-gap: 15px;
      column-gap: 20px;
    }

    .info-label {
      font-weight: 600;
      color: #333;
    }

    .info-value {
      color: #555;
      word-break: break-word;
    }

    .info-value a {
      color: #0d6efd;
      text-decoration: none;
    }

    .info-value a:hover {
      text-decoration: underline;
    }

    .docs-section {
      margin-top: 30px;
    }

    .docs-section h5 {
      font-weight: 600;
      font-size: 20px;
      color: #393185;
      margin-bottom: 15px;
    }

    .doc-item {
      background: #f8f9fa;
      padding: 12px 15px;
      border-radius: 8px;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background 0.3s;
      flex-wrap: wrap;
      gap: 10px;
    }

    .doc-item:hover {
      background: #eef3ff;
    }

    .details-footer {
      background: #fafafa;
      padding: 15px 30px;
      text-align: center;
      display: flex;
      gap: 25%;
    }

    .view-button {
      background-color: #393185;
      color: white;
      padding: 6px;
      border-radius: 3px;
    }

    .view-buttons {
      background-color: #393185;
      color: white;
      width: 100%;
      padding: 10px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 14px;
    }

    /* ✅ Responsive Design */
    @media (max-width: 425px) {
      .info-grid {
        grid-template-columns: 1fr;
      }
      .details-body {
        padding: 20px;
      }
      .details-header {
        padding: 15px 20px;
      }
      .details-header h3 {
        font-size: 1.2rem;
      }
      .doc-item {
        flex-direction: column;
        align-items: flex-start;
      }
      .details-footer {
        text-align: center;
      }
    }