.ccc-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ccc-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.ccc-container h3 i {
    margin-right: 10px;
    color: #3498db;
}

.ccc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.ccc-field {
    margin-bottom: 15px;
}

.ccc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.ccc-field input,
.ccc-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.ccc-field input:focus,
.ccc-field select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.ccc-field input.ccc-error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.ccc-button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    margin: 10px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    grid-column: span 2;
}

.ccc-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

#ccc-calculate {
    background: #2ecc71;
}

#ccc-calculate:hover {
    background: #27ae60;
}

#ccc-copy-results {
    background: #9b59b6;
    margin-top: 20px;
}

#ccc-copy-results:hover {
    background: #8e44ad;
}

.ccc-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: none;
}

.ccc-results h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e3e7;
    padding-bottom: 10px;
}

.ccc-result-item {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e3e7;
}

.ccc-result-item:last-child {
    border-bottom: none;
}

.ccc-amortization {
    margin-top: 20px;
    overflow-x: auto;
}

.ccc-amortization h5 {
    margin: 15px 0 10px;
    color: #34495e;
}

.ccc-amortization table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ccc-amortization th,
.ccc-amortization td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e3e7;
}

.ccc-amortization th {
    background-color: #f1f5f9;
    font-weight: 600;
}

.ccc-amortization tr:hover {
    background-color: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .ccc-form {
        grid-template-columns: 1fr;
    }
    
    .ccc-button {
        grid-column: span 1;
    }
    
    .ccc-amortization table {
        font-size: 14px;
    }
}