/* Modern Price Calculator Styles */

.pca-calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pca-form-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.pca-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.pca-form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.pca-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.pca-select-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pca-select-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pca-select {
    width: 100%;
    padding: 16px 45px 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.pca-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.pca-select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.pca-select-wrapper:hover .pca-select-arrow {
    transform: translateY(-50%) translateY(-2px);
}

.pca-attributes-container {
    margin-top: 30px;
    animation: slideIn 0.5s ease-out;
}

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

.pca-attribute-group {
    margin-bottom: 20px;
}

/* Hide any calculate buttons - auto-calculation is enabled */
.pca-calculate-btn,
button[onclick*="calculatePrice"],
button:contains("Calculate Price"),
#pca-frontend button,
#pca-attributes-container button {
    display: none !important;
}

.pca-price-display {
    margin-top: 30px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pca-price-result {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    color: white;
    padding: 25px 40px;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(67, 206, 162, 0.3);
    animation: priceReveal 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.pca-price-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes priceReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pca-price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-right: 10px;
    font-weight: 400;
}

.pca-price-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.pca-no-match {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading State */
.pca-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .pca-form-container {
        padding: 25px;
        border-radius: 15px;
    }
    
    .pca-price-result {
        padding: 20px 30px;
    }
    
    .pca-price-value {
        font-size: 26px;
    }
}