/**
 * Calculator Preț iPhone SH - Design Apple Style
 */

.ipc-calculator {
    max-width: 700px;
    margin: 0 auto;
}

.ipc-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.ipc-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ipc-step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.ipc-step-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.ipc-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.ipc-select:focus {
    outline: none;
    border-color: #007AFF;
}

.ipc-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.ipc-conditions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ipc-condition {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ipc-condition:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.ipc-condition.selected {
    background: rgba(0, 122, 255, 0.15);
    border-color: #007AFF;
}

.ipc-condition input {
    display: none;
}

.ipc-condition-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.ipc-condition-desc {
    color: #9ca3af;
    font-size: 12px;
}

.ipc-accessories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ipc-accessory {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ipc-accessory:hover {
    background: rgba(0, 122, 255, 0.08);
}

.ipc-accessory.selected {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.4);
}

.ipc-accessory input {
    display: none;
}

.ipc-accessory-label {
    color: #e5e7eb;
    font-size: 13px;
    flex: 1;
}

.ipc-accessory-value {
    color: #34D399;
    font-size: 12px;
    font-weight: 600;
}

.ipc-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.ipc-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.ipc-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ipc-result {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

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

.ipc-result-header {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 8px;
}

.ipc-result-price {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.ipc-result-details {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.ipc-result-details p {
    margin: 6px 0;
    color: #d1d5db;
    font-size: 14px;
}

.ipc-result-tips {
    text-align: left;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 10px;
    padding: 16px;
}

.ipc-result-tips p {
    color: #34D399;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.ipc-result-tips ul {
    margin: 0;
    padding-left: 18px;
}

.ipc-result-tips li {
    color: #d1d5db;
    font-size: 13px;
    margin: 6px 0;
}

@media (max-width: 600px) {
    .ipc-accessories {
        grid-template-columns: 1fr;
    }
    
    .ipc-result-price {
        font-size: 28px;
    }
}
