.aathar-registration-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aathar-form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 20px;
}

.aathar-form-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.aathar-form {
    width: 100%;
}

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

.aathar-form-group {
    display: flex;
    flex-direction: column;
}

.aathar-half-width {
    flex: 1;
    min-width: 250px;
}

.aathar-full-width {
    flex: 1 1 100%;
}

.aathar-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.aathar-form-control {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.aathar-form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.aathar-form-control:invalid {
    border-color: #dc3545;
}

.aathar-form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

textarea.aathar-form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select.aathar-form-control {
    cursor: pointer;
}

.aathar-submit-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aathar-submit-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #007cba 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
}

.aathar-submit-btn:active {
    transform: translateY(0);
}

.aathar-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aathar-btn-loading {
    display: none;
}

.aathar-submit-btn.loading .aathar-btn-text {
    display: none;
}

.aathar-submit-btn.loading .aathar-btn-loading {
    display: inline;
}

#aathar-form-messages {
    margin-bottom: 20px;
    min-height: 20px;
}

.aathar-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

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

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

.aathar-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aathar-error-list li {
    margin-bottom: 5px;
}

.aathar-error-list li:before {
    content: "• ";
    color: #dc3545;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aathar-registration-container {
        padding: 20px;
        margin: 10px;
    }
    
    .aathar-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .aathar-half-width {
        min-width: 100%;
    }
    
    .aathar-form-header h2 {
        font-size: 24px;
    }
    
    .aathar-submit-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .aathar-registration-container {
        margin: 5px;
        padding: 15px;
    }
    
    .aathar-form-control {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .aathar-submit-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aathar-submit-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Form Validation Styles */
.aathar-form-control.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.aathar-form-control.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Enhanced Visual Feedback */
.aathar-form-control:hover {
    border-color: #007cba;
}

.aathar-form-group:focus-within label {
    color: #007cba;
}

/* Accessibility Improvements */
.aathar-form-control:focus {
    z-index: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}