/* Fixed Quotation Template Styles */
/* These styles should NEVER be distorted by the editor */

:root {
    --quote-primary: #1a3b8b; /* Dark blue from the image */
    --quote-text: #333333;
    --quote-gray: #e5e7eb;
    --quote-font: 'Inter', sans-serif;
}

.quotation-wrapper {
    /* For centering in the editor view */
    display: flex;
    justify-content: center;
    padding: 40px;
    background: #e2e8f0;
    min-height: 100%;
    overflow: auto;
}

.quotation-page {
    /* A4 dimensions at 96 DPI */
    width: 794px;
    height: 1123px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    font-family: var(--quote-font);
    color: var(--quote-text);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent anything from bleeding out */
    flex-shrink: 0;
}

.quotation-content {
    display: flex;
    flex: 1;
    padding: 30px;
    padding-bottom: 0; /* Footer handles its own padding */
    gap: 20px;
}

/* Left Column */
.quote-left-col {
    flex: 6;
    display: flex;
    flex-direction: column;
}

.brand-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.brand-logo-img {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
}

.quote-title-section {
    margin-bottom: 15px;
}

.quote-subtitle {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--quote-primary);
    text-transform: uppercase;
}

.quote-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--quote-primary);
    line-height: 1.1;
    font-style: italic;
    margin: 5px 0;
    text-transform: uppercase;
}

.quote-badge {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 4px 15px;
    font-weight: 700;
    font-size: 14px;
    font-style: italic;
    transform: skewX(-15deg);
    margin-bottom: 15px;
}
.quote-badge span {
    display: block;
    transform: skewX(15deg);
}

.quote-tags {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
}
.quote-tags span {
    padding: 0 5px;
}
.quote-tags span:not(:last-child) {
    border-right: 1px solid #ccc;
}

.quote-hero-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    min-height: 250px;
}

.quote-detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90px;
}

.detail-img-wrapper {
    width: 80px;
    text-align: center;
}

.detail-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 5px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-circle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.detail-label {
    font-size: 10px;
    font-weight: 600;
}

.main-product-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.main-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quote-views-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.view-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
}
.view-box img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}
.view-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.quote-price-table-container {
    margin-top: auto; /* Push to bottom of available space */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.quote-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.quote-price-table th {
    background: var(--quote-primary);
    color: white;
    padding: 12px 10px;
    font-weight: 600;
    text-align: center;
}
.quote-price-table th:first-child { text-align: left; padding-left: 15px; }

.quote-price-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.quote-price-table td:first-child { text-align: left; padding-left: 15px; font-weight: 600; }
.quote-price-table tr:last-child td { border-bottom: none; }

/* Right Column */
.quote-right-col {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 1px solid #eee;
    padding-left: 20px;
    position: relative; /* For quality badge */
}

.spec-section {
    margin-bottom: 15px;
}

.section-header {
    background: var(--quote-primary);
    color: white;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transform: skewX(-15deg);
    margin-bottom: 15px;
    display: inline-block;
    margin-left: 10px;
}
.section-header span {
    display: block;
    transform: skewX(15deg);
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.spec-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--quote-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--quote-primary);
    flex-shrink: 0;
}

.spec-content h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
}
.spec-content p {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}
.spec-content ul {
    margin: 3px 0 0 15px;
    padding: 0;
    font-size: 11px;
    color: #555;
}
.spec-content li {
    margin-bottom: 2px;
}

/* Features list */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.features-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid var(--quote-primary);
    border-radius: 50%;
    color: var(--quote-primary);
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.quality-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: #f1c40f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 4px dashed #b8860b;
}

.quality-badge-inner {
    background: var(--quote-primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.quality-badge-inner span:first-child { font-size: 8px; text-transform: uppercase; }
.quality-badge-inner span:nth-child(2) { font-size: 14px; font-weight: bold; }
.quality-badge-inner span:last-child { font-size: 7px; letter-spacing: 1px;}

/* Footer */
.quote-footer {
    height: 90px;
    display: flex;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.footer-features {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-feature svg {
    width: 24px;
    height: 24px;
    color: var(--quote-text);
}
.footer-feature span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-brand {
    background: var(--quote-primary);
    color: white;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 40px;
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 2px;
}
.footer-brand p {
    font-size: 11px;
    font-style: italic;
    opacity: 0.9;
}
