/*
 * ==========================================================================
 * #PAGE: WordPress Website Design Price — ZHM-X v5.0.1
 * ==========================================================================
 *
 * ONLY layout, positioning, and page-specific context.
 * All colors, fonts, sizes, shadows → _canonical-ui.css
 */

/* ═══════════════════════════════════════════════════════════════════════
   1. CONTAINER & UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */

.sc-wwdp-container {
    margin: 0 auto;
}

.sc-wwdp-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out,
                transform 0.6s ease-out;
}

.sc-wwdp-animate-on-scroll.sc-wwdp-is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════
   2. PDF SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.sc-wwdp-pdf-section {
    margin: var(--sys-spacing-lg) 0;
    padding: var(--sys-spacing-lg);
    background: var(--comp-surface-base);
    border: 1px dashed var(--comp-border-color);
    border-radius: var(--sys-radius-lg);
    text-align: center;
}

.sc-wwdp-pdf-notice {
    margin-bottom: var(--sys-spacing-md);
}

/* ═══════════════════════════════════════════════════════════════════════
   3. INVOICE TEMPLATE (PRINT-ONLY)
   ═══════════════════════════════════════════════════════════════════════ */

#sc-wwdp-invoice-template {
    display: none;
    direction: rtl;
    /*font-family: var(--font-family-base);*/
    padding: var(--sys-spacing-lg) var(--sys-spacing-xl);
    background: var(--sys-color-neutral-0);
    max-width: 800px;
    margin: 0 auto;
}

.invoice-header {
    text-align: center;
    margin-bottom: var(--sys-spacing-lg);
    padding-bottom: var(--sys-spacing-sm);
    border-bottom: 3px solid var(--sys-color-success-500);
}

.invoice-logo {
    margin-bottom: var(--sys-spacing-sm);
}

.invoice-logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.invoice-header h2 {
    color: var(--sys-color-neutral-900);
    margin: var(--sys-spacing-xs) 0;
    /*font-family: var(--font-family-heading);*/
    font-weight: var(--weight-bold);
    line-height: var(--leading-compact);
}

.invoice-meta {
    display: flex;
    justify-content: center;
    gap: var(--sys-spacing-xl);
    margin-top: var(--sys-spacing-sm);
    padding: var(--sys-spacing-sm);
    background: var(--sys-color-neutral-100);
    border-radius: var(--sys-radius-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--sys-spacing-xs);
}

.invoice-notice {
    background: linear-gradient(
        135deg,
        var(--sys-color-primary) 0%,
        var(--sys-color-secondary) 100%
    );
    color: var(--sys-color-neutral-0);
    padding: var(--sys-spacing-sm) var(--sys-spacing-md);
    border-radius: var(--sys-radius-sm);
    margin-bottom: var(--sys-spacing-md);
    display: flex;
    align-items: start;
    gap: var(--sys-spacing-sm);
    line-height: var(--leading-compact);
}

.invoice-notice strong {
    font-weight: var(--weight-bold);
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--sys-spacing-sm);
    background: var(--sys-color-neutral-0);
    border-radius: var(--sys-radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.invoice-table thead tr {
    background: linear-gradient(
        135deg,
        var(--sys-color-success-500) 0%,
        var(--sys-color-success-600) 100%
    );
    color: var(--sys-color-neutral-0);
}

.invoice-table thead th {
    padding: var(--sys-spacing-sm) var(--sys-spacing-md);
    /*font-family: var(--font-family-base);*/
    font-weight: var(--weight-semibold);
    text-align: right;
}

.invoice-table tbody tr {
    border-bottom: 1px solid var(--comp-border-color);
}

.invoice-table tbody tr:last-child {
    border-bottom: none;
}

.invoice-table td {
    padding: var(--sys-spacing-sm) var(--sys-spacing-md);
    line-height: var(--leading-compact);
}

.label-col {
    color: var(--sys-color-neutral-800);
    font-weight: var(--weight-regular);
    width: 58%;
}

.value-col {
    color: var(--sys-color-neutral-900);
    font-weight: var(--weight-semibold);
    text-align: left;
}

.price-col {
    color: var(--sys-color-success-500);
}

.highlight-row {
    background: rgba(46, 125, 50, 0.06) !important;
}

.total-row {
    background: linear-gradient(
        135deg,
        var(--sys-color-danger-500) 0%,
        #B71C1C 100%
    ) !important;
    color: var(--sys-color-neutral-0) !important;
}

.total-row td {
    color: var(--sys-color-neutral-0) !important;
    padding: var(--sys-spacing-sm) var(--sys-spacing-md);
}

.total-label {
    font-weight: var(--weight-bold);
}

.total-value {
    font-weight: var(--weight-extrabold) !important;
    text-align: left;
}

.invoice-footer {
    margin-top: var(--sys-spacing-lg);
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--sys-color-success-500),
        transparent
    );
    margin-bottom: var(--sys-spacing-sm);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: var(--sys-spacing-xl);
    margin-bottom: var(--sys-spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--sys-spacing-xs);
    color: var(--sys-color-neutral-900);
}

.footer-note {
    /*font-family: var(--font-family-base);*/
    color: var(--sys-color-neutral-800);
    margin: var(--sys-spacing-sm) 0 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   4. HERO — 2-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

.sc-wwdp-hero-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sys-spacing-lg);
    margin-bottom: var(--sys-spacing-3xl);
    direction: rtl;
}

.sc-wwdp-hero-text-side {
    flex: 1;
    text-align: right;
}

.sc-wwdp-hero {
    text-align: justify;
}

.sc-wwdp-hero-description {
    text-align: justify;
}

@media (max-width: 768px) {
    .sc-wwdp-hero-flex-container {
        flex-direction: column-reverse;
        text-align: justify;
    }

    .sc-wwdp-hero-text-side {
        text-align: justify;
    }

    .sc-wwdp-hero-image-side img {
        width: 200px;
        height: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   5. CUSTOM SELECT INPUT
   ═══════════════════════════════════════════════════════════════════════ */

.sc-wwdp-select-input {
    width: 100%;
        height: 50px;
    padding: 0 var(--sys-spacing-md) 0 var(--sys-spacing-2xl) !important;
    border: 2px solid var(--comp-border-color);
    border-radius: var(--sys-radius-md);
    /*font-family: var(--font-family-base);*/
    /*font-size: var(--size-body);*/
    background-color: var(--sys-color-neutral-0) !important;
    color: var(--sys-color-neutral-900);
    cursor: pointer;
    outline: none;
    display: block;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23616161' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left var(--sys-spacing-md) center !important;
    background-size: 13px !important;
    transition: border-color var(--comp-transition-fast),
                box-shadow var(--comp-transition-fast);
}

.sc-wwdp-select-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23283593' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    border-color: var(--sys-color-primary);
    box-shadow: 0 0 0 4px rgba(40, 53, 147, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════
   6. PRICING CALCULATOR — Layout Only
   ═══════════════════════════════════════════════════════════════════════ */

.sc-wwdp-pricing-calculator-section {
    margin-bottom: var(--sys-spacing-3xl);
    padding: var(--sys-spacing-xl) var(--sys-spacing-lg);
    text-align: start;
}

.sc-wwdp-pricing-calculator-section h2 {
    margin-bottom: var(--sys-spacing-sm);
    text-align: center;
}

.sc-wwdp-pricing-calculator-section > p {
    text-align: center;
}

.sc-wwdp-calculator-wrapper {
    margin: var(--sys-spacing-lg) auto 0;
}

.sc-wwdp-form-group {
    margin-bottom: var(--sys-spacing-lg);
}

.sc-wwdp-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sys-spacing-md);
    margin: var(--sys-spacing-lg) 0;
}

.sc-wwdp-price-result {
    display: flex;
    flex-direction: column;
    margin-top: var(--sys-spacing-2xl);
}

.sc-wwdp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-wwdp-price-value {
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════
   7. BASE PRICE TABLE
   ═══════════════════════════════════════════════════════════════════════ */

.price-table-container {
    direction: rtl;
    margin: var(--sys-spacing-lg) 0;
    overflow-x: auto;
}

.base-price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--comp-surface-base);
    border-radius: var(--sys-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.base-price-table thead {
    background-color: var(--sys-color-primary);
    color: var(--sys-color-neutral-0);
}

.base-price-table th,
.base-price-table td {
    padding: var(--sys-spacing-md) var(--sys-spacing-lg);
    text-align: justify;
    border-bottom: 1px solid var(--comp-border-color);
    line-height: var(--leading-body);
}

.base-price-table th {
    /*font-family: var(--font-family-base);*/
    font-weight: var(--weight-bold);
    text-align: right;
}

/*.base-price-table td {*/
/*    font-family: var(--font-family-base);*/
/*    font-size: var(--size-body);*/
/*}*/

.base-price-table tbody tr:hover {
    background-color: var(--sys-color-neutral-100);
}

.price-tag {
    color: var(--sys-color-success-500);
    font-weight: var(--weight-bold);
    text-align: right;
}

@media screen and (max-width: 768px) {
    .base-price-table thead {
        display: none;
    }

    .base-price-table,
    .base-price-table tbody,
    .base-price-table tr,
    .base-price-table td {
        display: block;
        width: 100%;
    }

    .base-price-table tr {
        margin-bottom: var(--sys-spacing-md);
        border: 1px solid var(--comp-border-color);
        border-radius: var(--sys-radius-lg);
        padding: var(--sys-spacing-sm);
        background: var(--comp-surface-base);
    }

    .base-price-table td {
        padding-right: 45%;
        position: relative;
        border-bottom: 1px solid var(--sys-color-neutral-100);
        text-align: justify;
    }

    .base-price-table td:last-child {
        border-bottom: none;
    }

    .base-price-table td::before {
        content: attr(data-label);
        position: absolute;
        right: var(--sys-spacing-md);
        width: 40%;
        font-weight: var(--weight-bold);
        color: var(--sys-color-neutral-900);
        text-align: right;
    }

    .price-tag {
        display: block;
        color: var(--sys-color-secondary);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   8. PRICE COMPARISON SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.price-comparison-section {
    margin: var(--sys-spacing-xs);
    text-align: center;
    padding: var(--sys-spacing-xl);
    background-color: var(--comp-surface-base);
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--card-shadow);
}

.price-comparison-section h2 {
    /*font-family: var(--font-family-heading);*/
    /*font-size: var(--size-h2);*/
    font-weight: var(--weight-extrabold);
    color: var(--sys-color-primary);
    margin-bottom: var(--sys-spacing-lg);
}

.comparison-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--card-shadow);
    margin-top: var(--sys-spacing-lg);
}

/* ═══════════════════════════════════════════════════════════════════════
   9. CTA — Layout Only
   ═══════════════════════════════════════════════════════════════════════ */

.sc-wwdp-final-cta-section {
    margin: var(--sys-spacing-3xl) auto;
    padding: var(--sys-spacing-2xl) var(--sys-spacing-lg);
    text-align: center;
}

.sc-wwdp-final-cta-section h2 {
    margin-top: 0;
    margin-bottom: var(--sys-spacing-md);
}

.sc-wwdp-final-cta-section p {
    margin-bottom: var(--sys-spacing-lg);
    text-align: center;
}

.sc-wwdp-final-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sys-spacing-lg);
}

/* ═══════════════════════════════════════════════════════════════════════
   10. PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════ */

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body > * {
        display: none !important;
    }

    body > #sc-wwdp-invoice-template {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        background: white !important;
    }

    .invoice-table,
    .invoice-header,
    .invoice-notice,
    .invoice-footer {
        page-break-inside: avoid !important;
    }

    .invoice-table tbody tr {
        page-break-inside: avoid !important;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html,
    body {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
}