body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    transform: scale(1.02);
    background-image: url("/static/test.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.header-logo {
    max-width: 200px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-page {
    width: 103%;
    max-width: 610px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    overflow-y: auto;
    padding: 15px;
}

.form-header {
    text-align: center;
    padding: 14px;
    background-color: #e9ecef;
    border-bottom: 1px solid #ddd;
}

.form-header h2 {
    margin: 0;
    font-size: 1.55rem;
    color: #333;
}

.form-header p {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

.form-container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: bold;
    color: #495057;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 5px;
    overflow: hidden;
}

.input-group i {
    padding: 8px;
    background-color: #f1f3f5;
    color: #6c757d;
    font-size: 1.1rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* CAPTCHA */
.captcha-image {
    margin-top: 12px;
    text-align: center;
}

.captcha-image img {
    width: 100%;
    max-width: 155px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Button */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.btn-icon-compact {
    padding: 7px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-icon-compact i {
    font-size: 1.1rem;
    color: #6c757d;
}

.btn-icon-compact:hover {
    background-color: #e2e6ea;
    transform: scale(1.1);
}

.btn-icon-compact:active {
    background-color: #d6d8db;
    transform: scale(1);
}

/* Terms and Conditions Checkbox */
.terms-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.terms-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

.terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #007bff;
}

.terms-label a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* Error Message Styling (for form fields) */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 5px;
}

/* Toast / Popup Alerts */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.alert {
    display: none;           /* We show it via JS */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    background-color: #e22b2b;  /* Default background if no tag is provided */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    transition: opacity 1s ease; /* Used when fading out */
}

.alert.error {
    background-color: #dd1d2dfa; /* Light red background */
    color: #000;              /* Black text */
}

.alert.success {
    background-color: #28a745; /* Green */
}

.alert.warning {
    background-color: #ffc107; /* Yellow-ish */
    color: #333;
}

.alert.info {
    background-color: #17a2b8; /* Teal-ish */
}