/**
 * DTG Quote Builder Specific Styles
 * Overrides and additions to embroidery-quote-builder.css
 * Only DTG-specific customizations here
 */

/* DTG-specific location cards */
.location-card.combo {
    /* Combo cards should have neutral background, not green */
    background: white;
    /* Optional: Add subtle visual distinction */
    border-style: dashed;
}

/* DTG-specific product display adjustments */
.dtg-product-display {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

/* DTG-specific LTM warning styling */
.ltm-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid #f59e0b;
}

.ltm-warning i {
    color: #f59e0b;
}

/* DTG-specific size group line for pricing display */
.size-group-line {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.size-group-line .price {
    color: var(--text-primary);
}

/* DTG Improved Location Selector Layout */
.dtg-quote-builder .location-selector {
    padding: 0;
}

/* Location Section Styling */
.dtg-quote-builder .location-section {
    margin-bottom: 2rem;
}

/* Section Headers with Visual Separator Line */
.dtg-quote-builder .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.dtg-quote-builder .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #28a745 0%, #28a745 30%, transparent 100%);
}

.dtg-quote-builder .section-number {
    background: #28a745;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

.dtg-quote-builder .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.dtg-quote-builder .section-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-left: auto;
    font-weight: normal;
}

/* Horizontal Card Layout */
.dtg-quote-builder .location-cards.horizontal {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 16px 0 !important;
    margin: 0 !important;
}

/* Single Location Cards - 5 cards fit nicely */
.dtg-quote-builder .single-locations .location-cards {
    justify-content: flex-start;
}

/* Combination Location Cards - 4 cards with more space */
.dtg-quote-builder .combo-locations .location-cards {
    justify-content: flex-start;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .dtg-quote-builder .section-subtitle {
        display: none; /* Hide subtitle on mobile */
    }
    
    .dtg-quote-builder .location-card {
        min-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .dtg-quote-builder .location-cards.horizontal {
        gap: 8px !important;
    }
    
    .dtg-quote-builder .location-card {
        min-width: 100px !important;
        height: 70px !important;
        padding: 12px !important;
    }
    
    .dtg-quote-builder .location-card i {
        font-size: 1.25rem !important;
    }
}

/* Ensure location cards are properly displayed */
.dtg-quote-builder .location-option {
    display: block !important;
    margin: 0 !important;
    width: 100% !important;  /* Ensure full width within grid cell */
}

/* Compact Horizontal Card Design */
.dtg-quote-builder .location-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 140px !important;
    height: 80px !important;
    box-sizing: border-box !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Combo cards slightly wider */
.dtg-quote-builder .location-card.combo {
    min-width: 160px !important;
}

/* Hover and Selection States */
.dtg-quote-builder .location-card:hover {
    border-color: #28a745 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15) !important;
}

.dtg-quote-builder input[type="radio"]:checked + .location-card {
    background: linear-gradient(135deg, #28a745, #218838) !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.dtg-quote-builder input[type="radio"]:checked + .location-card i,
.dtg-quote-builder input[type="radio"]:checked + .location-card .location-name,
.dtg-quote-builder input[type="radio"]:checked + .location-card .location-code,
.dtg-quote-builder input[type="radio"]:checked + .location-card::before {
    color: white !important;
}

/* Icon styling - smaller for horizontal layout */
.dtg-quote-builder .location-card i {
    font-size: 1.5rem !important;
    color: #28a745 !important;
    flex-shrink: 0 !important;
}

/* Location text container */
.dtg-quote-builder .location-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1 !important;
}

/* Location name and code styling */
.dtg-quote-builder .location-card .location-name {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    color: #333 !important;
    white-space: nowrap !important;
}

.dtg-quote-builder .location-card .location-code {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    color: #666 !important;
    white-space: nowrap !important;
}

/* Price tier indicator */
.dtg-quote-builder .location-card::before {
    content: attr(data-price-tier);
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.65rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove old section divider - no longer needed */
.dtg-quote-builder .section-divider {
    display: none;
}

/* Scrollbar styling for horizontal scroll */
.dtg-quote-builder .location-cards.horizontal::-webkit-scrollbar {
    height: 6px;
}

.dtg-quote-builder .location-cards.horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dtg-quote-builder .location-cards.horizontal::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}

.dtg-quote-builder .location-cards.horizontal::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* =============================================
   UNSAVED INDICATOR - REDESIGNED
   ============================================= */
.dtg-quote-builder .unsaved-indicator,
.dtg-quote-builder #save-indicator {
    position: fixed !important;
    bottom: 30px !important;  /* Move to bottom */
    right: 30px !important;
    top: auto !important;
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
    z-index: 100 !important;
    animation: fadeIn 0.3s ease !important;
}

.dtg-quote-builder .unsaved-indicator.show,
.dtg-quote-builder .unsaved-indicator.has-changes,
.dtg-quote-builder #save-indicator.show {
    display: flex !important;
}

/* Saved state (green) */
.dtg-quote-builder #save-indicator.saved {
    background: linear-gradient(135deg, #28a745, #218838) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.size-group-line .total {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* DTG print location selection specific - removed duplicate styles */
.location-selection {
    margin-bottom: 2rem;
}

.location-group {
    margin-bottom: 2rem;
}

.location-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Selected location display */
.selected-location-display {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.selected-location-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.selected-location-info i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* =============================================
   STEP 2: DTG-SPECIFIC STYLING ENHANCEMENTS
   Builds on embroidery-quote-builder.css base
   ============================================= */

/* Ensure product search container has proper styling */
.product-search-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* DTG-specific search row enhancement */
.search-row {
    display: grid;
    grid-template-columns: 2fr 2fr auto;
    gap: 1rem;
    align-items: end;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Ensure suggestions dropdown is styled properly */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-top: -2px;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

.suggestion-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* DTG-specific product display enhancement */
#product-display {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

/* DTG product info specific styling */
.product-info {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.product-info img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.product-info img:hover {
    transform: scale(1.05);
}

.product-details {
    flex: 1;
}

.product-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.product-meta {
    font-weight: 500;
    color: var(--primary-color);
}

/* DTG-specific size matrix styling - Enhanced */
.size-matrix {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Clean header with left accent instead of full gradient */
.size-matrix h4 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

/* Green accent bar on the left */
.size-matrix h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* Icon after the text */
.size-matrix h4::after {
    content: '\f553'; /* Font Awesome ruler icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.7;
}

/* Enhanced size inputs container with background */
#size-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbfc 100%);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Fix: Target the actual class name used by DTG JavaScript */
.size-input {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Enhanced label styling - gradient badges like embroidery */
.size-input label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding: 6px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 6px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Fix: Target the actual input class name used by DTG */
.size-qty {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: white;
}

/* Hover state */
.size-qty:hover {
    border-color: var(--primary-light);
    background: #fafbfc;
}

/* Focus state */
.size-qty:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 179, 84, 0.15);
    background: white;
    transform: translateY(-1px);
}

/* When input has a value */
.size-qty:not(:placeholder-shown),
.size-qty[value]:not([value=""]):not([value="0"]) {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.total-row {
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
}

.total-row span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* DTG button styling */
#add-to-quote-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#add-to-quote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 179, 84, 0.3);
}

#add-to-quote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Load product button specific styling */
#load-product-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#load-product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#load-product-btn:hover::before {
    left: 100%;
}

#load-product-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 179, 84, 0.3);
}

#load-product-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   PRODUCTS IN QUOTE SECTION STYLING
   ============================================= */

/* Products list container */
.products-list {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.products-list h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

/* Green accent bar for the heading */
.products-list h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* Products container */
#products-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty state message */
.empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

/* Individual product card */
.product-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect for product card */
.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 179, 84, 0.15);
    transform: translateY(-2px);
}

/* Product image section */
.product-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* No image placeholder */
.product-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
}

.product-card-image .no-image i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Product details section */
.product-card-details {
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.product-card-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-details .product-color {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.product-card-details .product-sizes {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin: 0.25rem 0;
    font-weight: 500;
}

.product-card-details .product-quantity {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

/* Product actions section */
.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Remove button */
.btn-remove {
    padding: 0.5rem 1rem;
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-remove:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn-remove i {
    font-size: 0.875rem;
}

/* Aggregate total section */
.aggregate-total {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(76, 179, 84, 0.2);
}

.aggregate-total strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.aggregate-total #aggregate-quantity {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tier display */
#tier-display {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

#tier-display #current-tier {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* LTM warning enhanced */
#ltm-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid #f59e0b;
}

#ltm-warning i {
    color: #f59e0b;
    font-size: 1.125rem;
}

/* DTG-specific responsive adjustments */
@media (max-width: 768px) {
    .location-options {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .size-inputs {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    /* Product cards on mobile */
    .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card-image {
        width: 100px;
        height: 100px;
    }
    
    .product-card-details {
        width: 100%;
    }
    
    .product-card-details h4 {
        justify-content: center;
    }
    
    .product-card-actions {
        width: 100%;
    }
    
    .btn-remove {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   DTG STANDALONE STEP 3 STYLING
   Self-contained CSS with own variables
   ============================================= */

/* DTG CSS Variables - Standalone */
.dtg-quote-builder {
    --dtg-primary: #4cb354;
    --dtg-primary-dark: #409a47;
    --dtg-primary-light: #5bc85f;
    --dtg-white: #ffffff;
    --dtg-gray-50: #f8f9fa;
    --dtg-gray-100: #e5e7eb;
    --dtg-gray-600: #6b7280;
    --dtg-gray-900: #1f2937;
    --dtg-red: #dc2626;
    --dtg-green-50: #f0fdf4;
}

/* ============ CUSTOMER INFORMATION SECTION ============ */
.customer-info-section {
    background: var(--dtg-white) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
    border: 2px solid var(--dtg-gray-100) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.customer-info-section h3 {
    margin: 0 0 1.5rem 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--dtg-gray-900) !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid var(--dtg-primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    padding-left: 1rem !important;
    background: linear-gradient(135deg, var(--dtg-gray-50) 0%, var(--dtg-white) 100%) !important;
    border-radius: 8px !important;
    padding: 1rem 1rem 1rem 2rem !important;
    margin: -0.5rem -0.5rem 1.5rem -0.5rem !important;
}

.customer-info-section h3::before {
    content: '' !important;
    position: absolute !important;
    left: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 28px !important;
    background: linear-gradient(180deg, var(--dtg-primary), var(--dtg-primary-light)) !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 4px rgba(76, 179, 84, 0.3) !important;
}

/* ============ FORM STYLING ============ */
.form-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.form-row:last-child {
    margin-bottom: 0 !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.form-group.full-width {
    grid-column: 1 / -1 !important;
}

.form-group label {
    font-weight: 600 !important;
    color: var(--dtg-gray-900) !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.5rem !important;
}

.form-group label:has(+ [required])::after {
    content: ' *' !important;
    color: var(--dtg-red) !important;
    font-weight: 700 !important;
}

.form-control,
select.form-control,
textarea.form-control {
    width: 100% !important;
    padding: 1rem !important;
    border: 2px solid var(--dtg-gray-100) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background: var(--dtg-white) !important;
    transition: all 0.3s ease !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none !important;
    border-color: var(--dtg-primary) !important;
    background: var(--dtg-white) !important;
    box-shadow: 0 0 0 4px rgba(76, 179, 84, 0.15) !important;
    transform: translateY(-1px) !important;
}

.form-control:hover,
select.form-control:hover,
textarea.form-control:hover {
    border-color: var(--dtg-primary-light) !important;
}

textarea.form-control {
    resize: vertical !important;
    min-height: 120px !important;
    max-height: 200px !important;
    line-height: 1.6 !important;
}

select.form-control {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234cb354' d='M6 9L2 5h8z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}

/* ============ QUOTE SUMMARY SECTION ============ */
.quote-summary-section {
    background: var(--dtg-white) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    border: 2px solid var(--dtg-gray-100) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 2rem !important;
}

.quote-summary-section h3 {
    margin: 0 0 1.5rem 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--dtg-gray-900) !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid var(--dtg-primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    padding-left: 1rem !important;
    background: linear-gradient(135deg, var(--dtg-gray-50) 0%, var(--dtg-white) 100%) !important;
    border-radius: 8px !important;
    padding: 1rem 1rem 1rem 2rem !important;
    margin: -0.5rem -0.5rem 1.5rem -0.5rem !important;
}

.quote-summary-section h3::before {
    content: '' !important;
    position: absolute !important;
    left: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 28px !important;
    background: linear-gradient(180deg, var(--dtg-primary), var(--dtg-primary-light)) !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 4px rgba(76, 179, 84, 0.3) !important;
}

.quote-header-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.25rem !important;
    background: linear-gradient(135deg, var(--dtg-green-50) 0%, var(--dtg-white) 100%) !important;
    border-radius: 10px !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid var(--dtg-primary-light) !important;
    box-shadow: 0 2px 6px rgba(76, 179, 84, 0.1) !important;
}

.quote-id-display {
    font-weight: 600 !important;
    color: var(--dtg-gray-900) !important;
    font-size: 1rem !important;
}

.quote-id-display span {
    color: var(--dtg-primary) !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
}

.quote-validity {
    font-size: 0.875rem !important;
    color: var(--dtg-gray-600) !important;
}

.quote-validity span {
    font-weight: 600 !important;
    color: var(--dtg-gray-900) !important;
}

.location-summary {
    padding: 1rem 1.25rem !important;
    background: var(--dtg-green-50) !important;
    border-left: 4px solid var(--dtg-primary) !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important;
    box-shadow: 0 2px 4px rgba(76, 179, 84, 0.1) !important;
}

.location-summary strong {
    color: var(--dtg-gray-900) !important;
}

.location-summary span {
    color: var(--dtg-primary) !important;
    font-weight: 600 !important;
}

/* ============ QUOTE TOTALS ============ */
.quote-totals {
    border-top: 3px solid var(--dtg-primary) !important;
    padding-top: 1.25rem !important;
    margin-top: 1.5rem !important;
    background: linear-gradient(135deg, var(--dtg-gray-50) 0%, var(--dtg-white) 100%) !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    margin: 1.5rem -0.5rem 0 -0.5rem !important;
}

.total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    font-size: 1rem !important;
}

.total-row span:first-child {
    color: var(--dtg-gray-600) !important;
    font-weight: 500 !important;
}

.total-row span:last-child {
    font-weight: 600 !important;
    color: var(--dtg-gray-900) !important;
}

.total-row.grand-total {
    border-top: 2px solid var(--dtg-primary) !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    font-size: 1.25rem !important;
    background: linear-gradient(135deg, var(--dtg-primary-light), var(--dtg-primary)) !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 1rem !important;
    margin: 0.75rem -0.5rem 0 -0.5rem !important;
}

.grand-total span:first-child {
    font-weight: 700 !important;
    color: white !important;
}

.grand-total span:last-child {
    font-weight: 800 !important;
    color: white !important;
    font-size: 1.375rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* ============ ACTION BUTTONS ============ */
.quote-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-top: 2rem !important;
    padding-top: 2rem !important;
    border-top: 2px solid var(--dtg-gray-100) !important;
}

.btn-save-quote,
.btn-email-quote,
.btn-print-quote {
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border: none !important;
    min-width: 140px !important;
    justify-content: center !important;
}

.btn-save-quote {
    background: linear-gradient(135deg, var(--dtg-primary) 0%, var(--dtg-primary-dark) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(76, 179, 84, 0.2) !important;
}

.btn-save-quote:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(76, 179, 84, 0.4) !important;
}

.btn-email-quote {
    background: var(--dtg-white) !important;
    color: var(--dtg-primary) !important;
    border: 2px solid var(--dtg-primary) !important;
}

.btn-email-quote:hover {
    background: var(--dtg-primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(76, 179, 84, 0.3) !important;
}

.btn-print-quote {
    background: var(--dtg-white) !important;
    color: var(--dtg-gray-600) !important;
    border: 2px solid var(--dtg-gray-100) !important;
}

.btn-print-quote:hover {
    border-color: var(--dtg-gray-600) !important;
    color: var(--dtg-gray-900) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    .customer-info-section,
    .quote-summary-section {
        padding: 1.5rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .quote-header-info {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
    
    .quote-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .btn-save-quote,
    .btn-email-quote,
    .btn-print-quote {
        width: 100% !important;
        justify-content: center !important;
    }
}