.section-container { 
    display: none; 
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar-container {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-percentage {
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    margin-top: 5px;
}

.progress-message {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-message.show {
    opacity: 1;
}

.navigation {
    margin-top: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.navigation button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.navigation button:hover {
    background-color: #005a87;
}

.navigation button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.navigation button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.navigation button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.next-section {
    order: 2;
}

.save-progress {
    order: 1;
}

.save-success {
    order: 3;
}

.prev-section {
    order: 0;
}

.save-progress {
    background-color: #46b450 !important;
}

.save-progress:hover {
    background-color: #3a9640 !important;
}

.acf-form-error {
    background-color: #fff1f0;
    border: 1px solid #dc3232;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.acf-form-error a.goto-section {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

.acf-form-error a.goto-section:hover {
    color: #005a87;
}

.acf-field.error {
    border-left: 4px solid #dc3232;
    background-color: rgba(220, 50, 50, 0.05);
    padding-left: 12px !important;
    border-radius: 4px;
}

.acf-field.error .acf-input {
    border-color: #dc3232;
}

.acf-field.error .CodeMirror {
    border-color: #dc3232;
}

.error-notice {
    color: #dc3232;
    background-color: #fff1f0;
    border: 1px solid #dc3232;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.save-success {
    background-color: #46b450;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    flex: 0 0 100%;
}

.bmi_section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.bmi_section p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.bmi_error {
    margin: 15px 0;
}

.bmi_message {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff1f0;
    border: 1px solid #dc3232;
    border-radius: 4px;
}

.faces {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.faces p {
    margin: 0;
    text-align: center;
}

.faces p img {
    cursor: pointer;
    transition: border 0.2s ease;
    max-width: 100px;
    height: auto;
}

.faces p img:hover {
    border: 2px solid #0073aa;
}

/* SimpleMDE specific styles */
.CodeMirror {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.CodeMirror-focused {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.editor-toolbar {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation button {
        width: 100%;
        margin: 5px 0;
    }
    
    .faces {
        justify-content: center;
    }
    
    .faces p img {
        max-width: 80px;
    }
}

/* Loading states */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Accessibility improvements */
.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;
}

/* Form field focus styles */
.acf-input input:focus,
.acf-input select:focus,
.acf-input textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
    outline: none;
}
