:root{
	--primary-color: #23346c;
}

.appliances-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
	width: 100%;
}

.appliance-card {
    background: #f8fdff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid #d1f0f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.quantity-btn-color{
    background: var(--primary-color) !important;
}

.appliance-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color));
}

.appliance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 193, 222, 0.15);
}

.appliance-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.appliance-icon {
    width: 36px;
    height: 36px;
    background: #e1f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.appliance-details {
    display: flex;
    flex-direction: column;
}

.appliance-name {
    font-size: 20px;
    font-weight: 600;
    color: #0a5361;
}

.appliance-wattage {
    font-size: 16px;
    color: #0a7e8d;
    font-weight: 500;
    margin-top: 3px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(16, 193, 222, 0.2);
}

.quantity-btn:hover {
    background: #0aefff;
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    font-size: 1.3rem;
    font-weight: 600;
    width: 40px;
    text-align: center;
    color: #0a7e8d;
}

.total-section {
    background: linear-gradient(to right, var(--primary-color), var(--primary-color));
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e1f5fe;
    width: 100%;
    border-radius: 20px;
}

.totalsection-container{
    margin-top: 20px;
    width: 100%;
}

.total-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.total-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: white;
}

.total-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.unit {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 5px;
}

.quote-btn {
    background: #f79c25 !important;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quote-btn:hover {
    background: #f0fcff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.quote-btn:active {
    transform: translateY(1px);
}

.info-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1f5fe;
}

.info-section h2 {
    color: #0a7e8d;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tip-card {
    background: #f8fdff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    border: 1px solid #d1f0f7;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(16, 193, 222, 0.15);
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: #e1f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 15px;
}

.tip-text {
    color: #4a6572;
    line-height: 1.6;
    font-size: 1.05rem;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #7a9ca8;
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 700px;
    position: relative;
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(to right, var(--primary-color), #0aefff);
    padding: 15px 30px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0a5361;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1f0f7;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8fdff;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 193, 222, 0.2);
}

.form-control[readonly] {
    background: #eef9fc;
    color: #0a7e8d;
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-submit {
    background: linear-gradient(to right, var(--primary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 193, 222, 0.3);
    width: 100%;
    margin-top: 20px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 193, 222, 0.4);
}

.form-submit:active {
    transform: translateY(1px);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #0a7e8d;
}

.success-message i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .appliances-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .appliance-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .appliance-info {
        width: 100%;
    }
    
    .quantity-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .total-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .total-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .quote-btn {
        margin-top: 10px;
    }
    
    .modal-content {
        max-width: 90%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .appliance-card {
        padding: 15px;
    }
    
    .appliance-info {
        gap: 10px;
    }
    
    .appliance-name {
        font-size: 1rem;
    }
    
    .appliance-wattage {
        font-size: 0.85rem;
    }
    
    .total-value {
        font-size: 2.2rem;
    }
    
    .quote-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}