/* ============================================================
   DevZend SEO Audit — Public Styles
   ============================================================ */

/* --- Form container --- */
.dza-scan-form-wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dza-scan-form-title {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

/* --- Form fields --- */
.dza-form-field {
    margin-bottom: 18px;
}

.dza-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #d63638;
    margin-left: 2px;
}

.dza-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.dza-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
    background: #fff;
}

.dza-input::placeholder {
    color: #aaa;
}

/* --- Submit button --- */
.dza-form-submit {
    margin-top: 24px;
    text-align: center;
}

.dza-button {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
}

.dza-button:hover {
    background: #135e96;
}

.dza-button:active {
    transform: scale(0.98);
}

.dza-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Success / Error messages --- */
.dza-scan-success {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px;
    background: #d1e7dd;
    color: #0a3622;
    border: 1px solid #a3cfbb;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

.dza-scan-success p {
    margin: 0;
}

.dza-success-cta {
    margin: 18px 0 0 !important;
}

.dza-scan-success-report {
    padding: 32px 24px;
}

.dza-scan-success-report .dza-success-main {
    margin-bottom: 16px;
    font-size: 18px;
}

.dza-success-link {
    margin-top: 16px;
}

.dza-report-link-btn {
    background: #0a3622;
}

.dza-report-link-btn:hover {
    background: #0d4f32;
}

.dza-scan-error {
    max-width: 540px;
    margin: 0 auto 16px;
    padding: 16px 20px;
    background: #f8d7da;
    color: #58151c;
    border: 1px solid #f1aeb5;
    border-radius: 8px;
    font-size: 14px;
}

.dza-scan-error p {
    margin: 0;
}

/* ============================================================
   PUBLIC REPORT PAGE
   ============================================================ */
.dza-report-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.dza-report-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* --- Pending / Failed status messages --- */
.dza-report-pending,
.dza-report-failed {
    text-align: center;
}

.dza-report-status-message {
    padding: 40px 20px;
}

.dza-status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.dza-status-icon-processing {
    background: #cfe2ff;
    color: #0a4b7a;
}

.dza-status-icon-failed {
    background: #f8d7da;
    color: #58151c;
}

.dza-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #9ec5fe;
    border-top-color: #0a4b7a;
    border-radius: 50%;
    animation: dza-spin 0.8s linear infinite;
}

@keyframes dza-spin {
    to { transform: rotate(360deg); }
}

.dza-failed-icon {
    font-size: 48px;
    line-height: 1;
}

.dza-report-status-message h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #1a1a1a;
}

.dza-report-status-message p {
    color: #666;
    font-size: 16px;
    margin: 0 0 8px;
}

.dza-report-url-detail {
    margin-top: 20px !important;
    font-size: 14px !important;
}

/* --- Report Header --- */
.dza-report-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f1;
}

.dza-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.dza-report-logo {
    flex-shrink: 0;
}

.dza-report-logo-img {
    max-width: 200px;
    max-height: 80px;
    display: block;
}

.dza-header-contact {
    text-align: right;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.dza-header-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dza-report-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    text-align: center;
}

.dza-report-meta {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.dza-meta-item {
    display: inline-block;
    margin: 0 4px;
}

.dza-meta-sep {
    color: #ccc;
    margin: 0 8px;
}

/* --- Hero Score --- */
.dza-hero-score {
    text-align: center;
    margin-bottom: 36px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.dza-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.dza-score-circle.dza-score-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.dza-score-circle.dza-score-strong {
    background: linear-gradient(135deg, #2271b1, #40a9ff);
}

.dza-score-circle.dza-score-good {
    background: linear-gradient(135deg, #dba617, #ffc53d);
}

.dza-score-circle.dza-score-needs {
    background: linear-gradient(135deg, #d63638, #ff7875);
}

.dza-score-value {
    font-size: 42px;
}

.dza-score-divider {
    font-size: 24px;
    opacity: 0.6;
    margin: 0 2px;
}

.dza-score-max {
    font-size: 20px;
    opacity: 0.7;
}

.dza-score-info {
    display: block;
}

.dza-score-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dza-score-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dza-score-badge.dza-score-excellent {
    background: #d1e7dd;
    color: #0a3622;
}

.dza-score-badge.dza-score-strong {
    background: #cfe2ff;
    color: #0a4b7a;
}

.dza-score-badge.dza-score-good {
    background: #fff3cd;
    color: #664d03;
}

.dza-score-badge.dza-score-needs {
    background: #f8d7da;
    color: #58151c;
}

/* --- Report Sections --- */
.dza-report-section {
    margin-bottom: 32px;
}

.dza-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
    margin: 0 0 20px;
}

.dza-section-body {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.dza-section-body p {
    margin: 0;
}

/* --- Section Cards --- */
.dza-section-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
}

.dza-section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.dza-section-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dza-section-score {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e8e8e8;
    color: #666;
}

.dza-section-score.dza-score-excellent {
    background: #d1e7dd;
    color: #0a3622;
}

.dza-section-score.dza-score-strong {
    background: #cfe2ff;
    color: #0a4b7a;
}

.dza-section-score.dza-score-good {
    background: #fff3cd;
    color: #664d03;
}

.dza-section-score.dza-score-needs {
    background: #f8d7da;
    color: #58151c;
}

/* --- Sub-sections --- */
.dza-subsection {
    margin-bottom: 16px;
}

.dza-subsection:last-child {
    margin-bottom: 0;
}

.dza-subsection-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.dza-subsection-issues {
    background: #fff3cd;
    color: #664d03;
}

.dza-subsection-recs {
    background: #cfe2ff;
    color: #0a4b7a;
}

/* --- Issues & Recs lists --- */
.dza-issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dza-issue-item {
    position: relative;
    padding: 8px 12px 8px 28px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.dza-issue-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #dba617;
    border-radius: 50%;
}

.dza-recs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dza-recs-item {
    position: relative;
    padding: 8px 12px 8px 28px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.dza-recs-item::before {
    content: 'âœ“';
    position: absolute;
    left: 6px;
    top: 8px;
    font-size: 13px;
    color: #2271b1;
    font-weight: 700;
}

/* --- Priority Recommendations --- */
.dza-section-priority {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
}

.dza-priority-list {
    list-style: none;
    counter-reset: prio-counter;
    padding: 0;
    margin: 0;
}

.dza-priority-item {
    counter-increment: prio-counter;
    position: relative;
    padding: 10px 12px 10px 44px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.dza-priority-item::before {
    content: counter(prio-counter);
    position: absolute;
    left: 10px;
    top: 10px;
    width: 26px;
    height: 26px;
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Next Steps --- */
.dza-section-next-steps {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.dza-next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.dza-next-step-item {
    position: relative;
    padding: 10px 12px 10px 36px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.dza-next-step-item::before {
    content: 'â–¶';
    position: absolute;
    left: 8px;
    top: 10px;
    color: #2271b1;
    font-size: 14px;
}

/* --- CTA Box --- */
.dza-cta-box {
    margin-top: 8px;
    padding: 28px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.dza-cta-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}

.dza-cta-text {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
    opacity: 0.9;
}

.dza-cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: #2271b1;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dza-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.dza-cta-phone {
    font-size: 16px;
    margin: 0;
}

.dza-cta-phone a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* --- Report Footer --- */
.dza-report-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f1;
    text-align: center;
}

.dza-footer-text {
    font-size: 13px;
    color: #999;
    margin: 0 0 12px;
}

.dza-footer-contact {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.dza-footer-item {
    display: inline-block;
    margin: 0 8px;
}

.dza-footer-item a {
    color: #2271b1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .dza-report-container {
        padding: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .dza-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dza-header-contact {
        text-align: center;
    }

    .dza-hero-score {
        padding: 20px 16px;
    }

    .dza-score-circle {
        width: 110px;
        height: 110px;
    }

    .dza-score-value {
        font-size: 32px;
    }

    .dza-report-title {
        font-size: 22px;
    }

    .dza-cta-box {
        padding: 20px;
    }

    .dza-meta-sep {
        display: none;
    }

    .dza-meta-item {
        display: block;
        margin: 4px 0;
    }

    .dza-section-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .dza-scan-form-wrapper {
        padding: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .dza-report-page-wrapper {
        padding: 10px;
    }

    .dza-report-container {
        padding: 16px;
    }
}

/* ============================================================
   PROGRESS BAR OVERLAY
   ============================================================ */

.dza-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dza-scan-form-wrapper {
    position: relative;
}

.dza-progress-box {
    text-align: center;
    max-width: 380px;
    padding: 20px;
}

.dza-progress-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.dza-progress-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.dza-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #357abd);
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 0%;
}

.dza-progress-bar-fill.dza-progress-error {
    background: linear-gradient(90deg, #d63638, #b32d2e);
}

.dza-progress-status {
    font-size: 14px;
    color: #666;
}

/* Result inside progress overlay */
.dza-progress-result {
    text-align: center;
}

.dza-progress-check {
    font-size: 48px;
    color: #46b450;
    margin-bottom: 10px;
}

.dza-progress-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dza-progress-score {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
}

.dza-progress-score strong {
    font-size: 28px;
    color: #4a90d9;
}

.dza-button-report {
    display: inline-block;
    padding: 12px 30px;
    background: #4a90d9;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.dza-button-report:hover {
    background: #357abd;
    color: #fff;
}

.dza-progress-thanks {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* ============================================================
   PRINT / PDF TOOLBAR
   ============================================================ */

.dza-print-toolbar {
    text-align: right;
    margin-bottom: 20px;
}

.dza-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dza-pdf-button:hover {
    background: #357abd;
}

/* ============================================================
   VERIFICATION BADGE
   ============================================================ */

.dza-verify-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.dza-verify-ok {
    color: #46b450;
    font-weight: 600;
}

.dza-verify-pending {
    color: #f0ad4e;
    font-weight: 600;
}

.dza-verify-date {
    color: #999;
    margin-left: auto;
    font-size: 12px;
}

/* ============================================================
   PASSED CHECKS (green items)
   ============================================================ */

.dza-subsection-passed {
    color: #1a7d36;
    border-left: 3px solid #46b450;
    padding-left: 10px;
}

.dza-passed-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.dza-passed-item {
    position: relative;
    padding: 4px 0 4px 24px;
    font-size: 14px;
    color: #2d7a3a;
    line-height: 1.5;
}

.dza-passed-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: #46b450;
    font-weight: 700;
    font-size: 16px;
}

/* Print: keep passed items */
@media print {
    .dza-passed-item {
        color: #000;
    }
    .dza-passed-item::before {
        color: #000;
    }
}

/* Print-specific styles */
@media print {
    .dza-print-toolbar {
        display: none !important;
    }

    .dza-verify-badge {
        display: none !important;
    }

    .dza-recs-list li,
    .dza-issues-list li {
        page-break-inside: avoid;
    }

    .dza-report-section {
        page-break-inside: avoid;
    }

    .dza-report-container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    body {
        font-size: 11pt;
        color: #000;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    .dza-hero-score {
        break-inside: avoid;
    }
}

/* ============================================================
   CONSENT CHECKBOX
   ============================================================ */
.dza-consent-field {
    margin-bottom: 16px;
}
.dza-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.dza-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.dza-email-notice {
    margin: -8px 0 16px;
    font-size: 13px;
    color: #555;
    font-style: italic;
}
