/* Main Container */
.cts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Typography */
.cts-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.cts-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout for Tool Cards */
.cts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Tool Card */
.cts-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cts-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #ff4747; /* Brand Red */
}

.cts-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff4747;
}

.cts-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cts-card-desc {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

/* Calculator Interface Styles */
.cts-tool-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.cts-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.cts-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.cts-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.cts-input:focus {
    border-color: #ff4747;
    outline: none;
}

.cts-btn {
    background-color: #ff4747;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.cts-btn:hover {
    background-color: #e03e3e;
}

/* Result Box */
.cts-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #ff4747;
    display: none; /* Hidden by default */
}

.cts-result.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cts-result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cts-result-value {
    font-weight: 700;
}

.cts-result-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 1.3rem;
    color: #ff4747;
}

/* Responsive */
@media (max-width: 768px) {
    .cts-grid {
        grid-template-columns: 1fr;
    }
    .cts-tool-wrapper {
        padding: 20px;
    }
}
