/* General form styling */
form {
    max-width: 400px; /* Set a maximum width for the form */
    margin: 0 auto; /* Center-align the form */
    text-align: center; /* Center-align form content */
}

h2 {
    font-size: 1.8rem; /* Heading size */
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center; /* Center-align heading */
    color: #333;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1rem; /* Reduced margin */
    text-align: center; /* Center-align form group */
}

label {
    font-weight: bold;
    font-size: 1rem; /* Label font size */
    margin-bottom: 0.5rem;
    display: block; /* Ensure labels are block elements */
}

/* Input and Textarea Styling */
input[type="text"], input[type="tel"], textarea {
    width: 100%; /* Keep input width relative to the form */
    padding: 10px;
    border-radius: 6px; /* Rounded corners */
    border: 1px solid #ddd; /* Light border */
    font-size: 0.9rem;
    box-sizing: border-box;
    text-align: center; /* Center-align input text */
    margin-top: 5px; /* Spacing from the label */
}

input[type="text"]:focus, input[type="tel"]:focus, textarea:focus {
    border-color: var(--theme-color); /* Focus border color */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Subtle shadow on focus */
}

/* Button Styling */
.btn {
    padding: 10px 18px; /* Button padding */
    font-size: 0.9rem; /* Font size */
    font-weight: bold;
    border-radius: 6px; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
    display: block; /* Block-level buttons */
    width: 100%; /* Button spans form width */
    margin: 10px 0; /* Spacing between buttons */
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg,var(--theme-color), var(--theme-color));
    transform: translateY(-2px); /* Lift effect */
}

.btn-success {
    background: linear-gradient(135deg,var(--theme-color), var(--theme-color));
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: var(--theme-color);
    transform: translateY(-2px);
}

/* Selfie Image Styling */
#selfie-img {
    text-align: center; /* Center the container */
    margin: 1rem 0; /* Space around the image */
}/* General form styling */
form {
    max-width: 400px; /* Set a maximum width for the form */
    margin: 0 auto; /* Center-align the form */
    text-align: center; /* Center-align form content */
    padding: 15px; /* Add padding around the form */
    border: 1px solid #ddd; /* Light border for form */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: #f9f9f9; /* Light background color */
}

h2 {
    font-size: 1.8rem; /* Heading size */
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center; /* Center-align heading */
    color: #333; /* Darker heading color */
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1rem; /* Reduced margin */
    text-align: center; /* Center-align form group */
}

label {
    font-weight: bold;
    font-size: 1rem; /* Label font size */
    margin-bottom: 0.5rem;
    display: block; /* Ensure labels are block elements */
    color: #555; /* Softer text color */
}

/* Input and Textarea Styling */
input[type="text"], input[type="tel"], textarea {
    width: 100%; /* Keep input width relative to the form */
    padding: 10px;
    border-radius: 6px; /* Rounded corners */
    border: 1px solid #ddd; /* Light border */
    font-size: 0.9rem;
    box-sizing: border-box;
    text-align: center; /* Center-align input text */
    margin-top: 5px; /* Spacing from the label */
}

input[type="text"]:focus, input[type="tel"]:focus, textarea:focus {
    border-color: var(--theme-color); /* Focus border color */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Subtle shadow on focus */
}

/* Button Styling */
.btn {
    padding: 10px 18px; /* Button padding */
    font-size: 0.9rem; /* Font size */
    font-weight: bold;
    border-radius: 6px; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
    display: block; /* Block-level buttons */
    width: 100%; /* Button spans form width */
    margin: 10px 0; /* Spacing between buttons */
}

.btn-primary {
    background-color: var(--theme-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--theme-color);
    transform: translateY(-2px); /* Lift effect */
}

.btn-success {
    background-color: var(--theme-color);
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: var(--theme-color);
    transform: translateY(-2px);
}

/* Selfie Image and Video Styling */
#selfie-img,
#canvas {
    display: none;
    margin-top: 10px;
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Circular shape */
    border: 2px solid #007bff;
    object-fit: cover; /* Ensure proper fit within the circle */
}

#video {
    display: none;
    margin-top: 10px;
    width: 70%; /* Ensure responsive video size */
    height: auto;
}

#capture-again {
    display: none;
    margin-top: 10px;
}

/* Centering Flexbox */
.form-group.text-center {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center align items horizontally */
    justify-content: center; /* Center align items vertically */
    text-align: center; /* Ensure text is centered */
}

/* Responsive Styling */
@media (max-width: 576px) {
    form {
        padding: 15px; /* Add padding for smaller screens */
    }

    h2 {
        font-size: 1.5rem; /* Smaller heading size */
        margin-bottom: 1rem;
    }

    .btn {
        font-size: 0.85rem; /* Smaller button size */
        padding: 8px 15px;
    }

    #selfie-img,
    #canvas {
        width: 80px; /* Reduce size on smaller screens */
        height: 80px;
    }
}

@media (min-width: 577px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    #selfie-img,
    #canvas {
        width: 100px; /* Restore size for larger screens */
        height: 100px;
    }
}


#selfie-img {
    display: inline-block; /* Ensure the image remains inline */
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Circular shape */
    border: 2px solid #007bff;
    object-fit: cover; /* Ensure proper fit within the circle */
}
.text-danger {
    color: red; /* Ensure the asterisk is red */
}
/* Responsive Styling */
@media (max-width: 576px) {
    form {
        padding: 15px; /* Add some padding for smaller screens */
    }

    h2 {
        font-size: 1.5rem; /* Smaller heading size */
        margin-bottom: 1rem;
    }

    .btn {
        font-size: 0.85rem; /* Smaller button size */
        padding: 8px 15px;
    }

    #selfie-img {
        width: 80px; /* Reduce size on smaller screens */
        height: 80px;
    }
}

@media (min-width: 577px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    #selfie-img {
        width: 100px; /* Restore size for larger screens */
        height: 100px;
    }
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 50px; /* Set the size of your logo */
    height: auto;
}





/* General Reset */
body, h1, p, ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styling */
.main-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color));
    color: #fff;
    padding: 1px 0;
    text-align: center;
}

.site-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.nav-bar ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-bar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-bar ul li a:hover {
    color: #ffcc00;
}

/* Main Content */
.main-content {
    flex: 1; /* Ensures main content takes up available space */
    padding: 20px 0;
}

/* Footer Styling */
.main-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: auto; /* Pushes footer to the bottom */
}

.main-footer p {
    margin: 5px 0;
}

.main-footer a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer a:hover {
    color: #fff;
}

/* Heading Styling */
.section-heading {
    font-size: 2rem;
    font-weight: bold;
    color: var(--theme-color); /* Theme color */
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Description Styling */
.description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}





/* Flash msg */
 /* Common styles for flash message container */
 .error {
    margin-top: 20px;
    padding: 10px; /* Adjust padding to make it more compact */
    border-radius: 5px; /* Rounded corners for the box */
    font-size: 16px;
    background-color: transparent; /* Remove background color */
    width: 80%; /* Adjust the width (80% of the parent container) */
    max-width: 500px; /* Set a maximum width to prevent it from becoming too large */
    margin-left: auto; /* Auto margin on left */
    margin-right: auto; /* Auto margin on right to center the box */
}

/* Success message style */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    padding: 10px 15px;
}

/* Warning message style */
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
    padding: 10px 15px;
}

/* Danger message style */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    padding: 10px 15px;
}

/* Additional styles for all messages inside the container */
.error p {
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* Padding and space between different messages */
.error p + p {
    margin-top: 10px;
}


/* Ensure both buttons are the same size */
.btn-equal {
    width: 100%; /* Make both buttons take up the same width in their container */
    max-width: 150px; /* Set a maximum width if needed */
}

/* Optional: If you want a margin between the buttons */
.d-flex {
    gap: 10px; /* Adjust the gap as needed */
}

.logout-icon {
    font-size: 1.5rem;
    color: var(--icon-color);
}