.smartstork-form .mp-form-label label{
    display: inline !important;
}
.smartstork-form .cc-error, .smartstork-form .mepr-form-has-errors {
    color: #eb1c26;
    padding-left: 5px;
}
.smartstork-form .mepr-error .mepr-form-input {
    border: 2px solid red !important;
    background-color: #FF6666 !important;
}
.smartstork-form .mp-form-row {
    margin-bottom: 10px;
}
.smartstork-form .mepr-submit {
    background-color: #6B6F7A;
    color: #ffffff;
    border-radius: 0;
    border: none;
    padding: 12px 24px 12px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.smartstork-form .mepr-submit:hover {
    background-color: #424242;
}
.smartstork-form .mepr-submit:focus {
    background-color: #424242;
}

/* Form Success Message */
.smartstork-form-success {
    color: #098f09;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Form Error Messages */
.smartstork-form-errors {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.smartstork-form-errors ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.smartstork-form-errors li {
    margin-bottom: 5px;
}

/* Notice Messages */
.smartstork-notice {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 12px 16px;
    border-radius: 4px;
}

/* Results Page Styles */
.smartstork-results {
    max-width: 600px;
}

.smartstork-results h3 {
    margin-bottom: 20px;
    color: #333;
}

.smartstork-results-data p {
    margin: 8px 0;
}

.smartstork-results-data strong {
    display: inline-block;
    min-width: 150px;
}

.smartstork-results hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.smartstork-results-calculation h4 {
    margin-bottom: 10px;
    color: #333;
}

.smartstork-result-success {
    color: #098f09;
    font-weight: 600;
    font-size: 1.1em;
}

.smartstork-result-error {
    color: #eb1c26;
    font-weight: 600;
}

/* =====================================================
   History Timeline Styles
   ===================================================== */

.smartstork-history {
    max-width: 800px;
    margin: 0 auto;
}

.smartstork-history-title {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.smartstork-history-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.smartstork-history-empty p {
    margin: 10px 0;
    color: #666;
}

.smartstork-history-empty a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.smartstork-history-empty a:hover {
    text-decoration: underline;
}

/* Timeline Container */
.smartstork-timeline {
    position: relative;
    padding-left: 40px;
}

.smartstork-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

/* Timeline Item */
.smartstork-timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.smartstork-timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ccc;
    z-index: 1;
}

.timeline-marker-inner {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Program-specific colors */
.timeline-marker.program-gs1 {
    border-color: #28a745;
}
.timeline-marker.program-gs1 .timeline-marker-inner {
    background: #28a745;
}

.timeline-marker.program-t2 {
    border-color: #007bff;
}
.timeline-marker.program-t2 .timeline-marker-inner {
    background: #007bff;
}

.timeline-marker.program-f3 {
    border-color: #ffc107;
}
.timeline-marker.program-f3 .timeline-marker-inner {
    background: #ffc107;
}

/* Latest item highlight */
.timeline-item-latest .timeline-marker {
    width: 26px;
    height: 26px;
    left: -42px;
    top: 3px;
}

/* Timeline Content */
.timeline-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-item-latest .timeline-content {
    border-color: #0073aa;
    border-width: 2px;
}

/* Timeline Header */
.timeline-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-program-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.timeline-program-badge.program-gs1 {
    background: #d4edda;
    color: #155724;
}

.timeline-program-badge.program-t2 {
    background: #cce5ff;
    color: #004085;
}

.timeline-program-badge.program-f3 {
    background: #fff3cd;
    color: #856404;
}

.timeline-date {
    color: #666;
    font-size: 14px;
}

.timeline-badge-latest {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Timeline Body */
.timeline-body {
    font-size: 14px;
}

.timeline-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.timeline-data-item {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.data-value {
    color: #333;
    font-weight: 500;
}

/* Timeline Result */
.timeline-result {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.result-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.result-value {
    display: block;
    font-weight: 600;
    color: #098f09;
    font-size: 15px;
}

/* Reminder Status */
.timeline-reminder-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    font-size: 13px;
    color: #666;
}

.reminder-sent {
    color: #28a745;
}

.reminder-date {
    margin-left: 10px;
    color: #888;
}

/* History Footer */
.smartstork-history-footer {
    margin-top: 20px;
    text-align: center;
}

.history-note {
    color: #888;
    font-size: 13px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .smartstork-timeline {
        padding-left: 30px;
    }
    
    .smartstork-timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -30px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-marker-inner {
        width: 8px;
        height: 8px;
    }
    
    .timeline-item-latest .timeline-marker {
        width: 22px;
        height: 22px;
        left: -32px;
    }
    
    .timeline-content {
        padding: 12px 15px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-data-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Outcome Form Styles
   ===================================================== */

.smartstork-outcome {
    max-width: 600px;
    margin: 0 auto;
}

.smartstork-outcome-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.smartstork-outcome-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Outcome Summary */
.smartstork-outcome-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.smartstork-outcome-summary .summary-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.smartstork-outcome-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.smartstork-outcome-summary .summary-item {
    display: flex;
    flex-direction: column;
}

.smartstork-outcome-summary .summary-item .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.smartstork-outcome-summary .summary-item .value {
    font-weight: 500;
    color: #333;
}

.smartstork-outcome-summary .program-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.smartstork-outcome-summary .program-badge.program-gs1 {
    background: #d4edda;
    color: #155724;
}

.smartstork-outcome-summary .program-badge.program-t2 {
    background: #cce5ff;
    color: #004085;
}

.smartstork-outcome-summary .program-badge.program-f3 {
    background: #fff3cd;
    color: #856404;
}

/* Outcome Form */
.smartstork-outcome-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.smartstork-outcome-form .form-field {
    margin-bottom: 20px;
}

.smartstork-outcome-form .field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.smartstork-outcome-form .field-label .required {
    color: #dc3545;
}

.smartstork-outcome-form .field-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Outcome Radio Options */
.outcome-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outcome-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outcome-option:hover {
    border-color: #999;
    background: #fafafa;
}

.outcome-option input[type="radio"] {
    display: none;
}

.outcome-option input[type="radio"]:checked + .option-icon {
    transform: scale(1.1);
}

.outcome-option.outcome-success input[type="radio"]:checked ~ .option-text,
.outcome-option.outcome-success:has(input:checked) {
    border-color: #28a745;
    background: #d4edda;
}

.outcome-option.outcome-failure input[type="radio"]:checked ~ .option-text,
.outcome-option.outcome-failure:has(input:checked) {
    border-color: #dc3545;
    background: #f8d7da;
}

.outcome-option.outcome-pending input[type="radio"]:checked ~ .option-text,
.outcome-option.outcome-pending:has(input:checked) {
    border-color: #ffc107;
    background: #fff3cd;
}

.option-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.outcome-success .option-icon {
    background: #d4edda;
    color: #28a745;
}

.outcome-failure .option-icon {
    background: #f8d7da;
    color: #dc3545;
}

.outcome-pending .option-icon {
    background: #fff3cd;
    color: #856404;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text strong {
    font-size: 16px;
    color: #333;
}

.option-text small {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Form Inputs */
.outcome-date-input,
.outcome-notes-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.outcome-notes-input {
    resize: vertical;
    min-height: 80px;
}

.outcome-date-input:focus,
.outcome-notes-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Submit Button */
.smartstork-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.smartstork-submit-btn:hover {
    background: #005a87;
}

.privacy-note {
    text-align: center;
    margin-top: 15px;
    color: #888;
}

/* Existing Outcome Display */
.smartstork-outcome-existing {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.smartstork-outcome-existing h4 {
    margin-bottom: 15px;
    color: #333;
}

.outcome-display {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.outcome-display.outcome-success {
    background: #d4edda;
    border: 2px solid #28a745;
}

.outcome-display.outcome-failure {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.outcome-display.outcome-pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.outcome-display .outcome-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    background: rgba(255,255,255,0.5);
}

.outcome-display.outcome-success .outcome-icon {
    color: #28a745;
}

.outcome-display.outcome-failure .outcome-icon {
    color: #dc3545;
}

.outcome-display.outcome-pending .outcome-icon {
    color: #856404;
}

.outcome-display .outcome-text {
    font-size: 18px;
    font-weight: 600;
}

.outcome-display.outcome-success .outcome-text {
    color: #155724;
}

.outcome-display.outcome-failure .outcome-text {
    color: #721c24;
}

.outcome-display.outcome-pending .outcome-text {
    color: #856404;
}

.smartstork-outcome-existing .outcome-date,
.smartstork-outcome-existing .outcome-notes {
    margin: 10px 0;
    color: #555;
}

.smartstork-outcome-existing .outcome-submitted-at {
    color: #888;
    font-size: 13px;
}

.smartstork-outcome-existing .outcome-update-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 500px) {
    .smartstork-outcome-form {
        padding: 20px 15px;
    }
    
    .outcome-option {
        padding: 12px;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    .smartstork-outcome-summary .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================================================
   Timeline Outcome Display Styles
   ===================================================== */

.timeline-outcome {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.timeline-outcome-pending {
    background: #fff8e1;
    border-left-color: #ffc107;
}

.timeline-outcome-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.timeline-outcome-failure {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.timeline-outcome-unknown {
    background: #f3e5f5;
    border-left-color: #9c27b0;
}

.timeline-outcome .outcome-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.timeline-outcome .outcome-icon {
    font-size: 18px;
}

.timeline-outcome-pending .outcome-label {
    color: #856404;
}

.timeline-outcome-success .outcome-label {
    color: #2e7d32;
}

.timeline-outcome-failure .outcome-label {
    color: #1565c0;
}

.timeline-outcome-unknown .outcome-label {
    color: #7b1fa2;
}

.timeline-outcome .outcome-date {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.timeline-outcome .outcome-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #555;
}

.timeline-outcome .notes-label {
    font-weight: 600;
    margin-right: 5px;
}

.timeline-outcome .notes-text {
    font-style: italic;
}

.timeline-outcome .outcome-action {
    margin-top: 10px;
}

.timeline-outcome .outcome-submit-link {
    display: inline-block;
    padding: 6px 14px;
    background: #6B6F7A;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.timeline-outcome .outcome-submit-link:hover {
    background: #424242;
    color: #fff;
}

/* Responsive adjustments for timeline outcome */
@media (max-width: 768px) {
    .timeline-outcome {
        padding: 10px 12px;
    }
    
    .timeline-outcome .outcome-status {
        font-size: 13px;
    }
    
    .timeline-outcome .outcome-icon {
        font-size: 16px;
    }
}