
.modern-registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-section {
   
   
    margin-bottom: 35px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
}

.section-header {
    background: white;
    margin-bottom: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: solid 2px #173869;
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-header .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: #d90002;
}

.form-row {
    display: flex;
    gap: 25px;
    padding: 25px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #1d4580;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #173869;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(23, 56, 105, 0.1);
}

.form-group:focus-within label {
    color: #173869;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

/* Enhanced Role Options */
.role-options {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.role-option {
    position: relative;
    cursor: pointer;
}

.role-content {
    border: 2px solid #e0e5ec;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.role-option input[type="checkbox"]:checked + .role-content {
    border-color: #173869;
    background: rgba(23, 56, 105, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 56, 105, 0.08);
}

.role-content .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #173869;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.role-option:hover .role-content .dashicons {
    transform: scale(1.1);
}

/* Enhanced File Upload */
.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-input-button {
   border-style: dashed;
    border-color: #173869;
  border-width: 2px;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.file-input-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 56, 105, 0.15);
}

/* Enhanced Submit Button */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #173869, #1d4580);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(23, 56, 105, 0.2);
}

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

/* Enhanced Error States */
.form-group.error input {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message:before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Enhanced Loading State */
.submit-button.loading {
    opacity: 0.8;
    cursor: not-allowed;
    background: linear-gradient(135deg, #173869, #1d4580);
}

.submit-button.loading:after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .form-section {
        border-radius: 12px;
        margin-bottom: 25px;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .submit-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Focus Indicator Animation */
.form-group input:focus ~ .focus-border {
    width: 100%;
    transition: 0.4s;
    left: 0;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #173869;
    transition: 0.4s;
}