.fitness-eval-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fef-header {
    text-align: center;
    margin-bottom: 30px;
}

.fef-header h2 {
    margin-top: 0;
    color: #333;
}

.fef-header p {
    color: #666;
    margin-bottom: 20px;
}

/* Progress Bar */
.fef-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fef-progress-fill {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s ease;
}

.fef-step-indicator {
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

/* Steps */
.fef-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.fef-step.fef-step-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fef-step h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #222;
}

.fef-step h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #444;
}

/* Form Groups & Inputs */
.fef-form-group {
    margin-bottom: 20px;
}

.fef-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fef-form-row .fef-form-group {
    flex: 1;
    min-width: 200px;
}

.fitness-eval-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.fitness-eval-form input[type="text"],
.fitness-eval-form input[type="email"],
.fitness-eval-form input[type="number"],
.fitness-eval-form input[type="date"],
.fitness-eval-form input[type="tel"],
.fitness-eval-form input[type="password"],
.fitness-eval-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Prevents iOS zoom */
}

.fitness-eval-form input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

/* Radio and Checkbox Layouts */
.fef-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fef-radio-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fef-radio-group label,
.fef-radio-vertical label,
.fef-checkbox-list label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.fef-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.fef-checkbox-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Navigation Buttons */
.fef-form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fef-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    transition: background 0.2s;
}

.fef-btn:hover {
    background: #005177;
}

.fef-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.fef-btn-secondary:hover {
    background: #ccc;
}

.fef-btn-success {
    background: #28a745;
}

.fef-btn-success:hover {
    background: #218838;
}

/* Description Text */
.description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* Messages */
#fef-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

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

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

/* Loader */
.fef-loader {
    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;
    vertical-align: middle;
    margin-left: 10px;
}

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

/* Client Portal Styles */
.fef-portal-container {
    max-width: 900px;
    margin: 0 auto;
}

.fef-portal-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.fef-portal-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .fitness-eval-form-container {
        padding: 15px;
    }
    
    .fef-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .fef-form-row .fef-form-group {
        width: 100%;
    }
}
