.zdc-calculator {
    max-width: 500px;
    margin: 20px 0;
}

.zdc-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.zdc-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#zdc-zip {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

#zdc-zip:focus {
    outline: none;
    border-color: #4CAF50;
}

.zdc-button {
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.zdc-button:hover {
    background: #45a049;
}

.zdc-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.zdc-result {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 249, 249, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.zdc-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 20px;
    color: #155724;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zdc-cost {
    font-size: 18px;
    margin-bottom: 8px;
}

.zdc-cost strong {
    color: #155724;
    font-size: 24px;
}

.zdc-distance {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #c3e6cb;
}

.zdc-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 249, 249, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.zdc-error-content {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px 20px;
    color: #721c24;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zdc-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 249, 249, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.zdc-loading:after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .zdc-input-group {
        flex-direction: column;
    }
    
    .zdc-button {
        width: 100%;
    }
}