/* Driver Registration Form Styles */

.rbt-driver-registration-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.rbt-driver-reg-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.rbt-driver-reg-header {
    text-align: center;
    margin-bottom: 40px;
}

.rbt-driver-reg-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.rbt-driver-reg-header p {
    font-size: 16px;
    color: #7f8c8d;
}

/* Progress Steps */
.rbt-driver-reg-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.rbt-driver-reg-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.rbt-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rbt-step .step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #95a5a6;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.rbt-step.active .step-number {
    background: #3498db;
    color: #fff;
}

.rbt-step.completed .step-number {
    background: #27ae60;
    color: #fff;
}

.rbt-step .step-label {
    display: block;
    font-size: 14px;
    color: #95a5a6;
}

.rbt-step.active .step-label {
    color: #2c3e50;
    font-weight: 600;
}

/* Form Styles */
.rbt-driver-reg-form {
    position: relative;
}

.rbt-form-step h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.rbt-form-step h3 {
    font-size: 18px;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.rbt-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rbt-form-group {
    flex: 1;
}

.rbt-form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.rbt-form-group input[type="text"],
.rbt-form-group input[type="email"],
.rbt-form-group input[type="tel"],
.rbt-form-group input[type="date"],
.rbt-form-group input[type="number"],
.rbt-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.rbt-form-group input:focus,
.rbt-form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.rbt-form-group input.error,
.rbt-form-group select.error {
    border-color: #e74c3c;
}

/* File Upload */
.rbt-upload-info {
    background: #ecf0f1;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.rbt-file-upload-group {
    margin-bottom: 25px;
}

.rbt-file-upload-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rbt-file-upload-group input[type="file"]:hover {
    border-color: #3498db;
    background: #ecf0f1;
}

.rbt-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: none;
}

.rbt-file-preview.active {
    display: block;
}

.rbt-file-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
}

.rbt-file-preview .file-info {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 8px;
}

/* Summary Box */
.rbt-summary-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.rbt-summary-section {
    margin-bottom: 25px;
}

.rbt-summary-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.rbt-summary-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.rbt-summary-item:last-child {
    border-bottom: none;
}

.rbt-summary-label {
    font-weight: 600;
    color: #7f8c8d;
    width: 180px;
    flex-shrink: 0;
}

.rbt-summary-value {
    color: #2c3e50;
}

/* Buttons */
.rbt-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.rbt-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rbt-btn-primary {
    background: #3498db;
    color: #fff;
}

.rbt-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.rbt-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.rbt-btn-secondary:hover {
    background: #7f8c8d;
}

.rbt-btn-success {
    background: #27ae60;
    color: #fff;
}

.rbt-btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.rbt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Overlay */
.rbt-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 1000;
}

.rbt-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rbt-loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    color: #7f8c8d;
}

/* Messages */
.rbt-form-messages {
    margin-top: 20px;
}

.rbt-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
}

.rbt-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rbt-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rbt-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.rbt-error-list {
    margin: 10px 0 0 20px;
    list-style: disc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rbt-driver-reg-container {
        padding: 25px 20px;
    }

    .rbt-form-row {
        flex-direction: column;
        gap: 0;
    }

    .rbt-driver-reg-steps {
        flex-direction: column;
        gap: 15px;
    }

    .rbt-driver-reg-steps::before {
        display: none;
    }

    .rbt-step {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .rbt-step .step-number {
        margin-bottom: 0;
    }

    .rbt-form-actions {
        flex-direction: column;
    }

    .rbt-btn {
        width: 100%;
    }

    .rbt-summary-item {
        flex-direction: column;
        gap: 5px;
    }

    .rbt-summary-label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rbt-driver-registration-wrapper {
        padding: 10px;
    }

    .rbt-driver-reg-header h1 {
        font-size: 24px;
    }

    .rbt-form-step h2 {
        font-size: 20px;
    }
}
