/**
 * Quote CSS — Styles for quote request form, summary, thank-you, and print
 * ArcticBlue Theme
 */

/* ==========================
   QUOTE PAGE COMMON
   ========================== */
.quote-page,
.quote-show-page,
.quote-thank-you {
    /* max-width: 1100px; */
    margin: 0 auto;
}

.quote-page-title {
    font-size: 28px;
    line-height: 1.2;
}

.quote-page-subtitle {
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================
   QUOTE CARD
   ========================== */
.quote-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.quote-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.quote-card-header {
    background: #f7f9fc;
    padding: 16px 20px;
    border-bottom: 1px solid #e8ecf1;
}

.quote-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.quote-card-body {
    padding: 20px;
}

/* ==========================
   QUOTE ITEMS TABLE
   ========================== */
.quote-items-table table {
    border-collapse: collapse;
}

.quote-items-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 10px 15px;
    border-bottom: 2px solid #e8ecf1;
}

.quote-items-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #f0f3f6;
    vertical-align: middle;
    font-size: 14px;
}

.quote-items-table tbody tr:last-child td {
    border-bottom: none;
}

.quote-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

.quote-item-name {
    font-size: 14px;
}

.quote-item-sku {
    font-size: 12px;
}

.quote-item-option-badge {
    display: inline-block;
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
    margin-top: 4px;
    color: #555;
    max-width: 350px;
}

.quote-items-note {
    background: #fef8e7;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #f5e6b8;
}

/* ==========================
   QUOTE FORM INPUTS
   ========================== */
.quote-input {
    border: 1px solid #dce1e8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-input:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
    outline: none;
}

.quote-input.is-invalid {
    border-color: #dc3545;
}

/* ==========================
   FILE UPLOAD ZONE
   ========================== */
.quote-upload-zone {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.quote-upload-zone:hover,
.quote-upload-zone.drag-over {
    border-color: #1a1a2e;
    background: #f7f9fc;
}

.upload-zone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-zone-icon {
    font-size: 36px;
    color: #aab4c3;
}

.file-preview-item {
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

/* ==========================
   QUOTE SUBMIT
   ========================== */
.quote-submit-btn {
    padding: 14px 24px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
}

/* ==========================
   THANK YOU PAGE
   ========================== */
.quote-thank-you {
    padding: 20px 0 40px;
}

.thank-you-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.thank-you-circle i {
    font-size: 36px;
    color: #fff;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.quote-reference-card {
    background: #2e2f31;
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    display: inline-block;
    min-width: 300px;
}

.quote-ref-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 6px;
}

.quote-ref-number {
    font-size: 24px;
    letter-spacing: 1px;
}

.quote-next-steps {
    text-align: left;
}

.next-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-email-notice {
    background: #e8f5e9;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: #2e7d32;
}

/* ==========================
   QUOTE STATUS BADGES
   ========================== */
.quote-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ==========================
   QUOTE TOTALS
   ========================== */
.quote-totals {
    border-top: 1px solid #e8ecf1;
    padding-top: 10px;
}

.totals-grand {
    font-size: 16px;
    margin-top: 5px;
}

.quote-pricing-note {
    background: #f0f4f8;
    padding: 10px 14px;
    border-radius: 8px;
}

/* ==========================
   QUOTE INFO ROWS
   ========================== */
.quote-info-row label {
    display: block;
    margin-bottom: 2px;
}

/* ==========================
   QUOTE LIST TABLE
   ========================== */
.quote-list-table table {
    border-collapse: collapse;
    width: 100%;
}

.quote-list-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 12px 15px;
    border-bottom: 2px solid #e8ecf1;
    text-align: left;
}

.quote-list-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #f0f3f6;
    font-size: 14px;
    vertical-align: middle;
}

/* ==========================
   QUOTE DOC ITEMS
   ========================== */
.quote-doc-item {
    border-bottom: 1px solid #f0f3f6;
}

.quote-doc-item:last-child {
    border-bottom: none;
}

/* ==========================
   PRINT STYLES
   ========================== */
@media print {

    .main-header,
    .main-footer,
    .breadcrumb-wrap,
    .quote-cta-buttons,
    .quote-submit-section,
    .quote-upload-zone,
    [onclick*="print"],
    .footer-area {
        display: none !important;
    }

    .quote-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    body {
        background: #fff !important;
    }

    .container {
        max-width: 100% !important;
    }
}