/* Fence Calculator Specific Styles */

/* Action Button */
.action-button {
    width: 100%;
    padding: 12px 16px;
    background: #003049;
    border: 1px solid #003049;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.action-button:hover {
    background: #00436b;
    border-color: #00436b;
}

/* Project Details Grid - Single Column */
.project-details-grid {
    grid-template-columns: 1fr;
}

/* Cost Section Accordion */
.cost-section {
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cost-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--color-bg-body);
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}

.cost-toggle::-webkit-details-marker {
    display: none;
}

.cost-toggle::marker {
    display: none;
    content: "";
}

.cost-toggle::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-secondary);
    border-bottom: 2px solid var(--color-text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.cost-section[open] .cost-toggle::after {
    transform: rotate(-135deg);
}

.cost-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.cost-inputs {
    padding: 16px;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
}

.cost-inputs .form-group:last-child {
    margin-bottom: 0;
}

/* Total Row Styling */
.total-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--color-results-border);
    font-size: 18px;
    font-weight: 600;
}

.total-cost {
    color: var(--color-primary);
    font-weight: 700;
}

/* Results Total Section */
.results-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-results-border);
}

.results-total .results-section-title {
    margin-bottom: 12px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .cost-inputs {
        padding: 12px;
    }

    .cost-toggle {
        padding: 12px 14px;
        font-size: 14px;
    }

    .total-row {
        font-size: 16px;
    }
}
