/**
 * Quote Request Page & Popup Styles
 * Unified Green Gradient Design System
 */

/* ============================
   Quote Request Page
   ============================ */
.pc-quote-request-page {
    min-height: 100vh;
    background-color: var(--pc-background);
}

/* Success Page */
.pc-quote-success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.pc-success-card {
    max-width: 42rem;
    width: 100%;
    background: var(--pc-white);
    border-radius: var(--pc-radius-lg);
    box-shadow: var(--pc-shadow-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.pc-success-icon {
    width: 5rem;
    height: 5rem;
    color: var(--pc-primary-light);
    margin: 0 auto 1.5rem;
}

/* Header Section */
.pc-quote-header {
    position: relative;
    background: linear-gradient(135deg, var(--pc-white) 0%, var(--pc-background) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--pc-border-light);
    overflow: hidden;
}

.pc-quote-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.pc-quote-header p {
    font-size: 1.25rem;
    color: #64748b;
}

/* Card */
.pc-card {
    background: var(--pc-white);
    border-radius: var(--pc-radius-lg);
    box-shadow: var(--pc-shadow);
    margin-bottom: 1.5rem;
}

.pc-card-content {
    padding: 1.5rem;
}

/* Form */
.pc-quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pc-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--pc-border);
    border-radius: var(--pc-radius);
    font-size: 1rem;
    background: var(--pc-white);
    color: var(--pc-text);
    transition: all 0.25s ease;
}

.pc-input:focus {
    outline: none;
    border-color: var(--pc-primary-light);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.pc-input::placeholder {
    color: var(--pc-text-muted);
}

.pc-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--pc-border);
    border-radius: var(--pc-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--pc-white);
    color: var(--pc-text);
    resize: vertical;
    transition: all 0.25s ease;
}

.pc-textarea:focus {
    outline: none;
    border-color: var(--pc-primary-light);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.pc-textarea::placeholder {
    color: var(--pc-text-muted);
}

/* Submit Button */
.pc-btn-submit {
    width: 100%;
    background: var(--pc-gradient-primary);
    color: var(--pc-white);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--pc-radius-lg);
    box-shadow: var(--pc-shadow-green);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.pc-btn-submit:hover {
    background: var(--pc-gradient-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--pc-shadow-green-md);
}

.pc-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sticky Card */
.pc-sticky-card {
    position: sticky;
    top: 1.5rem;
}

/* Quote Cart Summary Items */
#pc-quote-cart-summary .space-y-3 > div {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--pc-background);
    border-radius: var(--pc-radius-lg);
    border: 1px solid var(--pc-border);
    transition: all 0.25s ease;
}

#pc-quote-cart-summary .space-y-3 > div:hover {
    border-color: var(--pc-primary-100);
    box-shadow: var(--pc-shadow-sm);
}

#pc-quote-cart-summary img {
    width: 5rem;
    height: 5rem;
    border-radius: var(--pc-radius);
    object-fit: cover;
    box-shadow: var(--pc-shadow-sm);
}

#pc-quote-cart-summary h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pc-text);
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

#pc-quote-cart-summary .text-xs {
    font-size: 0.8125rem;
    color: var(--pc-text-muted);
}

#pc-quote-cart-summary .text-sm {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pc-primary);
}

/* Outline Button */
.pc-btn-outline {
    display: inline-block;
    padding: 0.625rem 1rem;
    border: 2px solid var(--pc-primary);
    border-radius: var(--pc-radius);
    color: var(--pc-primary);
    background: transparent;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
}

.pc-btn-outline:hover {
    background: var(--pc-gradient-primary);
    color: var(--pc-white);
    border-color: transparent;
    box-shadow: var(--pc-shadow-green-sm);
}

/* ============================
   Quote Popup Overlay & Modal
   ============================ */
.pc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pc-popup-modal {
    background: var(--pc-white);
    border-radius: var(--pc-radius-xl);
    box-shadow: var(--pc-shadow-xl);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pc-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--pc-border);
}

.pc-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pc-text);
    margin: 0;
}

.pc-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--pc-background);
    color: var(--pc-text-light);
    border-radius: var(--pc-radius);
    cursor: pointer;
    transition: all 0.25s ease;
}

.pc-popup-close:hover {
    background: var(--pc-primary-50);
    color: var(--pc-primary);
}

.pc-popup-body {
    padding: 1.5rem;
}

.pc-popup-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--pc-border);
}

.pc-popup-footer .pc-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 640px) {
    .pc-popup-modal {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: var(--pc-radius-lg);
    }

    .pc-popup-header {
        padding: 1rem;
    }

    .pc-popup-body {
        padding: 1rem;
    }

    .pc-popup-footer {
        padding: 1rem;
        flex-direction: column;
    }
}

/* ============================
   Catalog/Bulk/Sample Popup System
   ============================ */
.pc-popup-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pc-popup-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.pc-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 9999999;
    max-width: 90vw;
    width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pc-popup.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.pc-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.pc-popup-close:hover {
    background: #e5e7eb;
}

.pc-popup-close-icon {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
}

.pc-popup-content {
    padding: 2rem;
    text-align: center;
}

.pc-popup-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pc-popup-icon-svg {
    width: 32px;
    height: 32px;
    color: #059669;
}

.pc-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.pc-popup-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

.pc-discount-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pc-tier {
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
}

.pc-tier-highlight {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #059669;
}

.pc-tier-quantity {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.pc-tier-discount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

.pc-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pc-btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.pc-btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pc-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pc-form-group {
    text-align: left;
}

.pc-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.pc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pc-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.pc-btn-icon-left {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Mobile */
@media (max-width: 640px) {
    .pc-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .pc-discount-tiers {
        grid-template-columns: 1fr;
    }
}
