/* CRO Audit Plugin Frontend Styles */
.cro-audit-tool {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.cro-audit-hero {
    margin: 20px;
    text-align: center;
    padding: 60px 20px;
    background: #FDEAEA;
    color: #960000;
    border-radius: 12px;
    
}

.cro-audit-hero h1 {
    color: #960000;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    color: #333;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Container */
.cro-audit-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section Styles */
.cro-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cro-section h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

/* What We Check Section */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.check-item {
    text-align: center;
    padding: 30px 20px;
    background: #F7F7F7;
    border-radius: 20px;
    border: 0.5px solid #8b2b2d96;
    transition: transform 0.3s ease;
}

.check-item:hover {
    transform: translateY(-5px);
    border: 1px solid #8b2b2d96;
    border-radius: 8px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

.check-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.check-item h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.check-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Benefits Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-item {
    padding: 25px;
    background: #F7F7F7;
    border: 2px solid #8B2B2C;
    border-radius: 8px;
}

.benefit-item h3 {
    color: #353535;
    margin-bottom: 10px;
}

.benefit-item p {
    color: #8B2B2C;
}

/* Steps Container */
.steps-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #C33B3C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.process-item {
    text-align: center;
    background: #F7F7F7;
    padding: 25px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;    
}

.process-arrow {
    font-size: 2rem;
    color: #8B2B2C;
    font-weight: bold;
    display: flex;
    align-items: center;
}
/* Common styles */
.cro-audit-landing-page,
.cro-audit-form-container,
.cro-audit-report-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form styles */
.cro-audit-form-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.cro-audit-form-description {
    margin-bottom: 30px;
    font-size: 16px;
    color: #7f8c8d;
}

.cro-audit-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cro-audit-form-field {
    margin-bottom: 20px;
}

.cro-audit-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.cro-audit-form-field label .required {
    color: #e74c3c;
}

.cro-audit-form-field input,
.cro-audit-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cro-audit-form-field-description {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.cro-audit-form-submit {
    margin-top: 30px;
    text-align: center;
}

.cro-audit-form-button {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cro-audit-form-button:hover {
    background-color: #2980b9;
}

.cro-audit-form-loader {
    margin-top: 20px;
    text-align: center;
}

.cro-audit-loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cro-audit-loader-text {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.cro-audit-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.cro-audit-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
}

/* Initial results styles */
.cro-audit-initial-results {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.cro-audit-overall-score {
    text-align: center;
    margin-bottom: 30px;
}

.cro-audit-overall-score h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cro-audit-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.cro-audit-score-max {
    font-size: 18px;
    margin-left: 2px;
}

.cro-audit-section-scores {
    margin-bottom: 30px;
}

.cro-audit-section-scores h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cro-audit-section-score {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cro-audit-section-score-name {
    flex: 1;
    font-weight: bold;
}

.cro-audit-section-score-bar {
    flex: 2;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}

.cro-audit-section-score-progress {
    height: 100%;
    background-color: #3498db;
    border-radius: 5px;
}

.cro-audit-section-score-number {
    width: 50px;
    text-align: right;
    font-weight: bold;
}

.cro-audit-summary,
.cro-audit-quick-wins {
    margin-bottom: 30px;
}

.cro-audit-summary h3,
.cro-audit-quick-wins h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cro-audit-quick-wins-list {
    padding-left: 20px;
}

.cro-audit-quick-wins-list li {
    margin-bottom: 5px;
}

.cro-audit-view-full-report {
    text-align: center;
    margin-top: 30px;
}

/* Full report styles */
.cro-audit-full-report {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.cro-audit-report-header {
    margin-bottom: 30px;
}

.cro-audit-report-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cro-audit-report-meta {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
}

.cro-audit-report-meta-item {
    margin-bottom: 5px;
}

.cro-audit-report-overall-score {
    text-align: center;
    margin-bottom: 30px;
}

.cro-audit-report-overall-score h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cro-audit-report-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.cro-audit-report-score-max {
    font-size: 18px;
    margin-left: 2px;
}

.cro-audit-report-summary,
.cro-audit-report-quick-wins {
    margin-bottom: 30px;
}

.cro-audit-report-summary h3,
.cro-audit-report-quick-wins h3,
.cro-audit-report-sections h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cro-audit-report-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cro-audit-report-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.cro-audit-report-section-header h4 {
    font-size: 20px;
    margin: 0;
    color: #2c3e50;
}

.cro-audit-report-section-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.cro-audit-report-issue {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
}

.cro-audit-report-issue h5 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.cro-audit-report-issue-meta {
    display: flex;
    margin: 15px 0;
}

.cro-audit-report-issue-impact,
.cro-audit-report-issue-effort {
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 14px;
}

.cro-audit-report-issue-impact-high {
    background-color: #e74c3c;
    color: white;
}

.cro-audit-report-issue-impact-medium {
    background-color: #f39c12;
    color: white;
}

.cro-audit-report-issue-impact-low {
    background-color: #2ecc71;
    color: white;
}

.cro-audit-report-issue-effort-high {
    background-color: #e74c3c;
    color: white;
}

.cro-audit-report-issue-effort-medium {
    background-color: #f39c12;
    color: white;
}

.cro-audit-report-issue-effort-low {
    background-color: #2ecc71;
    color: white;
}

.cro-audit-report-issue-recommendation,
.cro-audit-report-issue-experiment {
    margin-top: 15px;
}

.cro-audit-report-back {
    text-align: center;
    margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cro-audit-landing-feature {
        flex-basis: 100%;
    }
    
    .cro-audit-landing-steps {
        flex-direction: column;
    }
    
    .cro-audit-landing-step {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
    
    .cro-audit-section-score {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cro-audit-section-score-bar {
        width: 100%;
        margin: 5px 0;
    }
    
    .cro-audit-section-score-number {
        width: auto;
        text-align: left;
    }
    
    .cro-audit-report-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cro-audit-report-section-score {
        margin-top: 10px;
    }
    
    .cro-audit-report-issue-meta {
        flex-direction: column;
    }
    
    .cro-audit-report-issue-impact,
    .cro-audit-report-issue-effort {
        margin-bottom: 5px;
    }
    
    /* Progress bar responsive styles */
    .cro-audit-progress-container {
        padding: 20px;
    }
    
    .cro-audit-progress-header h3 {
        font-size: 1.4rem;
    }
    
    .cro-audit-progress-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .cro-audit-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .cro-audit-step .step-number {
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .cro-audit-step .step-text {
        max-width: none;
        font-size: 14px;
    }
}

/* Progress Bar Styles */
.cro-audit-progress-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px 0;
}

.cro-audit-progress-header h3 {
    color: #960000;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cro-audit-time-estimate {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.cro-audit-progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cro-audit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #960000, #c41e3a);
    border-radius: 15px;
    transition: width 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.cro-audit-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

.cro-audit-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.cro-audit-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.cro-audit-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.cro-audit-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cro-audit-step.active .step-number {
    background-color: #960000;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(150, 0, 0, 0.2);
}

.cro-audit-step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.cro-audit-step .step-text {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    max-width: 120px;
    transition: color 0.3s ease;
}

.cro-audit-step.active .step-text {
    color: #960000;
    font-weight: 600;
}

.cro-audit-step.completed .step-text {
    color: #28a745;
    font-weight: 500;
}

/* ===========================================
   Contact Form 7 CRO Audit Form Styling
   =========================================== */

/* Wrapper for CF7 CRO Audit Form */
.wpcf7-form.cro-audit-cf7-form,
.cro-audit-cf7-wrapper .wpcf7-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* Style CF7 form by targeting the form with CRO Audit specific fields */
.wpcf7 input[name="website-url"],
.wpcf7 input[name="company-name"],
.wpcf7 input[name="email"],
.wpcf7 select[name="industry"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[name="website-url"]:focus,
.wpcf7 input[name="company-name"]:focus,
.wpcf7 input[name="email"]:focus,
.wpcf7 select[name="industry"]:focus {
    border-color: #960000;
    box-shadow: 0 0 5px rgba(150, 0, 0, 0.2);
    outline: none;
}

/* CF7 Labels */
.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* CF7 Form rows/fields */
.wpcf7 p {
    margin-bottom: 20px;
}

/* CF7 Submit Button - Match original styling */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
    padding: 14px 40px;
    background-color: #960000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
    background-color: #7a0000;
    transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:disabled,
.wpcf7 button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* CF7 Validation errors */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7-not-valid {
    border-color: #e74c3c !important;
}

/* CF7 Response messages */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-spam-blocked,
.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Hide default CF7 response when using custom progress */
.wpcf7-form.cro-processing .wpcf7-response-output {
    display: none !important;
}

/* Fix for Issue #1: Keep form fields visible during processing */
.wpcf7-form.cro-processing input[type="text"],
.wpcf7-form.cro-processing input[type="email"],
.wpcf7-form.cro-processing input[type="url"],
.wpcf7-form.cro-processing select,
.wpcf7-form.cro-processing textarea {
    pointer-events: none; /* Prevent editing during processing */
    opacity: 0.8; /* Slightly dim to indicate processing */
    background-color: #f9f9f9 !important;
}

/* Ensure button text is visible during processing */
.wpcf7-form.cro-processing input[type="submit"],
.wpcf7-form.cro-processing button[type="submit"] {
    font-size: 16px !important;
    color: #fff !important;
    background-color: #666 !important;
    cursor: wait !important;
    min-width: 150px;
}

/* Hide CF7 spinner during our custom processing */
.wpcf7-form.cro-processing .wpcf7-spinner,
.wpcf7-form.cro-processing .ajax-loader {
    display: none !important;
}

/* CRO Audit CF7 Progress Container */
.cro-cf7-progress-wrapper {
    margin-top: 20px;
}

/* Responsive adjustments for CF7 form */
@media (max-width: 768px) {
    .wpcf7-form.cro-audit-cf7-form,
    .cro-audit-cf7-wrapper .wpcf7-form {
        padding: 20px;
    }

    .wpcf7 input[type="submit"],
    .wpcf7 button[type="submit"] {
        max-width: 100%;
    }
}

/* Placeholder and error message styles for missing report data */
.cro-audit-no-issues {
    color: #666;
    font-style: italic;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 10px 0;
}

.cro-audit-no-sections-message {
    padding: 30px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
}

.cro-audit-no-sections-message p {
    color: #666;
    margin: 10px 0;
}

.cro-audit-section-error,
.cro-audit-sections-error {
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c00;
    margin: 10px 0;
}

.cro-audit-sections-error p {
    margin: 5px 0;
}
