/* Dhiman Print Services Pro - Service Pages CSS */

:root {
    /* Primary Colors - Maroon */
    --maroon-primary: #7C2D3A;
    --maroon-dark: #5A1F29;
    --maroon-light: #9E3D4B;
    --maroon-hover: #6A2532;
    --maroon: #7C2D3A;
    --maroon-700: #6A2532;
    --maroon-800: #5A1F29;
    
    /* Accent Colors - Orange */
    --orange-primary: #E67E22;
    --orange-dark: #CA6510;
    --orange-light: #F39C12;
    --orange-hover: #D35400;
    --accent: #E67E22;
    --accent-dark: #D35400;
    
    /* Semantic Colors */
    --success: #10B981;
    --success-dark: #059669;
    --error: #EF4444;
    --error-dark: #DC2626;
    --warning: #F59E0B;
    --warning-dark: #D97706;
    --info: #3B82F6;
    --info-dark: #2563EB;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --bg: var(--gray-50);
    --card: #ffffff;
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --text-inverse: #FFFFFF;
    --muted: var(--gray-600);
    
    /* Glass Effect */
    --glass: rgba(255,255,255,0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Shadows with Maroon Tint */
    --shadow-sm: 0 2px 8px rgba(124, 45, 58, 0.08);
    --shadow-md: 0 4px 16px rgba(124, 45, 58, 0.12);
    --shadow-lg: 0 8px 32px rgba(124, 45, 58, 0.16);
    --shadow-xl: 0 12px 48px rgba(124, 45, 58, 0.20);
    --shadow-2xl: 0 16px 64px rgba(124, 45, 58, 0.24);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Service Wrapper */
.dpsp-service-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    min-height: 100vh;
    position: relative;
}

.dpsp-service-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(124, 45, 58, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(230, 126, 34, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dpsp-service-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Service Header */
.dpsp-service-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-700) 50%, var(--maroon-800) 100%);
    border-radius: 24px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.dpsp-service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.dpsp-service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: var(--glass);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.dpsp-service-icon svg {
    color: black;
}

.dpsp-service-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: white;
}

.dpsp-service-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Configuration Section */
.dpsp-config-section {
    background: var(--card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.dpsp-option-block {
    margin-bottom: 35px;
}

.dpsp-option-block:last-child {
    margin-bottom: 0;
}

.dpsp-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 15px;
}

.dpsp-label-icon {
    font-size: 20px;
}

/* Icon Cards */
.dpsp-icon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.dpsp-icon-cards-large {
    grid-template-columns: repeat(2, 1fr);
}

.dpsp-icon-card {
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.dpsp-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.dpsp-icon-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-xl), 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.dpsp-icon-card:hover::before {
    opacity: 0.05;
}

.dpsp-icon-card.active {
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
    border-color: var(--maroon-primary);
    color: white;
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(124, 45, 58, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-4px) scale(1.02);
    animation: activeCardPulse 2s ease-in-out infinite;
}

@keyframes activeCardPulse {
    0%, 100% { box-shadow: var(--shadow-xl), 0 0 0 4px rgba(124, 45, 58, 0.15), inset 0 1px 0 rgba(255,255,255,0.1); }
    50% { box-shadow: var(--shadow-xl), 0 0 0 6px rgba(124, 45, 58, 0.2), inset 0 1px 0 rgba(255,255,255,0.1); }
}

.dpsp-icon-card.active::before {
    opacity: 0;
}

.dpsp-card-icon {
    margin-bottom: 12px;
}

.dpsp-icon-card.active .dpsp-card-icon svg {
    stroke: black;
}

.dpsp-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.dpsp-card-desc {
    font-size: 13px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.dpsp-icon-card.active .dpsp-card-desc {
    opacity: 0.95;
}

/* Image Swatches */
.dpsp-image-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.dpsp-swatch-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.dpsp-swatch-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.dpsp-swatch-card.active {
    border-color: var(--maroon-primary);
    background: white;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(124, 45, 58, 0.1);
    transform: translateY(-2px);
}

.dpsp-swatch-preview {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.dpsp-paper-preview {
    background: white;
    border: 2px solid var(--maroon);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.dpsp-swatch-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 4px;
}

.dpsp-swatch-size {
    font-size: 12px;
    color: var(--muted);
}

.dpsp-swatch-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
}

/* Visual Cards */
.dpsp-visual-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.dpsp-visual-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.dpsp-visual-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.dpsp-visual-card.active {
    border-color: var(--maroon-primary);
    background: white;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(124, 45, 58, 0.1);
    transform: translateY(-2px);
}

.dpsp-visual-icon {
    margin-bottom: 12px;
}

.dpsp-visual-card.active .dpsp-visual-icon svg {
    stroke: var(--maroon);
}

.dpsp-visual-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 6px;
}

.dpsp-visual-desc {
    font-size: 13px;
    color: var(--muted);
}

/* Multi-Select Cards */
.dpsp-multi-select-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.dpsp-select-card {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dpsp-select-card:hover {
    border-color: var(--accent);
}

.dpsp-select-card.active {
    border-color: var(--maroon);
    background: white;
    box-shadow: var(--shadow-sm);
}

.dpsp-select-icon {
    margin-bottom: 10px;
}

.dpsp-select-card.active .dpsp-select-icon svg {
    stroke: var(--maroon);
}

.dpsp-select-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 4px;
}

.dpsp-select-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Quantity Input */
.dpsp-quantity-input,
.dpsp-quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 300px;
}

.dpsp-qty-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--maroon-primary);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.dpsp-qty-btn:hover {
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.dpsp-qty-btn:active {
    transform: scale(0.95);
}

.dpsp-qty-btn:hover svg {
    stroke: black;
}

.dpsp-qty-btn svg {
    stroke: var(--maroon-primary);
    transition: var(--transition-fast);
}

.dpsp-qty-value {
    flex: 1;
    height: 44px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--maroon);
}

.dpsp-qty-value:focus {
    outline: none;
    border-color: var(--maroon);
}

.dpsp-input-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* Upload Zone */
.dpsp-upload-zone {
    margin-top: 10px;
}

.dpsp-upload-box {
    display: block;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border: 3px dashed var(--gray-300);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.dpsp-upload-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(230, 126, 34, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.dpsp-upload-box:hover {
    border-color: var(--orange-primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dpsp-upload-box:hover::before {
    opacity: 1;
}

.dpsp-upload-icon svg {
    stroke: var(--maroon);
    opacity: 0.6;
}

.dpsp-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
    margin: 15px 0 8px;
}

.dpsp-upload-formats {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px;
}

.dpsp-upload-req {
    font-size: 12px;
    color: var(--muted);
}

.dpsp-uploaded-file {
    margin-top: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dpsp-file-name {
    font-weight: 600;
    color: var(--maroon);
}

/* Size Selector (Map Printing) */
.dpsp-size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.dpsp-size-card {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.dpsp-size-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dpsp-size-card.active {
    border-color: var(--maroon);
    background: white;
    box-shadow: var(--shadow-md);
}

.dpsp-size-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    margin-bottom: 15px;
}

.dpsp-size-box {
    background: white;
    border: 3px solid var(--maroon);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.dpsp-size-label {
    font-weight: 700;
    color: var(--maroon);
    font-size: 18px;
}

.dpsp-size-info {
    text-align: center;
}

.dpsp-size-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 4px;
}

.dpsp-size-dim {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.dpsp-size-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dpsp-price-bw, .dpsp-price-color {
    font-size: 12px;
    font-weight: 600;
}

.dpsp-price-bw {
    color: #555;
}

.dpsp-price-color {
    color: var(--accent);
}

/* Photo Sizes */
.dpsp-photo-sizes .dpsp-photo-preview {
    background: linear-gradient(135deg, var(--bg) 0%, white 100%);
    border: 2px solid var(--maroon);
    border-radius: 4px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.dpsp-photo-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--maroon) 100%);
    border-radius: 2px;
    opacity: 0.3;
}

/* Texture Swatches */
.dpsp-texture-swatches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dpsp-texture-large {
    grid-template-columns: repeat(2, 1fr);
}

.dpsp-texture-card {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dpsp-texture-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dpsp-texture-card.active {
    border-color: var(--maroon);
    background: white;
    box-shadow: var(--shadow-md);
}

.dpsp-texture-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpsp-texture-matt {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.dpsp-texture-gloss {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, #fff 100%);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.dpsp-texture-sample {
    width: 80%;
    height: 80%;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.dpsp-texture-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 4px;
}

.dpsp-texture-desc {
    font-size: 13px;
    color: var(--muted);
}

.dpsp-texture-price {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
}

/* Quality Cards */
.dpsp-quality-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dpsp-quality-card {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dpsp-quality-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dpsp-quality-card.active {
    border-color: var(--maroon);
    background: white;
    box-shadow: var(--shadow-md);
}

.dpsp-quality-icon {
    margin-bottom: 12px;
}

.dpsp-quality-card.active .dpsp-quality-icon svg {
    stroke: var(--maroon);
}

.dpsp-quality-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 6px;
}

.dpsp-quality-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.dpsp-quality-desc {
    font-size: 13px;
    color: var(--muted);
}

/* Quantity Tiers */
.dpsp-quantity-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.dpsp-quantity-tiers-compact {
    grid-template-columns: repeat(3, 1fr);
}

.dpsp-tier-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.dpsp-tier-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.dpsp-tier-card.active {
    border-color: var(--maroon-primary);
    background: linear-gradient(135deg, white 0%, rgba(124, 45, 58, 0.03) 100%);
    box-shadow: var(--shadow-xl), 0 0 0 3px rgba(124, 45, 58, 0.15);
    transform: translateY(-4px) scale(1.02);
}

.dpsp-tier-popular {
    border-color: var(--orange-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05) 0%, white 100%);
}

.dpsp-tier-best {
    border-color: var(--maroon-primary);
    background: linear-gradient(135deg, rgba(124, 45, 58, 0.08) 0%, rgba(230, 126, 34, 0.05) 100%);
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(124, 45, 58, 0.1);
}

.dpsp-tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.dpsp-tier-best .dpsp-tier-badge {
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
}

.dpsp-tier-qty {
    font-size: 16px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 8px;
}

.dpsp-tier-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 6px;
}

.dpsp-tier-unit {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.dpsp-tier-save {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* Dynamic Pricing Display */
.dpsp-pricing-breakdown {
    background: linear-gradient(135deg, rgba(124, 45, 58, 0.02) 0%, white 100%);
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: inset 0 2px 8px rgba(124, 45, 58, 0.03);
}

.dpsp-pricing-breakdown-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpsp-pricing-breakdown-title::before {
    content: '💰';
    font-size: 16px;
}

.dpsp-pricing-tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid var(--gray-100);
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.dpsp-pricing-tier-item:hover {
    border-color: var(--orange-primary);
    transform: translateX(6px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.dpsp-pricing-tier-item:last-child {
    margin-bottom: 0;
}

.dpsp-pricing-tier-item.active {
    background: linear-gradient(135deg, rgba(124, 45, 58, 0.08) 0%, rgba(230, 126, 34, 0.08) 100%);
    border-color: var(--maroon-primary);
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(124, 45, 58, 0.1);
    transform: translateX(4px) scale(1.02);
}

.dpsp-tier-range {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.dpsp-tier-rate {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.dpsp-pricing-tier-item.active .dpsp-tier-rate {
    color: var(--maroon);
}

/* Spiral Binding Pricing Display */
.dpsp-binding-pricing {
    background: white;
    border: 2px dashed var(--gray-100);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.dpsp-binding-pricing-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dpsp-binding-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.dpsp-binding-price-item {
    background: var(--gray-50);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.dpsp-binding-price-item:hover {
    background: white;
    border-color: var(--accent);
}

.dpsp-binding-price-item.active {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-700) 100%);
    color: white;
    border-color: var(--maroon);
}

.dpsp-binding-pages {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dpsp-binding-cost {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.dpsp-binding-price-item.active .dpsp-binding-cost {
    color: white;
}

/* Custom Quantity Section */
.dpsp-custom-qty-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.dpsp-custom-qty-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--maroon);
    font-weight: 600;
}

.dpsp-custom-qty-toggle {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dpsp-custom-qty-input {
    margin-top: 15px;
}

/* Material Cards */
.dpsp-material-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dpsp-material-card {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 15px;
}

.dpsp-material-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dpsp-material-card.active {
    border-color: var(--maroon);
    background: white;
    box-shadow: var(--shadow-md);
}

.dpsp-material-preview {
    position: relative;
}

.dpsp-material-sample {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid var(--maroon);
    box-shadow: var(--shadow-sm);
}

.dpsp-paper-white {
    background: #ffffff;
}

.dpsp-paper-bond {
    background: #f9f9f5;
}

.dpsp-material-weight {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--maroon);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.dpsp-material-info {
    flex: 1;
}

.dpsp-material-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 6px;
}

.dpsp-material-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.dpsp-material-price {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* Upload Dual (Visiting Cards) */
.dpsp-upload-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dpsp-upload-side {
    display: flex;
    flex-direction: column;
}

.dpsp-side-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 10px;
}

.dpsp-upload-compact {
    padding: 30px 15px;
}

.dpsp-upload-compact .dpsp-upload-icon svg {
    width: 48px;
    height: 48px;
}

.dpsp-upload-compact .dpsp-upload-title {
    font-size: 14px;
    margin: 10px 0 0;
}

/* Upload Specs */
.dpsp-upload-specs {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg);
    border-radius: 8px;
}

.dpsp-spec-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.dpsp-spec-row:last-child {
    margin-bottom: 0;
}

.dpsp-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.dpsp-spec-item svg {
    stroke: var(--accent);
    flex-shrink: 0;
}

.dpsp-spec-item strong {
    color: var(--maroon);
}

/* Price Summary */
.dpsp-price-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dpsp-summary-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    border: 2px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.dpsp-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon-primary) 0%, var(--orange-primary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.dpsp-summary-card:hover {
    box-shadow: var(--shadow-2xl), 0 0 0 2px var(--orange-primary);
    transform: translateY(-2px);
}

.dpsp-summary-card:hover::before {
    opacity: 1;
}

.dpsp-summary-header {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-700) 100%);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.dpsp-summary-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.dpsp-summary-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dpsp-summary-header h3::before {
    content: '🧾';
    font-size: 24px;
}

.dpsp-summary-body {
    padding: 24px;
}

.dpsp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.dpsp-summary-row:hover {
    padding-left: 8px;
    color: var(--maroon);
}

.dpsp-summary-value {
    font-weight: 700;
    color: var(--maroon);
    font-size: 15px;
}

.dpsp-summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.dpsp-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
}

.dpsp-total-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--maroon);
    background: linear-gradient(135deg, var(--maroon) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dpsp-discount-row {
    color: var(--accent);
}

.dpsp-discount-row .dpsp-summary-value {
    color: var(--accent);
}

/* Add to Cart Button */
.dpsp-add-cart-btn {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
    color: white;
    border: none;
    border-radius: 0 0 24px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.dpsp-add-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.dpsp-add-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.dpsp-add-cart-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(124, 45, 58, 0.5), 0 0 0 3px rgba(230, 126, 34, 0.2);
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-primary) 100%);
}

.dpsp-add-cart-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 24px rgba(124, 45, 58, 0.4);
}

.dpsp-add-cart-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
    filter: grayscale(1);
}

.dpsp-add-cart-btn svg {
    stroke: black;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dpsp-service-container {
        grid-template-columns: 1fr;
    }
    
    .dpsp-price-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .dpsp-service-wrapper {
        padding: 20px 15px;
    }
    
    .dpsp-service-header {
        padding: 30px 15px;
    }
    
    .dpsp-service-title {
        font-size: 28px;
    }
    
    .dpsp-config-section {
        padding: 20px;
    }
    
    .dpsp-icon-cards,
    .dpsp-image-swatches,
    .dpsp-visual-cards,
    .dpsp-size-selector,
    .dpsp-texture-swatches,
    .dpsp-quality-cards,
    .dpsp-quantity-tiers,
    .dpsp-material-cards,
    .dpsp-upload-dual {
        grid-template-columns: 1fr;
    }
    
    .dpsp-multi-select-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dpsp-quantity-tiers-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dpsp-service-title {
        font-size: 24px;
    }
    
    .dpsp-service-subtitle {
        font-size: 16px;
    }
    
    .dpsp-multi-select-cards {
        grid-template-columns: 1fr;
    }
}

/* Notification Styles */
.dpsp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 500px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    z-index: 99999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--gray-100);
}

.dpsp-notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: notificationBounce 0.6s ease-out;
}

@keyframes notificationBounce {
    0% { transform: translateX(400px) scale(0.8); }
    50% { transform: translateX(-10px) scale(1.05); }
    100% { transform: translateX(0) scale(1); }
}

.dpsp-notification-success {
    border-left: 6px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, white 100%);
}

.dpsp-notification-error {
    border-left: 6px solid var(--error);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, white 100%);
}

.dpsp-notification strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Upload Status */
.dpsp-upload-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    text-align: center;
}

.dpsp-upload-zone.has-files {
    border-color: var(--maroon);
    background: rgba(123, 30, 58, 0.02);
}

/* Button States */
.dpsp-add-cart-btn.disabled,
.dpsp-add-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
}

.dpsp-add-cart-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Details */
.dpsp-file-details {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    word-break: break-word;
}

/* Quantity Selector */
.dpsp-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 140px;
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
}

.dpsp-qty-minus,
.dpsp-qty-plus {
    background: var(--gray-50);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--maroon);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.dpsp-qty-minus:hover,
.dpsp-qty-plus:hover {
    background: var(--maroon);
    color: white;
}

.dpsp-qty-minus:active,
.dpsp-qty-plus:active {
    transform: scale(0.95);
}

.dpsp-qty-value {
    border: none;
    background: white;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--maroon);
    width: 60px;
    height: 40px;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.dpsp-qty-value::-webkit-outer-spin-button,
.dpsp-qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
