.wpia-frontend-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.wpia-frontend-audit {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.wpia-frontend-header {
    text-align: center;
    margin-bottom: 40px;
}

.wpia-frontend-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.wpia-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

.wpia-form {
    margin: 0;
}

.wpia-form-group {
    margin-bottom: 20px;
}

.wpia-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.wpia-form-group input[type="text"],
.wpia-form-group input[type="email"],
.wpia-form-group input[type="tel"],
.wpia-form-group input[type="url"],
.wpia-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wpia-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    line-height: 1.2;
    height: auto;
}

.wpia-form-group select option {
    padding: 8px 16px;
    line-height: 1.5;
}

.wpia-form-group input:focus,
.wpia-form-group textarea:focus,
.wpia-form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.wpia-form-group small {
    display: block;
    margin-top: 5px;
    color: #95a5a6;
    font-size: 14px;
}

.wpia-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .wpia-form-row {
        grid-template-columns: 1fr;
    }
}

.wpia-checkbox-group {
    margin: 15px 0;
}

.wpia-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.wpia-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.wpia-form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.wpia-form-section h4 {
    margin-top: 0;
    color: #2c3e50;
}

.wpia-btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.wpia-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.wpia-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.wpia-btn-large {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
}

.required {
    color: #e74c3c;
}

.wpia-audit-progress {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.wpia-audit-progress h3 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.wpia-progress-bar {
    height: 40px;
    background: #ecf0f1;
    border-radius: 20px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

.wpia-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    animation: progressShimmer 2s ease-in-out infinite;
    min-width: 50px;
    white-space: nowrap;
    padding: 0 10px;
}

@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.wpia-progress-text {
    text-align: center;
    color: #2c3e50;
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.5;
}

.wpia-progress-step {
    text-align: center;
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    padding: 8px 16px;
    background: #e8f4f8;
    border-radius: 4px;
    display: inline-block;
}

.wpia-patience-text {
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.wpia-audit-timer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #3498db;
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.wpia-timer-display {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #2980b9;
    margin-left: 4px;
}

.wpia-audit-results {
    padding: 20px 0;
}

.wpia-audit-results h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.wpia-results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wpia-score-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wpia-score-card-main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.wpia-score-card-main .wpia-score-label,
.wpia-score-card-main .wpia-score-value {
    color: #fff;
}

.wpia-score-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpia-score-value {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
}

.wpia-score-card-main .wpia-score-value {
    font-size: 64px;
}

.wpia-top-recommendations {
    margin: 40px 0;
}

.wpia-top-recommendations h4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

.wpia-recommendation-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wpia-recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.wpia-recommendation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.wpia-recommendation-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.wpia-recommendation-card h5 {
    color: #2c3e50;
    font-size: 20px;
    margin: 15px 0 10px 0;
}

.wpia-recommendation-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wpia-recommendation-metrics {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.wpia-metric {
    font-size: 14px;
    color: #555;
}

.wpia-metric-arrow {
    font-size: 20px;
    color: #667eea;
}

.wpia-recommendation-actions {
    margin: 15px 0;
    padding: 15px;
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.wpia-recommendation-actions strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
}

.wpia-recommendation-actions ul {
    margin: 0;
    padding-left: 20px;
}

.wpia-recommendation-actions li {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

.wpia-recommendation-impact {
    margin-top: 15px;
}

.wpia-impact-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.wpia-issue-severity {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpia-issue-severity.high {
    background: #e74c3c;
    color: #fff;
}

.wpia-issue-severity.medium {
    background: #f39c12;
    color: #000;
}

.wpia-issue-severity.low {
    background: #27ae60;
    color: #fff;
}

.wpia-no-issues {
    text-align: center;
    padding: 40px;
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
}

.wpia-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.wpia-cta h4 {
    color: #fff;
    margin-top: 0;
}

.wpia-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.wpia-cta .wpia-btn-primary {
    background: #fff;
    color: #667eea;
}

.wpia-cta .wpia-btn-primary:hover {
    background: #f8f9fa;
}

.wpia-lead-form {
    max-width: 700px;
    margin: 0 auto;
}

.wpia-lead-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.wpia-form-actions {
    margin-top: 30px;
}

.wpia-success-message {
    text-align: center;
    padding: 60px 20px;
}

.wpia-success-icon {
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
}

.wpia-success-message h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.wpia-success-message p {
    color: #7f8c8d;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.wpia-next-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wpia-next-steps h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
}

.wpia-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpia-next-steps li {
    padding: 12px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.wpia-step {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpia-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.wpia-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.wpia-stat-card h3 {
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #667eea;
}

.wpia-lead-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wpia-lead-status-new {
    background: #3498db;
    color: #fff;
}

.wpia-lead-status-contacted {
    background: #f39c12;
    color: #fff;
}

.wpia-lead-status-qualified {
    background: #9b59b6;
    color: #fff;
}

.wpia-lead-status-converted {
    background: #27ae60;
    color: #fff;
}

.wpia-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 14px;
}

.wpia-footer p {
    margin: 5px 0;
}

.wpia-footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.wpia-footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.wpia-contact {
    margin-top: 10px;
}

.wpia-form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0 20px 0;
    border-left: 4px solid #3498db;
}

.wpia-form-section h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
}

.wpia-form-hint {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.wpia-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.wpia-form-group.wpia-half {
    flex: 1;
}

.wpia-form-group input[type="date"] {
    font-family: inherit;
}

@media (max-width: 768px) {
    .wpia-form-row {
        flex-direction: column;
        gap: 0;
    }

    .wpia-form-group.wpia-half {
        width: 100%;
    }
}

/* How to Fix Page */
.wpia-how-to-fix-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.wpia-how-to-fix-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.wpia-how-to-fix-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.wpia-domain {
    font-size: 18px;
    margin: 10px 0;
}

.wpia-severity-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
}

.wpia-severity-high, .wpia-severity-critical {
    background: #e74c3c;
}

.wpia-severity-medium {
    background: #f39c12;
    color: #000;
}

.wpia-severity-low {
    background: #3498db;
}

.wpia-how-to-fix-content {
    background: #fff;
    padding: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wpia-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ecf0f1;
}

.wpia-section:last-child {
    border-bottom: none;
}

.wpia-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.wpia-impact {
    background: #e8f8f5;
    padding: 20px;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
}

.wpia-steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.wpia-steps-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    padding-left: 60px;
}

.wpia-steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.wpia-effort-estimate {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.wpia-cta {
    text-align: center;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
}

.wpia-cta-button {
    display: inline-block;
    background: #27ae60;
    color: #fff !important;
    padding: 15px 30px;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    transition: background 0.3s;
}

.wpia-cta-button:hover {
    background: #229954;
}

/* Fix Request Page */
.wpia-fix-request-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.wpia-fix-request-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.wpia-fix-request-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.wpia-fix-request-form {
    background: #fff;
    padding: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wpia-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ecf0f1;
}

.wpia-form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wpia-form-section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin: 0 0 20px 0;
}

.wpia-form-section h3 {
    color: #34495e;
    font-size: 18px;
    margin: 20px 0 15px 0;
}

.wpia-help-text {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.wpia-focus-note {
    background: #e8f8f5;
    padding: 15px;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
    margin-top: 15px;
}

.wpia-submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.wpia-submit-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.wpia-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.wpia-success-message h2 {
    color: #155724;
    margin: 0 0 15px 0;
}
