/* Modern Card-Based UI for All Service Templates */
/* Maroon (#7C2D3A) and Orange (#E67E22) Color Scheme */

/* Service Wrapper */
.dpsp-service-wrapper.dpsp-modern {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 50%, #F9FAFB 100%);
    padding: 40px 20px;
    min-height: 100vh;
}

.dpsp-service-container-modern {
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Header */
.dpsp-service-header-modern {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #7C2D3A 0%, #5A1F29 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(124, 45, 58, 0.2);
}

.dpsp-service-title-modern {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
}

.dpsp-service-subtitle-modern {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

/* Content Grid */
.dpsp-content-grid-modern {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Cards */
.dpsp-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(124, 45, 58, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dpsp-card-modern:hover {
    box-shadow: 0 8px 24px rgba(124, 45, 58, 0.12);
}

.dpsp-card-header-modern {
    padding: 24px;
    border-bottom: 2px solid #F3F4F6;
}

.dpsp-card-header-modern h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #7C2D3A;
}

.dpsp-card-header-modern p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

.dpsp-card-body-modern {
    padding: 24px;
}

/* Upload Dropzone */
.dpsp-dropzone-modern {
    border: 3px dashed #D1D5DB;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: #F9FAFB;
    cursor: pointer;
}

.dpsp-dropzone-modern:hover {
    border-color: #7C2D3A;
    background: #FEF3F4;
    transform: scale(1.01);
}

.dpsp-dropzone-modern.dragover {
    border-color: #7C2D3A;
    background: #FEF3F4;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(124, 45, 58, 0.1);
}

.dpsp-dropzone-label-modern {
    cursor: pointer;
    display: block;
}

.dpsp-dropzone-icon-modern svg {
    color: #7C2D3A;
    margin-bottom: 20px;
}

.dpsp-dropzone-text-modern {
    font-size: 18px;
    color: #1F2937;
    margin-bottom: 8px;
}

.dpsp-dropzone-text-modern strong {
    color: #7C2D3A;
    font-weight: 600;
}

.dpsp-dropzone-hint-modern {
    font-size: 14px;
    color: #6B7280;
}

/* Uploaded Files List */
.dpsp-uploaded-files-list-modern {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #F3F4F6;
}

.dpsp-files-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dpsp-files-header-modern h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

/* Hide legacy header-level Clear/Remove button. We only want per-file Delete buttons. */
#clear-file { display: none !important; }

.dpsp-btn-text-modern {
    background: none;
    border: none;
    color: #7C2D3A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.dpsp-btn-text-modern:hover {
    color: #5A1F29;
    text-decoration: underline;
}

.dpsp-files-container-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Option Groups */
.dpsp-option-group-modern {
    margin-bottom: 24px;
}

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

.dpsp-option-label-modern {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 12px;
}

/* Button Groups */
.dpsp-button-group-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dpsp-button-group-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dpsp-button-group-4 {
    grid-template-columns: repeat(2, 1fr);
}

/* Option Buttons */
.dpsp-option-btn-modern {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dpsp-option-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #7C2D3A 0%, #5A1F29 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dpsp-option-btn-modern:hover {
    border-color: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.dpsp-option-btn-modern:hover::before {
    opacity: 0.05;
}

.dpsp-option-btn-modern.active {
    background: linear-gradient(135deg, #7C2D3A 0%, #5A1F29 100%);
    border-color: #7C2D3A;
    color: white;
    box-shadow: 0 4px 16px rgba(124, 45, 58, 0.25);
    transform: translateY(-2px);
}

.dpsp-option-btn-modern.active::before {
    opacity: 0;
}

.dpsp-btn-text-opt,
.dpsp-btn-price-opt,
.dpsp-btn-size-opt {
    position: relative;
    z-index: 1;
}

.dpsp-btn-text-opt svg,
.dpsp-btn-price-opt svg {
    color: white;
}

.dpsp-btn-text-opt {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.dpsp-btn-price-opt,
.dpsp-btn-size-opt {
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

.dpsp-option-btn-modern.active .dpsp-btn-price-opt,
.dpsp-option-btn-modern.active .dpsp-btn-size-opt {
    opacity: 0.95;
}

/* Summary Sticky */
.dpsp-summary-sticky-modern {
    position: sticky;
    top: 20px;
}

.dpsp-summary-card-modern {
    box-shadow: 0 8px 32px rgba(124, 45, 58, 0.12);
}

.dpsp-summary-items-modern,
.dpsp-summary-totals-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dpsp-summary-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.dpsp-summary-label-modern {
    color: #6B7280;
    font-weight: 500;
}

.dpsp-summary-value-modern {
    font-weight: 600;
    color: #1F2937;
}

.dpsp-summary-divider-modern {
    height: 2px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 20px 0;
}

/* Pricing Details */
.dpsp-pricing-details-modern {
    font-size: 14px;
}

.dpsp-pricing-title-modern {
    font-weight: 600;
    color: #7C2D3A;
    margin-bottom: 12px;
    font-size: 15px;
}

.dpsp-pricing-item-modern {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #6B7280;
}

.dpsp-pricing-item-modern.dpsp-discount-modern {
    color: #10B981;
    font-weight: 600;
}

/* Grand Total */
.dpsp-grand-total-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #7C2D3A;
    padding: 16px;
    background: linear-gradient(135deg, #FEF3F4 0%, #FFF 100%);
    border-radius: 12px;
    margin: -8px -8px 0;
}

/* Primary Button */
.dpsp-btn-primary-modern {
    width: 100%;
    background: linear-gradient(135deg, #7C2D3A 0%, #5A1F29 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(124, 45, 58, 0.2);
}

.dpsp-btn-primary-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 45, 58, 0.3);
    background: linear-gradient(135deg, #6A2532 0%, #4A1720 100%);
}

.dpsp-btn-primary-modern:active:not(:disabled) {
    transform: translateY(0);
}

.dpsp-btn-primary-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.dpsp-btn-large-modern {
    padding: 18px;
    font-size: 17px;
}

/* Help Text */
.dpsp-help-text-modern {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #F3F4F6;
}

.dpsp-help-text-modern p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpsp-help-text-modern p:last-child {
    margin-bottom: 0;
}

/* File Item (for uploaded files list) */
.dpsp-file-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dpsp-file-item-modern:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.dpsp-file-info-modern {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dpsp-file-icon-modern {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7C2D3A 0%, #5A1F29 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.dpsp-file-details-modern {
    flex: 1;
}

.dpsp-file-name-modern {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
    display: block;
}

.dpsp-file-meta-modern {
    font-size: 12px;
    color: #6B7280;
}

.dpsp-file-actions-modern {
    display: flex;
    gap: 8px;
}

.dpsp-file-remove-btn-modern {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dpsp-file-remove-btn-modern:hover {
    background: #FEE2E2;
    transform: scale(1.05);
}

/* Progress Bar */
.dpsp-upload-progress-modern {
    margin-top: 16px;
}

.dpsp-progress-bar-modern {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dpsp-progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #7C2D3A 0%, #E67E22 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.dpsp-progress-text-modern {
    font-size: 13px;
    color: #6B7280;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dpsp-content-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .dpsp-summary-sticky-modern {
        position: static;
    }
    
    .dpsp-service-title-modern {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .dpsp-service-wrapper.dpsp-modern {
        padding: 20px 15px;
    }
    
    .dpsp-service-header-modern {
        padding: 20px;
    }
    
    .dpsp-service-title-modern {
        font-size: 28px;
    }
    
    .dpsp-service-subtitle-modern {
        font-size: 16px;
    }
    
    .dpsp-button-group-modern,
    .dpsp-button-group-3,
    .dpsp-button-group-4 {
        grid-template-columns: 1fr;
    }
    
    .dpsp-card-header-modern,
    .dpsp-card-body-modern {
        padding: 20px;
    }
    
    .dpsp-dropzone-modern {
        padding: 40px 20px;
    }
    
    .dpsp-grand-total-modern {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dpsp-service-title-modern {
        font-size: 24px;
    }
    
    .dpsp-service-subtitle-modern {
        font-size: 14px;
    }
    
    .dpsp-option-btn-modern {
        padding: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpsp-card-modern {
    animation: fadeIn 0.4s ease-out;
}

.dpsp-file-item-modern {
    animation: fadeIn 0.3s ease-out;
}

/* Loading State */
.dpsp-loading-modern {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.dpsp-loading-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #E5E7EB;
    border-top-color: #7C2D3A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   NOTIFICATION SYSTEM WITH SVG ICONS
   ============================================ */

.dpsp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    border-left: 4px solid;
}

.dpsp-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.dpsp-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpsp-notification-icon svg {
    width: 100%;
    height: 100%;
}

.dpsp-notification-content {
    flex: 1;
    min-width: 0;
}

.dpsp-notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1F2937;
}

.dpsp-notification-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

.dpsp-notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.dpsp-notification-close:hover {
    background: #F3F4F6;
    color: #4B5563;
}

/* Success Notification */
.dpsp-notification-success {
    border-left-color: #10B981;
}

.dpsp-notification-success .dpsp-notification-icon {
    color: #10B981;
}

.dpsp-notification-success .dpsp-notification-title {
    color: #065F46;
}

/* Error Notification */
.dpsp-notification-error {
    border-left-color: #EF4444;
}

.dpsp-notification-error .dpsp-notification-icon {
    color: #EF4444;
}

.dpsp-notification-error .dpsp-notification-title {
    color: #991B1B;
}

/* Warning Notification */
.dpsp-notification-warning {
    border-left-color: #F59E0B;
}

.dpsp-notification-warning .dpsp-notification-icon {
    color: #F59E0B;
}

.dpsp-notification-warning .dpsp-notification-title {
    color: #92400E;
}

/* Info Notification */
.dpsp-notification-info {
    border-left-color: #3B82F6;
}

.dpsp-notification-info .dpsp-notification-icon {
    color: #3B82F6;
}

.dpsp-notification-info .dpsp-notification-title {
    color: #1E40AF;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dpsp-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .dpsp-notification.show {
        transform: translateY(0);
    }
    
    .dpsp-notification {
        transform: translateY(-100px);
    }
}

/* ============================================
   INFO BOX (Quantity Note)
   ============================================ */

.dpsp-info-box-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    color: #1E40AF;
    font-size: 14px;
    line-height: 1.5;
}

.dpsp-info-box-modern svg {
    flex-shrink: 0;
    color: #3B82F6;
}

.dpsp-info-box-modern span {
    flex: 1;
}
