/**
 * RE Agents Commission Calculator - Minimal Single Column Design
 */

/* Main Container */
.recc-calculator-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.recc-calculator-container {
    display: block;
    background: #ffffff;
    padding: 0;
    border: 1px solid #ddd;
}

/* Section Titles */
.recc-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
}

.recc-subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 20px 20px 15px 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Input and Results Sections */
.recc-input-section,
.recc-results-section {
    padding: 0 20px 20px 20px;
}

.recc-results-section {
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

/* Form Groups */
.recc-form-group {
    margin-bottom: 20px;
}

.recc-form-row {
    display: block;
}

.recc-form-row .recc-form-group {
    width: 100%;
}

/* Labels */
.recc-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* Input Wrapper */
.recc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Inputs */
.recc-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}

.recc-input:focus {
    outline: none;
    border-color: #999;
}

.recc-currency-input {
    padding-left: 32px;
}

/* Currency and Percent Symbols */
.recc-currency,
.recc-percent {
    position: absolute;
    font-size: 16px;
    color: #666;
    pointer-events: none;
}

.recc-currency {
    left: 12px;
}

.recc-percent {
    right: 12px;
}

/* Help Text */
.recc-help-text {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Results Grid */
.recc-results-grid {
    display: block;
}

.recc-result-item {
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    background: #fff;
}

.recc-result-item:last-child {
    margin-bottom: 0;
}

.recc-result-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.recc-result-value {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.recc-result-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Summary Section */
.recc-summary-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.recc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.recc-summary-item:last-child {
    border-bottom: none;
    padding-top: 15px;
    border-top: 2px solid #000;
    font-weight: 600;
}

.recc-summary-label {
    font-size: 14px;
    color: #333;
}

.recc-summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* Validation Styles */
.recc-validation-warning {
    background: #fff;
    border: 1px solid #000;
    padding: 12px 16px;
    margin: 16px 20px;
    color: #000;
    font-size: 14px;
}

.recc-validation-warning strong {
    font-weight: 600;
}

.recc-input-error {
    border-color: #000 !important;
    background-color: #f9f9f9 !important;
}

.recc-input-error:focus {
    border-color: #000 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .recc-calculator-wrapper {
        margin: 10px;
    }
    
    .recc-section-title {
        font-size: 18px;
        padding: 12px 15px;
    }
    
    .recc-input-section,
    .recc-results-section {
        padding: 0 15px 15px 15px;
    }
    
    .recc-subsection-title {
        margin: 15px 15px 12px 15px;
    }
    
    .recc-result-value {
        font-size: 20px;
    }
    
    .recc-summary-value {
        font-size: 16px;
    }
}

/* Result Cards with Boxes */
.recc-result-card {
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    background: #fff;
}

.recc-result-card.recc-total-commission {
    background: #f5f5f5;
}

.recc-result-row {
    display: block;
}

.recc-result-row .recc-result-card {
    margin-bottom: 15px;
}

.recc-result-row .recc-result-card:last-child {
    margin-bottom: 15px;
}

.recc-result-group {
    margin-bottom: 20px;
}

.recc-result-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.recc-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.recc-result-amount {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.recc-summary {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.recc-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.recc-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recc-summary-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.recc-summary-list li:last-child {
    border-bottom: none;
    border-top: 2px solid #000;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 600;
}
