/* ==========================================================================
   MULTI-STEP QUOTE BUILDER & LIVE ORDER SUMMARY
   Embroidery Patches UK - Modern Luminous Layout
   ========================================================================== */

.quote-page-section {
    padding: 120px 0 60px;
    background-color: var(--color-bg-base, #f8fafc);
    position: relative;
}

@media (max-width: 991px) {
    .quote-page-section {
        padding: 85px 0 40px;
    }
}

.quote-header-box {
    margin-bottom: 30px;
}

.quote-header-box .quote-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.quote-header-box .quote-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 0;
}

/* Step Header */
.quote-step-header {
    margin-bottom: 16px;
}

.quote-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.quote-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-primary);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.quote-step-desc {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Card Grid for Step 1, 3, 4, 6 */
.quote-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

@media (max-width: 1199px) {
    .quote-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .quote-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.quote-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.quote-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {

    .quote-card-grid-2,
    .quote-card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quote-card-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Choice Card */
.quote-choice-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quote-choice-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(29, 128, 195, 0.12);
}

.quote-choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote-choice-card.is-selected {
    border-color: #1d80c3;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(29, 128, 195, 0.18), 0 4px 12px rgba(29, 128, 195, 0.08);
}

.quote-choice-card .card-check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
}

.quote-choice-card.is-selected .card-check-icon {
    background: #1d80c3;
    color: #ffffff;
    transform: scale(1.05);
}

.quote-choice-card .choice-img-wrap {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.quote-choice-card .choice-img-wrap img {
    max-width: 100%;
    max-height: 95px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.quote-choice-card:hover .choice-img-wrap img {
    transform: scale(1.05);
}

.quote-choice-card .choice-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0;
}

.quote-choice-card.is-selected .choice-label {
    color: #0c589e;
}

.quote-choice-card .choice-subtext {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    margin-top: 3px;
}

/* Step 2: Size Inputs */
.quote-size-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quote-input-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.quote-input-group .form-control,
.quote-input-group .form-select {
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;
}

.quote-input-group .form-control:focus,
.quote-input-group .form-select:focus {
    border-color: #1d80c3;
    box-shadow: 0 0 0 3px rgba(29, 128, 195, 0.15);
}

/* Step 5: Quantity Buttons Grid */
.quote-qty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 991px) {
    .quote-qty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .quote-qty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quote-qty-btn {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quote-qty-btn:hover {
    border-color: #1d80c3;
    color: #1d80c3;
    background: #f8fafc;
}

.quote-qty-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote-qty-btn.is-selected {
    border-color: #1d80c3;
    background: #1d80c3;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(29, 128, 195, 0.25);
}

.custom-qty-wrap {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 28px;
    animation: fadeIn 0.25s ease;
}

/* Form Sections */
.quote-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quote-section-card .section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* Form Inputs */
.quote-input-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.quote-input-group .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    height: 48px;
    padding: 10px 14px;
    color: #0f172a;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.quote-input-group textarea.form-control {
    height: auto;
    min-height: 90px;
}

.quote-input-group .form-control:focus {
    border-color: #1d80c3;
    box-shadow: 0 0 0 3px rgba(29, 128, 195, 0.15);
    outline: none;
}

/* File Upload Box - Balanced Height (48px) */
.quote-upload-dropzone {
    border: 1.5px dashed #93c5fd;
    background: #f8fafc;
    border-radius: 8px;
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.quote-upload-dropzone:hover {
    border-color: #1d80c3;
    background: #f0f7ff;
}

.quote-upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}

.upload-icon-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.upload-icon-label .upload-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.upload-icon-label .upload-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.upload-browse-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quote-upload-dropzone:hover .upload-browse-badge {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.upload-sub-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11.5px;
    color: #64748b;
    gap: 8px;
    min-height: 20px;
}

.upload-sub-info .upload-hint {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
}

.file-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 14px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.file-selected-chip .btn-remove-file {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 0 0 4px;
    display: inline-flex;
    align-items: center;
}

/* Submit Button */
.btn-complete-quote {
    background: var(--color-brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 50em;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-complete-quote:hover {
    background: var(--color-brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
    color: #ffffff;
}

.btn-complete-quote:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sticky Order Summary Sidebar */
.pvc-order-summary-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 110px !important;
    margin-top: 1rem !important;
    z-index: 20;
}

@media (max-width: 991.98px) {
    .pvc-order-summary-wrapper {
        position: static !important;
        margin-top: 2rem !important;
    }
}

.pvc-order-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1d80c3;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
}

.pvc-order-summary-card .summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.pvc-order-summary-card .summary-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.pvc-order-summary-card .live-pill {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pvc-order-summary-card .live-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.summary-group-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-brand-primary);
    margin-top: 14px;
    margin-bottom: 8px;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 13.5px;
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
    gap: 10px;
}

.summary-list-item .item-label {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.summary-list-item .item-value {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.summary-list-item .item-value.is-empty {
    color: #94a3b8;
    font-weight: 500;
    font-style: italic;
}

.summary-trust-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.summary-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.summary-trust-item svg,
.summary-trust-item img {
    color: #10b981;
    flex-shrink: 0;
}

/* Success Alert */
.quote-success-alert {
    display: none;
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.quote-success-alert .success-icon {
    width: 48px;
    height: 48px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.quote-success-alert h4 {
    color: #065f46;
    font-weight: 800;
    margin-bottom: 8px;
}

.quote-success-alert p {
    color: #047857;
    margin-bottom: 0;
}

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

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}