/**
 * Calculator Preț SH - Design Premium Purple
 */

.sh-calculator {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

/* Animated glow background */
.sh-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

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

.sh-form-section {
    position: relative;
    z-index: 1;
}

.sh-form-section.hidden {
    display: none;
}

/* Input groups */
.sh-input-group {
    margin-bottom: 28px;
}

.sh-input-group label {
    display: block;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Select styling */
.sh-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239333ea' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sh-select:hover:not(:disabled) {
    border-color: rgba(147, 51, 234, 0.6);
    background-color: rgba(255, 255, 255, 0.08);
}

.sh-select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.sh-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sh-select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* Condition cards */
.sh-condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.sh-condition-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-condition-card:hover {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.3);
}

.sh-condition-card.selected {
    background: rgba(147, 51, 234, 0.15);
    border-color: #9333ea;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.sh-condition-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sh-condition-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sh-condition-card.selected .sh-condition-check {
    border-color: #9333ea;
    background: #9333ea;
}

.sh-condition-card.selected .sh-condition-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.sh-condition-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.sh-condition-desc {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.3;
}

/* Accessories */
.sh-accessories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sh-accessory {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    color: #d1d5db;
}

.sh-accessory:hover {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.3);
}

.sh-accessory:has(input:checked) {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.5);
    color: #ffffff;
}

.sh-accessory input {
    display: none;
}

.sh-acc-icon {
    font-size: 16px;
}

/* Calculate button with glow animation */
.sh-calculate-btn {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.sh-calculate-btn:disabled {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    cursor: not-allowed;
}

.sh-calculate-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.4);
}

.sh-btn-text {
    position: relative;
    z-index: 2;
}

.sh-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent 30%);
    opacity: 0;
    transition: opacity 0.3s;
}

.sh-calculate-btn.ready .sh-btn-glow {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Results */
.sh-result {
    position: relative;
    z-index: 1;
}

.sh-result.hidden {
    display: none;
}

.sh-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    padding: 30px;
    animation: resultFadeIn 0.5s ease;
}

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

.sh-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-result-phone {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.sh-result-condition {
    background: rgba(147, 51, 234, 0.2);
    color: #c4b5fd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Price display */
.sh-price-display {
    text-align: center;
    padding: 30px 0;
}

.sh-price-label {
    display: block;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 10px;
}

.sh-price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.sh-price-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.sh-price-currency {
    color: #9ca3af;
    font-size: 24px;
    font-weight: 600;
}

.sh-price-range {
    color: #6b7280;
    font-size: 14px;
    margin-top: 10px;
}

/* Breakdown */
.sh-breakdown {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
}

.sh-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.sh-breakdown-item:last-child {
    border-bottom: none;
}

.sh-breakdown-item span:first-child {
    color: #9ca3af;
}

.sh-breakdown-item span:last-child {
    color: #e5e7eb;
    font-weight: 600;
}

/* Tips */
.sh-tips {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(147, 51, 234, 0.03) 100%);
    border-radius: 12px;
    border-left: 3px solid #9333ea;
}

.sh-tips h4 {
    color: #e5e7eb;
    font-size: 15px;
    margin: 0 0 12px 0;
}

.sh-tips-list {
    margin: 0;
    padding: 0 0 0 18px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.8;
}

.sh-tips-list li {
    margin-bottom: 4px;
}

/* Recalculate button */
.sh-recalculate-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 10px;
    color: #c4b5fd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.sh-recalculate-btn:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: #9333ea;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .sh-condition-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sh-price-number {
        font-size: 42px;
    }
    
    .sh-result-card {
        padding: 20px;
    }
    
    .sh-result-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
