/**
 * Messaging Health Tool - Frontend Styles
 */

 #wpforms-11912, #wpforms-confirmation-11912{
    background: none !important;
    padding: 0 !important;
    border: none !important;
 }

/* Container */
.mht-results-container {
    /* max-width: 800px; */
    margin: 40px auto;
    padding: 0 20px;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
}

/* Card Base */
.mht-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e5e7eb !important;
     max-width: 640px;
   
    margin: 0 auto;
}
.mht-feedback-card{
     max-width: 640px;
}
.mht-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
}

/* Overall Score Card */
.mht-overall-card {
    /* border-left: 4px solid !important; */
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #f59e0b !important;
}

.mht-overall-card.mht-level-strong {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #22c55e !important;
}

.mht-overall-card.mht-level-moderate {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #f59e0b !important;
}

.mht-overall-card.mht-level-high_risk {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border-color: #ef4444 !important;
}

.mht-overall-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.mht-overall-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid currentColor;
}

.mht-level-strong .mht-overall-icon {
    color: #22c55e;
    border-color: #22c55e;
}

.mht-level-moderate .mht-overall-icon {
    color: #f59e0b;
    border-color: #f59e0b;
}

.mht-level-high_risk .mht-overall-icon {
    color: #ef4444;
    border-color: #ef4444;
}

.mht-overall-info {
    flex: 1;
}

.mht-overall-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
}

.mht-level-strong .mht-overall-title {
    color: #15803d !important;
}

.mht-level-moderate .mht-overall-title {
    color: #b45309 !important;
}

.mht-level-high_risk .mht-overall-title {
    color: #dc2626 !important;
}

.mht-overall-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.mht-overall-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.mht-progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.mht-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.mht-level-strong .mht-progress-fill {
    background: #22c55e;
}

.mht-level-moderate .mht-progress-fill {
    background: #f59e0b;
}

.mht-level-high_risk .mht-progress-fill {
    background: #ef4444;
}

.mht-overall-score {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

.mht-overall-recommendation {
    font-size: 15px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Section Breakdown */
.mht-breakdown-card {
    background: #ffffff !important;
}

.mht-section-row {
    padding: 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: block !important;
}

.mht-section-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.mht-section-row:first-of-type {
    padding-top: 0 !important;
}

.mht-section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.mht-section-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.mht-section-score {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
}

/* Section Progress Bar */
.mht-section-progress {
    width: 100% !important;
    display: block !important;
}

.mht-section-progress-bar {
    width: 100% !important;
    height: 8px !important;
    background: #e5e7eb !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
}

.mht-section-progress-fill {
    height: 8px !important;
    min-height: 8px !important;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-radius: 4px !important;
    transition: width 0.5s ease !important;
    display: block !important;
    position: relative !important;
}

/* Recommended Steps */
.mht-steps-card {
    background: #ffffff !important;
}

.mht-steps-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mht-step-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}

.mht-step-item:first-child {
    padding-top: 0 !important;
}

.mht-step-item:last-child {
    padding-bottom: 0 !important;
}

.mht-step-number {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.mht-step-text {
    font-size: 15px !important;
    color: #374151 !important;
    line-height: 1.5 !important;
    padding-top: 2px !important;
    margin: 0 !important;
}

/* CTA Card */
.mht-cta-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #bfdbfe !important;
    /* border-left: 4px solid #6366f1 !important; */
}

.mht-cta-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
}

.mht-cta-text {
    font-size: 15px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 0 18px 0 !important;
}

.mht-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.mht-btn-primary {
    background: #5736FD!important;
    color: #ffffff !important;
}

.mht-btn-primary:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

.mht-btn-secondary {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.mht-btn-secondary:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
}

/* Action Buttons */
.mht-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mht-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mht-action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.mht-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes mht-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mht-card {
    animation: mht-fade-in-up 0.5s ease-out backwards;
}

.mht-overall-card { animation-delay: 0s; }
.mht-breakdown-card { animation-delay: 0.1s; }
.mht-steps-card { animation-delay: 0.2s; }
.mht-cta-card { animation-delay: 0.3s; }
.mht-action-buttons { animation: mht-fade-in-up 0.5s ease-out 0.4s backwards; }

/* Responsive */
@media (max-width: 640px) {
    .mht-results-container {
        margin: 20px auto;
        padding: 0;
    }

    .mht-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }

    .mht-overall-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mht-overall-progress {
        flex-direction: column;
        gap: 8px;
    }

    .mht-progress-bar {
        width: 100%;
    }

    .mht-cta-buttons {
        flex-direction: column;
    }

    .mht-btn {
        width: 100%;
    }

    .mht-action-buttons {
        flex-direction: column;
    }

    .mht-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .mht-action-buttons,
    .mht-cta-buttons {
        display: none !important;
    }

    .mht-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}


div.wpforms-container-full fieldset {
    padding: 30px 20px;
    border: 1px solid #ccc;
    border-radius: 14px; 
}
div.wpforms-container-full input[type=radio]{
    margin-top: 0 !important;
}
.post-content .content-inner .wpforms-field-label {
        font-weight: 400 !important;
}
a.mht-btn.mht-btn-primary{
    background: #5736FD !important;
}
a.mht-btn.mht-btn-primary,a.mht-btn.mht-btn-secondary {
    padding: 14px 30px;
    border-radius: 40px;
}
div.wpforms-container-full .wpforms-form .wpforms-pagebreak-left .wpforms-page-button.wpforms-page-next {
    background: #5736FD;
}
button.mht-action-btn {
    padding: 10px 20px !important;
    border-radius: 40px;
}
.wpforms-container .wpforms-page-indicator{
    padding-bottom: 40px !important;
}
.mht-feedback-options{
    padding-top: 20px;
    padding-bottom: 20px;
}
.mht-action-buttons{
    padding-bottom: 40px;
}
.mht-feedback-option {
    display: flex;
    align-items: start;
    padding-bottom: 10px;
}
.mht-feedback-option label{
    margin-bottom: 0;
}
.mht-feedback-textarea{
    padding-bottom: 10px;
}

