
  /* Basic Reset and Styling */
  body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center; /* Changed from flex-end to center */
    height: 100vh;
    font-family: 'Segoe UI', 'Calibri', 'Arial', sans-serif;
    background-color: #f3f4f6;
}

/* Confirmation Element Container */
.confirmation-element {
    width: 230px;
    height: 60px;
    padding: 8px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Important for positioning the popup */
    z-index: 1; /* Ensure it stays below the popup */
    margin-top: 250px;
}

/* Left Side: Checkbox and Label */
.left-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container {
    position: relative;
    width: 20px; /* Slightly increased for better visibility */
    height: 20px;
}

.clickable-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #a9a9a9; 
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clickable-square.pulsing {
    animation: pulse 0.8s ease-out;
    border-color: #005a9e; /* Darker blue during pulse */
}

/* Keyframes for Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.5); /* Light blue shadow */
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 120, 212, 0.1); /* Faded light blue */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); /* No shadow */
    }
}

/* Checkbox Icon */
.checkbox-icon {
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.checkbox-icon.active {
    display: block;
}

/* Loading Spinner */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #0078d4; /* Light blue spinner */
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    background-color: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confirmation Checkmark */
.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 16px;
    transform: translate(-50%, -50%) rotate(45deg);
    border: solid #107c10; /* Fluent green for success */
    border-width: 0 3px 3px 0;
    display: none;
}

/* Label Styling */
.checkbox-label {
    font-size: 14px;
    color: #323130; /* Fluent UI text color */
    user-select: none;
    font-weight: 500;
}

/* Right Side: Logo and Links */
.right-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.logo-links img {
    width: 75px;
    height: auto;
    margin-top: -15px;
}

.links {
    display: flex;
    gap: 4px;
    font-size: 8px;
    color: #605e5c;
    position: absolute;
    bottom: 7px;
    right: 17px;
}

.links a {
    text-decoration: none;
    color: #605e5c;
}

.links .dot {
    color: #605e5c;
}

/* CAPTCHA Popup Window */
.captcha-popup {
    display: none; /* Hidden by default */
    position: absolute;
    width: 250px; /* Adjusted width */
    background-color: #ffffff;
    padding: 20px; /* Adjusted padding */
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Ensure it's above the confirmation element */
    bottom: 140%; /* Position above the confirmation element */
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Smooth animation */
}

/* When popup is shown */
.captcha-popup.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

/* Styling Inside CAPTCHA Popup */
.captcha-popup p {
    margin: 0px;
    color: #323130; /* Fluent UI text color */
    font-size: 14px;
}

.instruction-box {
    border: 1px solid #d3d3d3; /* Light grey border */
    padding: 8px;               /* Inner spacing */
    border-radius: 4px;         /* Slightly rounded corners */
    background-color: #f9f9f9;  /* Very light grey background */
    margin-bottom: 12px;        /* Space below the instruction box */
}

.captcha-popup img {
    display: block;
    width: 100%;
    max-width: 250px; /* Reduced width for smaller image */
    height: auto;
    margin: 0 auto 20px auto; /* Center the image and add bottom margin */
    border-radius: 4px;
}

/* Enhanced Input Field with Floating Placeholder Effect */
.input-container {
    position: relative;
    width: 100%;
    max-width: 200px; /* Reduced max-width for a shorter input */
    margin-bottom: 20px;
}

/* Basic input styling */
#captchaInput {
    width: 100%;
    padding: 12px 12px 12px 12px; /* Equal padding to align placeholder */
    font-size: 16px;
    border: 2px solid #a9a9a9; 
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #ffffff; /* White background */
    color: #323130; /* Fluent UI text color */
}

/* Focus state styling */
#captchaInput:focus {
    border-color: #a9a9a9; /* Darker blue on focus */
    box-shadow: none;
    background-color: #ffffff; /* Ensure background remains white on focus */
}

/* Label styling */
.input-container label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #605e5c;
    pointer-events: none;
    transition: 0.3s ease-in-out;
    background-color: #ffffff; /* White background to blend with input */
    padding: 0 5px;
}

/* Move the label to top left when input is focused or has content */
#captchaInput:focus + label,
#captchaInput:not(:placeholder-shown) + label {
    top: 0;
    left: 12px;
    font-size: 12px;
    color: #605e5c;
    background-color: #ffffff; /* Ensure background matches focused input */
}

/* Enhanced Submit Button */
.captcha-popup button {
    width: 100%;
    padding: 12px;
    background-color: #0078d4; /* Light blue for professionalism */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.captcha-popup button:hover {
    background-color: #005a9e; /* Darker blue on hover */
    box-shadow: 0 4px 6px rgba(0, 90, 158, 0.4);
}

/* Shake Animation for Error */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s;
}

/* Error Input Styling */
.error-input input {
    border-color: #a4262c; /* Red border */
}

.error-input label {
    color: #a4262c; /* Red label */
}

/* Apply shake to input-container */
.input-container.shake {
    animation: shake 0.3s;
}

/* Optional: Visual indicator for network/server errors */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.1);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.error-overlay.active {
    display: flex;
}

.error-overlay p {
    background-color: #fff;
    padding: 20px 30px;
    border: 1px solid #a4262c;
    border-radius: 4px;
    color: #a4262c;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Microsoft Fluent Design Style */

.right-side .links {
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    color: #212121;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.right-side .links a {
    text-decoration: none;
    color: inherit;
    margin: 0 0px;
}

.right-side .links .dot {
    margin: 0 0px;
    font-size: 10px;
    line-height: 1;
    color: #6e6e6e;
}
