/**
 * Estimate Calculator Styles
 * 
 * @package FashionXpart
 * @since FashionXpart 1.0
 */

:root {
    --fxp-calc-bg: #fdfdfd;
    --fxp-calc-border: #e0e0e0;
    --fxp-calc-gold: #C9A227;
    --fxp-calc-dark: #1A1A1A;
    --fxp-calc-text-muted: #666;
    --fxp-calc-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.fxp-calculator-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: var(--wp--style--global--content-size, 1200px);
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* Header */
.fxp-calculator-header {
    margin-bottom: 50px;
}
.fxp-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--fxp-calc-gold);
    font-weight: 600;
    margin-bottom: 10px;
}
.fxp-header-top::before,
.fxp-header-top::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--fxp-calc-gold);
}
.fxp-header-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--fxp-calc-dark);
    margin-bottom: 15px;
}
.fxp-header-subtitle {
    font-size: 16px;
    color: var(--fxp-calc-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Container */
.estimate-calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

/* Panels */
.estimate-order-panel, .estimate-result-panel {
    background: #fff;
    border: 1px solid var(--fxp-calc-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--fxp-calc-shadow);
}

.fxp-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.fxp-panel-icon {
    font-size: 20px;
}
.fxp-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fxp-calc-dark);
}

/* Input Groups */
.estimate-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--fxp-calc-dark);
}
.fxp-label-icon {
    flex-shrink: 0;
    color: var(--fxp-calc-gold);
}

.estimate-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.estimate-product-btn, .estimate-fabric-btn {
    cursor: pointer;
}

.estimate-product-btn .wp-block-button__link,
.estimate-fabric-btn .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    padding: 12px 8px !important;
    border: 2px solid var(--fxp-calc-border) !important;
    background: #fff !important;
    color: var(--fxp-calc-dark) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.estimate-product-btn .wp-block-button__link:hover,
.estimate-fabric-btn .wp-block-button__link:hover {
    border-color: var(--fxp-calc-gold) !important;
    background: rgba(201, 162, 39, 0.05) !important;
}

.estimate-product-btn.is-selected .wp-block-button__link,
.estimate-fabric-btn.is-selected .wp-block-button__link {
    background: var(--fxp-calc-dark) !important;
    color: #fff !important;
    border-color: var(--fxp-calc-dark) !important;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.2) !important;
}

/* Slider */
.fxp-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.fxp-qty-val {
    font-weight: 700;
    font-size: 18px;
    color: var(--fxp-calc-dark);
}
.estimate-slider-wrapper {
    position: relative;
    padding: 0 10px;
}
.estimate-range-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    -webkit-appearance: none;
}
.estimate-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--fxp-calc-dark);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.fxp-slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--fxp-calc-text-muted);
}

/* Result Panel Rows */
.fxp-result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
}
.result-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fxp-calc-text-muted);
}
.result-value {
    font-weight: 600;
    color: var(--fxp-calc-dark);
}

/* Total Box */
.estimate-total-box {
    margin: 30px 0;
    padding: 25px;
    border: 2px solid var(--fxp-calc-gold);
    border-radius: 12px;
    text-align: center;
    background: rgba(201, 162, 39, 0.03);
}
.total-title {
    font-size: 14px;
    color: var(--fxp-calc-text-muted);
    margin-bottom: 10px;
}
.total-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--fxp-calc-dark);
    margin-bottom: 5px;
}
.total-formula {
    font-size: 13px;
    color: var(--fxp-calc-text-muted);
}

.fxp-disclaimer {
    font-size: 13px;
    color: var(--fxp-calc-text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

/* WhatsApp Button */
.estimate-cta-btn {
    width: 100%;
    margin-top: 10px;
}
.fxp-calculator-wrapper .estimate-cta-btn .fxp-whatsapp-btn,
.fxp-calculator-wrapper a.fxp-whatsapp-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--fxp-calc-dark) !important;
    background: var(--fxp-calc-dark) !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
    width: 100% !important;
    box-sizing: border-box;
    border: none !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}
.fxp-calculator-wrapper .estimate-cta-btn .fxp-whatsapp-btn:hover,
.fxp-calculator-wrapper a.fxp-whatsapp-btn:hover {
    background-color: #333 !important;
    background: #333 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}
.fxp-calculator-wrapper a.fxp-whatsapp-btn.fxp-whatsapp-disabled {
    background-color: #ccc !important;
    background: #ccc !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .estimate-calculator-container {
        grid-template-columns: 1fr;
    }
    .fxp-header-title {
        font-size: 30px;
    }
    .estimate-btn-group {
        grid-template-columns: repeat(2, 1fr);
    }
}
