#recommendation-tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.rt-progress-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.rt-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    font-weight: bold;
    position: relative;
}

.rt-step.active {
    background: #007cba;
    color: white;
}

.rt-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 40px;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
}

.rt-step-content {
    display: none;
    animation: fadeIn 0.3s;
}

.rt-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rt-form-group {
    margin-bottom: 20px;
}

.rt-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.rt-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
}

.rt-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.rt-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.rt-btn-primary {
    background: #007cba;
    color: white;
}

.rt-btn-primary:hover {
    background: #005a87;
}

.rt-btn-secondary {
    background: #6c757d;
    color: white;
}

.rt-btn-secondary:hover {
    background: #5a6268;
}

.rt-payment-btn {
    background: #28a745;
    color: white;
}

.rt-payment-btn:hover {
    background: #218838;
}

.rt-parameters-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.rt-parameter-row {
    display: grid;
    grid-template-columns: 200px 150px 60px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 3px;
}

.rt-parameter-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.rt-parameter-input.error {
    border-color: #dc3545;
    background-color: #ffe6e6;
}

.rt-parameter-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.rt-unit {
    font-weight: bold;
    color: #666;
}

.rt-normal-range {
    font-size: 12px;
    color: #888;
}

.rt-health-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rt-health-issue-item {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.rt-health-issue-item:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.rt-health-issue-item input[type="checkbox"] {
    margin-right: 10px;
}

.rt-health-issue-item input[type="checkbox"]:checked + label {
    font-weight: bold;
    color: #007cba;
}

.rt-info-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.rt-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.rt-payment-info {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.rt-payment-info p {
    margin: 0;
}

.required {
    color: #dc3545;
}

.success {
    color: #28a745;
    font-weight: bold;
}

.error {
    color: #dc3545;
    font-weight: bold;
    background: #f8d7da;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #f5c6cb;
}

.error a{
    color: #dc3545;
    text-decoration: underline;
}

.error ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .rt-parameter-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .rt-health-issues-grid {
        grid-template-columns: 1fr;
    }
    
    .rt-step {
        margin: 0 10px;
    }
    
    .rt-step:not(:last-child):after {
        width: 20px;
    }
    
    .rt-form-actions {
        flex-direction: column;
    }
    
    .rt-form-actions .rt-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* Payment Result Pages */
.rt-payment-result {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rt-payment-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    border-radius: 10px;
}

.rt-payment-success .rt-payment-header {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
}

.rt-payment-failed .rt-payment-header {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
}

.rt-success-icon,
.rt-error-icon {
    margin-bottom: 20px;
}

.rt-payment-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 600;
}

.rt-payment-success h2 {
    color: #155724;
}

.rt-payment-failed h2 {
    color: #721c24;
}

.rt-success-message {
    color: #155724;
    font-size: 1.1em;
    margin: 0;
}

.rt-error-message {
    color: #721c24;
    font-size: 1.1em;
    margin: 0;
}

/* Payment Details Section */
.rt-payment-details {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rt-payment-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.rt-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rt-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rt-detail-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rt-detail-item value {
    font-weight: 500;
    color: #212529;
    font-size: 1.1em;
}

.rt-error-text {
    color: #dc3545 !important;
}

/* Entry Summary Section */
.rt-entry-summary {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rt-entry-summary > h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.rt-summary-section {
    margin-bottom: 30px;
}

.rt-summary-section:last-child {
    margin-bottom: 0;
}

.rt-summary-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Blood Parameters Grid */
.rt-parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.rt-parameter-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.rt-parameter-card.normal {
    border-color: #28a745;
    background: #d4edda;
}

.rt-parameter-card.abnormal {
    border-color: #dc3545;
    background: #f8d7da;
}

.rt-parameter-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.rt-parameter-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
}

.rt-parameter-range {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 8px;
}

.rt-parameter-status {
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.rt-parameter-card.normal .rt-parameter-status {
    background: #28a745;
    color: white;
}

.rt-parameter-card.abnormal .rt-parameter-status {
    background: #dc3545;
    color: white;
}

/* Health Issues Tags */
.rt-health-issues-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rt-health-issue-tag {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Recommendations List */
.rt-recommendations-list {
    display: grid;
    gap: 15px;
}

.rt-recommendation-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #6c757d;
}

.rt-recommendation-item.priority-high {
    border-left-color: #dc3545;
}

.rt-recommendation-item.priority-medium {
    border-left-color: #ffc107;
}

.rt-recommendation-item.priority-low {
    border-left-color: #28a745;
}

.rt-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rt-recommendation-header h5 {
    margin: 0;
    color: #495057;
    font-size: 1.1em;
}

.rt-priority-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.priority-high .rt-priority-badge {
    background: #dc3545;
    color: white;
}

.priority-medium .rt-priority-badge {
    background: #ffc107;
    color: #212529;
}

.priority-low .rt-priority-badge {
    background: #28a745;
    color: white;
}

.rt-recommendation-type {
    color: #007cba;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rt-recommendation-reason {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Actions Section */
.rt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.rt-actions .rt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rt-actions .rt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rt-btn-primary {
    background: #007cba;
    color: white;
}

.rt-btn-secondary {
    background: #6c757d;
    color: white;
}

/* Payment Options for Failed Page */
.rt-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.rt-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rt-payment-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
    color: #007cba;
}

/* Entry Preview for Failed Page */
.rt-entry-preview {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.rt-entry-preview h3 {
    color: #856404;
    margin-top: 0;
}

.rt-preview-section {
    margin-bottom: 15px;
}

.rt-preview-section h4 {
    color: #856404;
    margin-bottom: 5px;
    font-size: 1em;
}

/* Next Steps Section */
.rt-next-steps {
    background: #e7f3ff;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.rt-next-steps h3 {
    color: #0c5460;
    margin-top: 0;
    margin-bottom: 20px;
}

.rt-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rt-next-steps li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #0c5460;
    line-height: 1.5;
}

.rt-next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    background: #17a2b8;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Support Section */
.rt-support {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rt-support h3 {
    color: #495057;
    margin-bottom: 15px;
}

.rt-support p {
    color: #6c757d;
    margin-bottom: 20px;
}

.rt-contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rt-contact-method {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.rt-contact-method:hover {
    color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rt-payment-result {
        padding: 15px;
    }
    
    .rt-payment-header {
        padding: 30px 15px;
    }
    
    .rt-payment-header h2 {
        font-size: 2em;
    }
    
    .rt-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .rt-parameters-grid {
        grid-template-columns: 1fr;
    }
    
    .rt-actions {
        flex-direction: column;
    }
    
    .rt-actions .rt-btn {
        width: 100%;
        justify-content: center;
    }
    
    .rt-payment-options {
        grid-template-columns: 1fr;
    }
    
    .rt-contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .rt-recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .rt-actions,
    .rt-support {
        display: none;
    }
    
    .rt-payment-result {
        box-shadow: none;
        border: none;
    }
    
    .rt-payment-header {
        background: white !important;
        border: 2px solid #000 !important;
    }
}
