/* styles.css */

body {
    background-color: #f0ebf8;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0px !important;
}

.form-container {
    font-family: "Poppins", serif;
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
    border: 1px solid #cccccc69;
    border-radius: 8px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    background-color: #673ab7;
    height: 10px;
    width: 100%;
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
}

.form-title {
    color: #000;
    margin-bottom: 10px !important;
    font-weight: 500;
}

.form-description {
    font-size: 14px;
    margin-bottom: 9px !important;
    line-height: 1.5;
    color: #1e1e1e;
    text-transform: capitalize;
}

.verification-form {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #d9d9d9;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.form-label span {
    color: red;
}

.form-group p {
    margin-bottom: 10px !important;
    font-weight: 400;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 96%;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
}

.form-input-file {
    width: 100%;
}

.form-checkbox-group {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.form-checkbox-group input {
    filter: hue-rotate(45deg);
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

.fileUploadBox {
    border: 1px solid #dedede;
    border-radius: 5px;
    display: inline-block;
    padding: 6px 15px;
    color: #6d09d7;
    font-size: 13px;
    font-weight: 500;
}

#uploadedFiles {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 10px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}

.uploaded-file i {
    color: green;
    margin-right: 8px;
}

.uploaded-file span {
    flex: 1;
}

.uploaded-file button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.fileUploadBox i {
    margin-right: 3px;
}

.form-btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-submit {
    padding: 7px 20px;
    border-radius: 2px;
    background-color: #4caf50;
    color: #fff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
}

.form-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-submit:hover {
    background-color: #45a049;
}

.form-clear-btn {
    border-radius: 2px;
    background-color: transparent;
    color: red;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
}


/* modal css */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 15px !important;
    font-weight: 400;
}

.modal-content p {
    margin-bottom: 20px !important;
    font-weight: 600;
}

.modal-btn-group {
    display: flex;
    justify-content: center;
}

.modal-btn-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.modal-btn-group .send-btn {
    background-color: #4caf50;
    color: white;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.declaration-container {
    margin: 10px 0px;
}

.declaration-container label {
    font-size: 14px;
}

.declaration-checkbox {
    margin-right: 10px;
}

#captureModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}
#modalContent {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
video {
    width: 100%;
    max-width: 400px;
}
canvas, img {
    display: none;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

.camera-btn {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.camera-btn:hover {
    background-color: #0056b3;
}



/* OTP Modal Styles */
.otp-modal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal Content */
.otp-modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: #000;
}

/* Heading */
.otp-modal-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

/* OTP Input Field */
.otp-modal-content input {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.otp-modal-content input:focus {
    border-color: #007bff;
}

/* OTP Button */
.otp-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.otp-btn:hover {
    background: #0056b3;
}

/* OTP Status Message */
#popupOtpStatus {
    margin-top: 10px;
    font-size: 14px;
    color: red;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    .form-title {
        font-size: 20px;
    }
    .form-description {
        font-size: 13px;
    }
    .form-input,
    .form-submit {
        font-size: 14px;
    }
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}