/* Medrayder.com Inspired Styles */
:root {
    --primary-blue: #2A5C8F;
    --secondary-blue: #4A90E2;
    --light-blue: #E8F0FE;
    --accent-teal: #00A79D;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Header with Logo */
.header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--accent-teal);
    font-weight: 400;
}

/* Main Container */
.registration-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.card-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-header p {
    font-size: 16px;
    opacity: 0.9;
}

.card-body {
    padding: 40px;
}

/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    flex: 1 1 calc(50% - 30px);
    margin: 0 15px 25px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

label i {
    color: var(--secondary-blue);
    margin-right: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--light-blue);
    border: 2px dashed var(--secondary-blue);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #d4e3fd;
}

.file-upload-label i {
    font-size: 24px;
    color: var(--secondary-blue);
    margin-right: 10px;
}

.file-upload input[type="file"] {
    /*position: absolute;*/
    /*opacity: 0;*/
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Validation Styles */
.validation-error {
    border-color: #dc3545 !important;
}

.validation-success {
    border-color: #28a745 !important;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Button */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 92, 143, 0.3);
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 92, 143, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%;
        margin: 0 0 20px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .card-header h2 {
        font-size: 26px;
    }
    
    .btn-submit {
        max-width: 100%;
    }
}

/* Toastr Customization */
.toast-success {
    background-color: #28a745 !important;
}

.toast-error {
    background-color: #dc3545 !important;
}

.toast-info {
    background-color: var(--secondary-blue) !important;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}