/* CoinTax Calculator Styles */

.cointax-wrap {
    background: #f8fafc;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    font-family: inherit;
}

.cointax-inputs {
    background: #fff;
    border: 2px solid #f1f0ef;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 768px;
    margin: 0 auto 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Row layouts */
.cointax-row {
    display: grid;
    gap: 0.75rem;
    align-items: end;
}
.cointax-row-2 {
    grid-template-columns: 1fr 1fr;
}
.cointax-row-1 {
    grid-template-columns: 1fr;
    justify-items: center;
}

@media (max-width: 580px) {
    .cointax-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.cointax-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 380px;
}

.cointax-field label {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    margin: 0;
}

/* Inputs & selects */
.ct-input {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 12rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.ct-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Button */
.cointax-btn-row {
    margin-top: 0.5rem;
}

.ct-calculate-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    min-width: 15rem;
    cursor: pointer;
    transition: background 0.15s;
}

.ct-calculate-btn:hover {
    background: #3730a3;
}

.ct-calculate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Results */
.cointax-results {
    max-width: 768px;
    margin: 0 auto;
    border: 2px solid #dcfce7;
    border-radius: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .cointax-results {
        grid-template-columns: 1fr;
    }
}

.ct-result-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ct-result-text h3 {
    color: #16a34a;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.ct-result-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #1e293b;
}

.ct-result-text strong {
    color: #111827;
}

/* Chart */
.ct-chart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    min-width: 200px;
}

.ct-chart {
    max-width: 280px;
    max-height: 280px;
}
