/* EEZY Product Configurator Styles
 * Colors sourced from eezy-design-suite brand-sync CSS variables
 */

.eezy-configurator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Progress Bar */
.configurator-progress {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.configurator-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--eezy-primary, #00A7E1) 0%, var(--eezy-primary-dark, #0086B4) 100%);
    transition: width 0.3s ease;
}

.configurator-progress-text {
    text-align: center;
    font-size: 14px;
    color: #64748B;
    margin-bottom: 40px;
}

/* Layout */
.configurator-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

@media (max-width: 1024px) {
    .configurator-layout {
        grid-template-columns: 1fr;
    }

    .configurator-sidebar {
        order: -1;
    }
}

/* Main Content */
.configurator-main {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.configurator-step {
    min-height: 400px;
}

.configurator-step.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Step Header */
.configurator-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--eezy-primary, #00A7E1);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.step-info p {
    font-size: 16px;
    color: #64748B;
    margin: 0;
}

/* Employee Count Selector */
.employee-count-selector {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: #F8FAFC;
    border-radius: 12px;
}

.employee-count-selector label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 16px;
}

.number-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.employee-count-input {
    flex: 1;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    color: #1E293B;
}

.btn-decrement, .btn-increment {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-decrement:hover, .btn-increment:hover {
    background: var(--eezy-primary, #00A7E1);
    border-color: var(--eezy-primary, #00A7E1);
    color: #FFFFFF;
}

.employee-count-presets {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.preset-btn {
    padding: 8px 20px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--eezy-primary, #00A7E1);
    border-color: var(--eezy-primary, #00A7E1);
    color: #FFFFFF;
}

/* Product Cards */
.product-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 4px 6px rgba(0, 167, 225, 0.1);
    transform: translateY(-2px);
}

.product-card input[type="radio"],
.product-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-card input:checked + .product-card-label {
    border-color: var(--eezy-primary, #00A7E1);
    background: var(--eezy-surface, #F5F5F5);
}

.product-card-label {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.2s;
}

.product-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
    margin-bottom: 12px;
}

.product-description {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 12px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.product-features span::before {
    content: "\2713 ";
    color: var(--eezy-success, #4CAF50);
    font-weight: 700;
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--eezy-success, #4CAF50);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.product-card.featured {
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 4px 6px rgba(0, 167, 225, 0.15);
}

/* Navigation */
.configurator-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #E2E8F0;
}

.btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--eezy-primary, #00A7E1);
    color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
    background: var(--eezy-primary-dark, #0086B4);
}

.btn-primary:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--eezy-primary, #00A7E1);
    border: 2px solid var(--eezy-primary, #00A7E1);
}

.btn-secondary:hover {
    background: var(--eezy-surface, #F5F5F5);
}

/* Sidebar */
.configurator-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.pricing-summary {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pricing-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #E2E8F0;
}

.summary-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

.item-name {
    font-size: 14px;
    color: #1E293B;
    font-weight: 500;
}

.item-price {
    font-size: 14px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-item {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.summary-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 20px 0;
}

#summary-monthly-total,
#summary-annual-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 12px;
}

#summary-monthly-total {
    font-weight: 700;
    font-size: 18px;
    color: var(--eezy-primary, #00A7E1);
}

.summary-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
    font-size: 12px;
    color: #64748B;
    text-align: center;
}

.empty-message {
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
    padding: 20px 0;
}

/* Step Help */
.step-help {
    margin-top: 40px;
    padding: 24px;
    background: #F8FAFC;
    border-left: 4px solid var(--eezy-primary, #00A7E1);
    border-radius: 8px;
}

.step-help h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.step-help p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* Review Page */
.review-summary {
    max-width: 800px;
}

.review-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #E2E8F0;
}

.review-section:last-child {
    border-bottom: none;
}

.review-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 16px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.pricing-table {
    background: #F8FAFC;
    padding: 24px;
    border-radius: 8px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.pricing-row.total {
    font-size: 24px;
    color: var(--eezy-primary, #00A7E1);
    padding-top: 16px;
    border-top: 2px solid #E2E8F0;
}

.next-steps {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 12px;
    color: #475569;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ECFDF5;
    border: 2px solid var(--eezy-success, #4CAF50);
    border-radius: 8px;
}

.guarantee-icon {
    width: 50px;
    height: 50px;
    background: var(--eezy-success, #4CAF50);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Messages */
.configurator-messages {
    margin: 20px 0;
    display: none;
}

.eezy-error-message {
    padding: 16px;
    background: #FEE2E2;
    border-left: 4px solid #EF4444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #991B1B;
}

/* Loading State */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
