/* Australian Borrowing Power Calculator Styles */

.aubc-calculator-container {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2c3e50;
}

/* Progress Tabs */
.aubc-tabs {
    display: flex;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e6ed;
    border-radius: 8px 8px 0 0;
}

.aubc-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    background: #e8ecf0;
    color: #7f8c8d;
}

.aubc-tab:first-child {
    border-radius: 8px 0 0 0;
}

.aubc-tab:last-child {
    border-radius: 0 8px 0 0;
}

.aubc-tab.active {
    background: #2980b9;
    color: #ffffff;
    border-bottom-color: #2980b9;
}

.aubc-tab.completed {
    background: #95a5a6;
    color: #ffffff;
}

.aubc-tab-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin-right: 8px;
    font-weight: 600;
}

.aubc-tab.active .aubc-tab-number {
    background: rgba(255, 255, 255, 0.9);
    color: #2980b9;
}

.aubc-tab-text {
    font-size: 15px;
    font-weight: 500;
}

/* Steps */
.aubc-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.aubc-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.aubc-step-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.aubc-application-type {
    flex: 1;
    min-width: 250px;
}

.aubc-dependants {
    flex: 0 0 200px;
}

.aubc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 14px;
}

/* Toggle Buttons */
.aubc-toggle-buttons {
    display: flex;
    gap: 0;
    border: 2px solid #3498db;
    border-radius: 6px;
    overflow: hidden;
}

.aubc-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: #ffffff;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.aubc-toggle-btn:hover {
    background: #ebf5fb;
}

.aubc-toggle-btn.active {
    background: #3498db;
    color: #ffffff;
}

/* Select */
.aubc-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.aubc-select:focus {
    outline: none;
    border-color: #3498db;
}

/* Section Title */
.aubc-section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Income Section */
.aubc-income-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.aubc-income-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.aubc-income-header h4 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
}

.aubc-income-total {
    font-size: 16px;
    color: #27ae60;
    font-weight: 600;
}

.aubc-field-label {
    display: block;
    font-size: 14px;
    color: #5a6c7d;
    margin-bottom: 8px;
}

/* Input Group */
.aubc-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.aubc-currency {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 500;
}

.aubc-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #d0d7de;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.aubc-input:focus {
    outline: none;
    border-color: #3498db;
}

.aubc-frequency,
.aubc-frequency-text {
    padding: 12px 15px;
    border: 2px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #5a6c7d;
}

.aubc-frequency-text {
    border: none;
    padding: 0;
    font-weight: 500;
}

/* Slider */
.aubc-slider-container {
    padding: 10px 0;
}

.aubc-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e6ed;
    outline: none;
    -webkit-appearance: none;
}

.aubc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2980b9;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.3);
    transition: all 0.2s ease;
}

.aubc-slider::-webkit-slider-thumb:hover {
    background: #1c5a85;
    transform: scale(1.1);
}

.aubc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2980b9;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.3);
}

/* Other Income */
.aubc-other-income {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e6ed;
}

.aubc-help-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.aubc-help-subtext {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.aubc-other-income-fields {
    margin-top: 20px;
}

/* Buttons */
.aubc-btn-primary,
.aubc-btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aubc-btn-primary {
    background: #34495e;
    color: #ffffff;
    width: 100%;
    margin-top: 30px;
}

.aubc-btn-primary:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

.aubc-btn-secondary {
    background: #34495e;
    color: #ffffff;
}

.aubc-btn-secondary:hover {
    background: #2c3e50;
}

.aubc-step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.aubc-step-buttons .aubc-btn-secondary {
    flex: 0 0 auto;
}

.aubc-step-buttons .aubc-btn-primary {
    flex: 1;
    margin-top: 0;
}

/* Expense Fields */
.aubc-expense-field {
    margin-bottom: 35px;
}

.aubc-tooltip {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #95a5a6;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

/* Results */
.aubc-result-banner {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: #ffffff;
    text-align: center;
    padding: 40px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.aubc-result-label {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.aubc-result-amount {
    font-size: 56px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.aubc-result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.aubc-result-col {
    text-align: center;
}

.aubc-detail-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.aubc-detail-value {
    font-size: 36px;
    font-weight: 700;
    color: #2980b9;
    margin: 0;
}

.aubc-detail-subtext {
    font-size: 14px;
    color: #5a6c7d;
    margin-top: 5px;
}

.aubc-detail-rate {
    font-size: 24px;
    font-weight: 600;
    color: #2980b9;
    margin-top: 10px;
}

/* Payment Frequency */
.aubc-payment-frequency {
    text-align: center;
}

.aubc-frequency-tabs {
    display: flex;
    gap: 0;
    border: 2px solid #3498db;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.aubc-freq-tab {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: #ffffff;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.aubc-freq-tab:hover {
    background: #ebf5fb;
}

.aubc-freq-tab.active {
    background: #3498db;
    color: #ffffff;
}

.aubc-result-note {
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
    margin: 20px 0;
}

/* Advanced Options */
.aubc-advanced-options {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e6ed;
}

.aubc-advanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aubc-advanced-header h4 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
}

.aubc-toggle-advanced {
    background: #34495e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aubc-toggle-advanced:hover {
    background: #2c3e50;
}

.aubc-advanced-content {
    display: none;
    animation: slideDown 0.3s ease;
}

.aubc-advanced-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.aubc-advanced-field {
    margin-bottom: 25px;
}

.aubc-advanced-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.aubc-loan-amount-adjust {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.aubc-loan-amount-adjust input {
    flex: 1;
    padding: 12px;
    border: 2px solid #d0d7de;
    border-radius: 6px;
    font-size: 16px;
}

.aubc-loan-amount-slider {
    width: 100%;
    margin-top: 10px;
}

.aubc-repayment-type-buttons {
    display: flex;
    gap: 0;
    border: 2px solid #3498db;
    border-radius: 6px;
    overflow: hidden;
}

.aubc-repayment-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: #ffffff;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.aubc-repayment-btn:hover {
    background: #ebf5fb;
}

.aubc-repayment-btn.active {
    background: #3498db;
    color: #ffffff;
}

/* Loading */
.aubc-loading {
    text-align: center;
    padding: 60px 20px;
}

.aubc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e6ed;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.aubc-error {
    text-align: center;
    padding: 40px 20px;
}

.aubc-error-message {
    color: #e74c3c;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Disclaimer */
.aubc-disclaimer {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 2px solid #e0e6ed;
    border-radius: 0 0 8px 8px;
}

.aubc-disclaimer h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.aubc-disclaimer p {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .aubc-calculator-container {
        margin: 20px;
        border-radius: 0;
    }
    
    .aubc-step {
        padding: 25px 20px;
    }
    
    .aubc-tab-text {
        font-size: 13px;
    }
    
    .aubc-tab-number {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 14px;
    }
    
    .aubc-result-amount {
        font-size: 42px;
    }
    
    .aubc-detail-value {
        font-size: 28px;
    }
    
    .aubc-result-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aubc-step-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .aubc-dependants {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .aubc-tabs {
        flex-direction: column;
    }
    
    .aubc-tab {
        border-radius: 0;
    }
    
    .aubc-tab:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .aubc-tab:last-child {
        border-radius: 0;
    }
    
    .aubc-result-amount {
        font-size: 36px;
    }
}
