/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Full-screen loader */
.driver-registration-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Lighter black background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.driver-registration-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.driver-registration-loader {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.driver-registration-loader:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #3498db;
    border-bottom-color: #3498db;
    animation: driver-registration-spin 1.2s linear infinite;
}

.driver-registration-loader:after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-left-color: #f3f3f3;
    border-right-color: #f3f3f3;
    animation: driver-registration-spin 0.8s linear infinite reverse;
}

@keyframes driver-registration-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.driver-registration-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.driver-registration-form-container h2 {
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.driver-registration-form-container h4 {
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
}

.driver-registration-form .form-group {
    margin-bottom: 20px;
}

.driver-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.driver-registration-form .required {
    color: #ff0000;
}

.driver-registration-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.driver-registration-form .form-text {
    font-size: 12px;
    color: #666;
}

.driver-registration-form .submit-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.driver-registration-form .submit-button:hover {
    background-color: #005177;
}

.driver-registration-messages {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.driver-registration-messages.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    display: block;
}

.driver-registration-messages.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    display: block;
}

.g-recaptcha {
    margin-bottom: 15px;
}
