body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f8fa;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Optional centering if needed, otherwise remove if layout doesn't require it */
body.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-wrapper {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    overflow: auto;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 10px;
    width: 100%;
    max-height: 55%;
}

.form-group label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    width: 43%;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    width: 48%;
}

.form-group input[type="radio"] {
    margin-right: 8px;
    width: 48%;
}

.form-group select{
    width: 48%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
}

.radio-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-group label {
    font-weight: 600;
    color: #555;
}

.radio-options {
    display: flex;
    gap: 15px;
}

.form-actions {
    /* display: flex; */
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.summary-container {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; */
    margin-bottom: 20px;
}

.summary-group label {
    color: #555;
    font-weight: 600;
}
.mesg{
    color: red;
    font-size: small;
    text-align: justify;
    font-weight: bold;
}
/* General form styles remain the same */

.password-wrapper {
    position: relative;
    width: 46%;
    display: inline-block;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px; /* Enough space for the icon */
    box-sizing: border-box; /* Ensures padding doesn't reduce width */
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 10;
}

.password-wrapper .toggle-password i:hover {
    color: #555;
}

.user_view_div{
    width: fit-content;
    height: fit-content;
    padding: 10px;
    margin: 5px;
    border: 1px solid rgb(111, 167, 216);
    border-radius: 20px;
    /* font-size: 15px; */
    margin: 0 auto;
    
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px;
    }

    .summary-container {
        grid-template-columns: 1fr;
    }
}

.href{
    color: #0056b3;
    text-decoration: underline;
    cursor: pointer;
}

.center-al{
    text-align: center;
}

/* style for popup */
/* Modal Header */
.modal{
  /* margin-top: 100px; */
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  /* background-color: rgb(0,0,0);  */

}
.modal::before {
  height: 100%;
  width: 100%;
  /* background: rgba(0, 0, 0, 0.4); */
  position: fixed;
  content:'';
  left: 0;
  top: 0;
  z-index: -1;
}
.modal-header {
  padding: 2px 10px;
  background-color: #5cb85c;
  color: white;
}
  
/* Modal Body */
.modal-body {
  padding: 2px 10px;
  overflow: auto;
}
  
/* Modal Footer */
.modal-footer {
  padding: 2px 10px;
  background-color: #5e5cb8;
  color: white;
}
  
/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  height: 50%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
}
  
/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.close-popup {
  margin: 10px 10px;
  color: rgb(140, 6, 6);
}

.close-icon {
  float: right;
}

/* Fullscreen overlay */
#loaderOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner style */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* password reset */
.login_part_2,.login_part_3,.login_part_4 {
    
    display: none;
}

.form-group-1 {
    margin-bottom: 10px;
    width: 100%;
}

.form-group-1 input[type="text"],
.form-group-1 input[type="email"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    width: 75%;
}

.password-container {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 20px;  
    padding: 8px;  
    font-size: 1rem;  
    border: 1px solid #ccc;  
    border-radius: 6px;  
}

.eye-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #555;
}

.mrg-top {
    margin-top: 55%;
}

.password-div {
    position: relative;
    display: inline-block;
    width: 48%; /* same width as inputs */
}

.password-div input {
    width: 100%;
    padding-right: 20px; /* make room for the eye icon */
}

.password-div .toggle-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1rem;
}

.password-div .toggle-eye:hover {
    color: #333;
}