﻿/* =========================================================
   Product PDF Page
   Primary Color: #f7b901
   Secondary Color: #0e5aa4
========================================================= */

.product-pdf {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: #f7faff;
}


/* =========================================================
   PDF Viewer
========================================================= */

.product-pdf-left {
    flex: 1;
    min-width: 0;
    height: 100vh;
    border-right: 1px solid #dce7f3;
    background: #ffffff;
}

.product-pdf-left iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}


/* =========================================================
   Right Sidebar
========================================================= */

.product-pdf-right {
    width: 420px;
    height: 100vh;
    box-sizing: border-box;
    padding: 28px 28px 36px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -8px 0 28px rgba(14, 90, 164, 0.14);
}

.product-pdf-right::-webkit-scrollbar {
    width: 6px;
}

.product-pdf-right::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #edf5fc;
}

.product-pdf-right::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #8fb8dc;
}

.product-pdf-right::-webkit-scrollbar-thumb:hover {
    background: #0e5aa4;
}


/* =========================================================
   Logo and Product Title
========================================================= */

.product-pdf-right .logo {
    margin-bottom: 22px;
}

.product-pdf-right .logo img {
    display: block;
    width: 132px;
    max-width: 100%;
    height: auto;
}

.product-pdf-right h1 {
    margin: 0 0 18px;
    color: #14243b;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    word-break: break-word;
}


/* =========================================================
   Product Summary
========================================================= */

.product-pdf-desc {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dce7f3;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #f7faff 0%,
        #fffaf0 100%
    );
}

.product-pdf-desc-left {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    background: #ffffff;
}

.product-pdf-desc-left img {
    display: block;
    width: auto !important;
    height: auto;
    max-width: 78px;
    max-height: 78px;
    object-fit: contain;
}

.product-pdf-desc-right {
    flex: 1;
    min-width: 0;
}

.product-pdf-desc-right a {
    display: inline-block;
    margin-bottom: 8px;
    color: #0e5aa4;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.product-pdf-desc-right a:hover {
    color: #f7b901;
    text-decoration: underline;
}

.product-pdf-desc-right em {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
    word-break: break-word;
}


/* =========================================================
   Form Title
========================================================= */

.product-pdf-right h2 {
    position: relative;
    margin: 0 0 18px;
    padding-left: 14px;
    color: #14243b;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.product-pdf-right h2::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: #f7b901;
}


/* =========================================================
   Inquiry Form
========================================================= */

.products-pdf-form-box {
    width: 100%;
}

.products-pdf-form-box dl {
    margin: 0 0 14px;
}

.products-pdf-form-box dt {
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.products-pdf-form-box dd {
    margin: 0;
}

.products-pdf-form-box .red {
    margin-left: 3px;
    color: #ff3b30;
}

.products-pdf-form-box .form-control {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dce7f3;
    border-radius: 10px;
    outline: none;
    background: #f7faff;
    color: #14243b;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.products-pdf-form-box .form-control:hover {
    border-color: #b7cde1;
}

.products-pdf-form-box .form-control:focus {
    border-color: #0e5aa4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 90, 164, 0.14);
}

.products-pdf-form-box .form-control::placeholder {
    color: #98a2b3;
}

.products-pdf-form-box textarea.form-control {
    height: 88px;
    padding: 11px 13px;
    line-height: 1.5;
    resize: vertical;
}

.products-pdf-form-box select.form-control {
    cursor: pointer;
}


/* =========================================================
   Submit Button
========================================================= */

.product-pdf-right .btn-default {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #0e5aa4 0%,
        #2879c4 100%
    );
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(14, 90, 164, 0.24);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.product-pdf-right .btn-default:hover {
    background: #f7b901;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(247, 185, 1, 0.28);
    transform: translateY(-1px);
}

.product-pdf-right .btn-default:active {
    transform: translateY(0);
}


/* =========================================================
   Empty PDF State
========================================================= */

.pdf-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 30px;
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(247, 185, 1, 0.10) 0,
            rgba(247, 185, 1, 0) 35%
        ),
        #f7faff;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}


/* =========================================================
   Mobile Layout
========================================================= */

@media (max-width: 768px) {
    .product-pdf {
        display: block;
        height: auto;
        overflow: visible;
    }

    .product-pdf-left {
        width: 100%;
        height: 58vh;
        min-height: 420px;
        border-right: 0;
        border-bottom: 1px solid #dce7f3;
    }

    .product-pdf-right {
        width: 100%;
        height: auto;
        padding: 24px 18px 32px;
        overflow: visible;
        box-shadow: none;
    }

    .product-pdf-right .logo {
        margin-bottom: 18px;
    }

    .product-pdf-right .logo img {
        width: 120px;
    }

    .product-pdf-right h1 {
        margin-bottom: 16px;
        font-size: 21px;
        line-height: 1.4;
    }

    .product-pdf-desc {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 22px;
        padding: 14px;
        border-radius: 12px;
    }

    .product-pdf-desc-left {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        border-radius: 10px;
    }

    .product-pdf-desc-left img {
        max-width: 66px;
        max-height: 66px;
    }

    .product-pdf-desc-right a {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 21px;
    }

    .product-pdf-desc-right em {
        font-size: 12px;
        line-height: 1.5;
    }

    .product-pdf-right h2 {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .products-pdf-form-box .form-control {
        height: 44px;
        font-size: 14px;
    }

    .products-pdf-form-box textarea.form-control {
        height: 96px;
    }

    .product-pdf-right .btn-default {
        height: 48px;
        font-size: 15px;
    }
}