/* =====================================================
   CONVERTER TOOL — SHARED STYLES
   Used by: PNG to JPG, TIFF to PDF, and other converters
   Scope:  .converter-tool
   ===================================================== */

/* =====================================================
   ROOT / PAGE
   ===================================================== */

.converter-tool {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 70px;
    box-sizing: border-box;
}

.converter-tool *,
.converter-tool *::before,
.converter-tool *::after {
    box-sizing: border-box;
}

/* =====================================================
   CONVERTER CARD
   ===================================================== */

.converter-tool .converter-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.converter-tool .converter-header {
    text-align: center;
    margin-bottom: 35px;
}

.converter-tool .converter-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f1f5f9;
    font-size: 38px;
}

.converter-tool .converter-header h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 700;
    color: #111827;
}

.converter-tool .converter-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

/* =====================================================
   DROP ZONE
   ===================================================== */

.converter-tool .drop-zone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    padding: 55px 25px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.converter-tool .drop-zone:hover {
    border-color: #64748b;
    background: #f1f5f9;
}

.converter-tool .drop-zone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: scale(1.01);
}

.converter-tool .drop-zone input[type="file"] {
    display: none;
}

.converter-tool .upload-symbol {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: 32px;
    font-weight: bold;
    color: #475569;
}

.converter-tool .upload-content h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 22px;
}

.converter-tool .upload-or {
    margin: 8px 0;
    color: #94a3b8;
    font-size: 14px;
}

.converter-tool .browse-button {
    border: none;
    padding: 13px 28px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.converter-tool .browse-button:hover {
    background: #1d4ed8;
}

.converter-tool .selected-file {
    margin: 18px 0 4px;
    min-height: 22px;
    color: #334155;
    font-weight: 600;
    word-break: break-word;
}

.converter-tool .file-limit {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

/* =====================================================
   GDPR
   ===================================================== */

.converter-tool .gdpr-statement {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* =====================================================
   CONVERT BUTTON
   ===================================================== */

.converter-tool .convert-button {
    width: 100%;
    margin-top: 25px;
    padding: 16px 25px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.converter-tool .convert-button:hover:not(:disabled) {
    background: #000000;
}

.converter-tool .convert-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* =====================================================
   STATUS / PROGRESS
   ===================================================== */

.converter-tool .conversion-status {
    display: none;
    margin-top: 35px;
    padding: 30px;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.converter-tool .status-icon {
    font-size: 32px;
    margin-bottom: 10px;
    animation: converter-tool-rotate 1.5s linear infinite;
}

@keyframes converter-tool-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.converter-tool .status-title {
    margin: 0 0 8px;
    font-size: 21px;
    color: #1e293b;
}

.converter-tool .status-message {
    margin: 0 0 20px;
    color: #64748b;
}

.converter-tool .progress-container {
    width: 100%;
    max-width: 600px;
    height: 28px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
}

.converter-tool .progress-bar {
    width: 0%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition: width 0.4s ease;
}

/* =====================================================
   DOWNLOAD
   ===================================================== */

.converter-tool .download-container {
    display: none;
    margin-top: 25px;
}

.converter-tool .download-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 9px;
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.converter-tool .download-button:hover {
    background: #15803d;
    color: #ffffff;
}

/* =====================================================
   ERROR
   ===================================================== */

.converter-tool .error-container {
    display: none;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
}

/* =====================================================
   STEPS INFO
   ===================================================== */

.converter-tool .converter-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.converter-tool .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.converter-tool .info-item strong {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
}

/* =====================================================
   CONTENT SECTION
   ===================================================== */

.converter-tool .content-section {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.converter-tool .content-header {
    text-align: center;
    margin-bottom: 25px;
}

.converter-tool .content-header h2 {
    margin: 0;
    color: #111827;
    font-size: 25px;
}

.converter-tool .content-section ol {
    max-width: 700px;
    margin: 0 auto 30px;
    padding-left: 25px;
    color: #374151;
    line-height: 1.8;
}

.converter-tool .content-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.converter-tool .content-column {
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
}

.converter-tool .content-column h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 18px;
}

.converter-tool .content-column p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* =====================================================
   TOOLS LINKS
   ===================================================== */

.converter-tool .links-section {
    margin-top: 50px;
    padding: 20px 0;
}

.converter-tool .links-section h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #111827;
}

.converter-tool .links-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.converter-tool .link-item {
    padding: 16px;
    border-radius: 10px;
    background: #111827;
    text-align: center;
}

.converter-tool .link-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.converter-tool .link-item:hover {
    background: #007bff;
}

/* =====================================================
   FAQ
   ===================================================== */

.converter-tool .faqs {
    margin-top: 50px;
}

.converter-tool .faqs h2 {
    margin: 0 0 30px;
    text-align: center;
    color: #111827;
    font-size: 28px;
}

.converter-tool .faq-item {
    margin-bottom: 10px;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.converter-tool .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: #111827;
    font-weight: 600;
}

.converter-tool .toggle-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #64748b;
}

.converter-tool .faq-answer {
    display: none;
    padding-top: 15px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}


/* =====================================================
   TRUSTPILOT WIDGET
   ===================================================== */

.converter-tool .trustpilot-widget-wrapper {
    margin-top: 30px;
    padding: 25px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.converter-tool .trustpilot-widget-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.converter-tool .trustpilot-label {
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.converter-tool .trustpilot-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: #00b67a;   /* Trustpilot green */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s ease;
}

.converter-tool .trustpilot-button:hover {
    background: #009a68;
    color: #ffffff;
}

@media (max-width: 768px) {

    .converter-tool .trustpilot-widget-wrapper {
        padding: 20px 15px;
    }
}
/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {

    .converter-tool {
        padding: 25px 12px 50px;
    }

    .converter-tool .converter-card {
        padding: 25px 18px;
    }

    .converter-tool .converter-header h1 {
        font-size: 27px;
    }

    .converter-tool .drop-zone {
        padding: 40px 15px;
    }

    .converter-tool .content-columns {
        grid-template-columns: 1fr;
    }

    .converter-tool .links-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .converter-tool .converter-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .converter-tool .convert-button {
        width: 100%;
    }

    .converter-tool .download-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 500px) {

    .converter-tool .links-container {
        grid-template-columns: 1fr;
    }

    .converter-tool .content-section {
        padding: 20px;
    }

    .converter-tool .faqs h2 {
        font-size: 24px;
    }
}
/* =====================================================
   KNOWLEDGE REGISTRY BLOCKS (conversion knowledge)
   ===================================================== */

/* Prose paragraphs — full width, centered max-width */
.converter-tool .content-section .knowledge-prose {
    max-width: 800px;
    margin: 0 auto;
    color: #374151;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
}

/* Ordered + unordered lists — full width, centered max-width */
.converter-tool .content-section .knowledge-steps,
.converter-tool .content-section .knowledge-list {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 25px;
    color: #374151;
    font-size: 15px;
    line-height: 1.85;
}

.converter-tool .content-section .knowledge-list li,
.converter-tool .content-section .knowledge-steps li {
    margin-bottom: 10px;
}

/* Comparison + technical tables — full width, proper column sizing */
.converter-tool .content-section .knowledge-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.converter-tool .content-section .knowledge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #374151;
}

.converter-tool .content-section .knowledge-table th,
.converter-tool .content-section .knowledge-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.55;
}

.converter-tool .content-section .knowledge-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #cbd5e1;
}

.converter-tool .content-section .knowledge-table .knowledge-attr {
    width: 30%;
    color: #111827;
}

.converter-tool .content-section .knowledge-table tbody tr:last-child td {
    border-bottom: none;
}

.converter-tool .content-section .knowledge-table tbody tr:hover {
    background: #f9fafb;
}

/* FAQ dl (common problems) */
.converter-tool .content-section .knowledge-problems {
    max-width: 800px;
    margin: 0 auto;
}

.converter-tool .content-section .knowledge-problems dt {
    font-weight: 600;
    color: #111827;
    margin-top: 16px;
    font-size: 15px;
}

.converter-tool .content-section .knowledge-problems dd {
    margin: 6px 0 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    padding-left: 0;
}

/* Freshness note */
.converter-tool .knowledge-freshness {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 30px 0 10px;
}
