/* ============================================================================
   OnMove Direct - Product Inquiry & Chat
   File: product_contact.css
   Load after responsive.css
   ============================================================================ */

.pc-page {
    width: 100%;
    background: #f8fafc;
    color: #0f172a;
}

.pc-container {
    width: min(1100px, calc(100% - 30px));
    margin: 0 auto;
    padding: 30px 0 65px;
}

.pc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

.pc-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.pc-product-bar {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}

.pc-product-image,
.pc-product-placeholder {
    width: 105px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.pc-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pc-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-weight: 900;
}

.pc-eyebrow {
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pc-product-summary h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.pc-product-price {
    margin-top: 9px;
    color: #102a43;
    font-size: 19px;
    font-weight: 900;
}

.pc-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 11px;
    line-height: 1.5;
}

.pc-alert-error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.pc-alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.pc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.pc-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #102a43;
    font-weight: 800;
    text-decoration: none;
}

.pc-tab:hover {
    border-color: #2563eb;
}

.pc-tab.active {
    border-color: #2563eb;
    background: #102a43;
    color: #ffffff;
}

.pc-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}

.pc-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid #e2e8f0;
}

.pc-card-heading h2 {
    margin: 0 0 6px;
    color: #102a43;
    font-size: 24px;
}

.pc-card-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.pc-form {
    padding: 22px;
}

.pc-form-group {
    margin-bottom: 18px;
}

.pc-form-group label,
.pc-chat-label {
    display: block;
    margin-bottom: 7px;
    color: #102a43;
    font-size: 14px;
    font-weight: 800;
}

.pc-form-group input,
.pc-form-group textarea,
.pc-chat-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.pc-form-group input {
    min-height: 50px;
    padding: 12px 14px;
}

.pc-form-group textarea,
.pc-chat-form textarea {
    min-height: 160px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.55;
}

.pc-form-group input:focus,
.pc-form-group textarea:focus,
.pc-chat-form textarea:focus {
    outline: 3px solid rgba(37, 99, 235, .12);
    border-color: #2563eb;
}

.pc-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pc-signed-in {
    color: #64748b;
    font-size: 13px;
}

.pc-signed-in strong {
    color: #102a43;
}

.pc-submit {
    min-height: 48px;
    padding: 11px 20px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.pc-submit-primary {
    background: #2563eb;
    color: #ffffff;
}

.pc-submit-primary:hover {
    background: #1d4ed8;
}

.pc-chat-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
}

.pc-chat-status {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf8f0;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.pc-chat-messages {
    flex: 1 1 auto;
    min-height: 340px;
    max-height: 520px;
    overflow-y: auto;
    padding: 22px;
    background: #f8fafc;
}

.pc-message {
    max-width: 78%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.pc-message:last-child {
    margin-bottom: 0;
}

.pc-message-customer {
    margin-left: auto;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.pc-message-staff {
    margin-right: auto;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.pc-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: 12px;
}

.pc-message-meta strong {
    color: #102a43;
}

.pc-message-meta time {
    color: #7b8794;
    white-space: nowrap;
}

.pc-message-body {
    color: #334e68;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.pc-chat-empty {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
}

.pc-chat-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.pc-chat-empty h3 {
    margin: 0 0 5px;
    color: #102a43;
    font-size: 22px;
}

.pc-chat-empty p {
    margin: 0;
}

.pc-chat-form {
    padding: 18px 22px 22px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.pc-chat-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.pc-chat-input-row textarea {
    min-height: 76px;
    margin: 0;
}

.pc-back-link {
    margin: 18px 0 0;
}

.pc-back-link a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 700px) {
    .pc-container {
        width: min(100% - 18px, 700px);
        padding-top: 20px;
    }

    .pc-product-bar {
        grid-template-columns: 75px minmax(0, 1fr);
        padding: 14px;
        gap: 13px;
    }

    .pc-product-image,
    .pc-product-placeholder {
        width: 75px;
        height: 75px;
    }

    .pc-card-heading {
        padding: 17px;
    }

    .pc-form,
    .pc-chat-form {
        padding: 17px;
    }

    .pc-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-submit {
        width: 100%;
    }

    .pc-message {
        max-width: 91%;
    }

    .pc-chat-input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pc-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pc-tab {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }

    .pc-product-summary h1 {
        font-size: 20px;
    }

    .pc-card-heading h2 {
        font-size: 21px;
    }

    .pc-message-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* PDP buttons linking to the contact system */
.pdp-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 22px;
}

.pdp-contact-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.pdp-contact-button:hover {
    transform: translateY(-1px);
}

.pdp-contact-inquiry {
    background: #f1f1f1;
    border-color: #cbd5e1;
    color: #102a43;
}

.pdp-contact-inquiry:hover {
    border-color: #2563eb;
    background: #f8fbff;
}

.pdp-contact-chat {
    background:#f2f2f2;
    color: #990000;
}

.pdp-contact-chat:hover {
    background: #f8fbff;
  color: blue;  
}

@media (max-width: 600px) {
    .pdp-contact-actions {
        grid-template-columns: 1fr;
    }
}
