/**
 * MSW Travel Budget Calculator - Styles
 * Adventure-themed, senior-friendly design
 */

/* ==========================================================================
   BASE CALCULATOR STYLES
   ========================================================================== */

.msw-travel-budget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Verdana', 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
}

.msw-calculator__header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4A90A4;
}

.msw-calculator__title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 600;
    color: #2E5F6F;
    margin: 0 0 15px 0;
}

.msw-calculator__subtitle {
    font-size: 20px;
    color: #666666;
    margin: 0;
}

.msw-calculator__instructions {
    background: #E8F4F8;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid #4A90A4;
}

.msw-logged-in-notice {
    display: inline-block;
    padding: 8px 16px;
    background: #F0F9F5;
    color: #2E5F3A;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.msw-form-section {
    background: #FFFFFF;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 2px solid #E8E8E8;
}

.msw-form-section__title {
    font-size: 24px;
    font-weight: 600;
    color: #2E5F6F;
    margin: 0 0 20px 0;
}

.msw-form-help {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
    font-style: italic;
}

.msw-form-row {
    margin-bottom: 20px;
}

.msw-form-row--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.msw-form-row--three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.msw-form-group {
    margin-bottom: 0;
}

.msw-form-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.msw-form-required {
    color: #C76868;
}

.msw-form-select,
.msw-form-input {
    width: 100%;
    font-size: 18px;
    border: 2px solid #CCCCCC;
    border-radius: 6px;
    background: #FFFFFF;
    font-family: 'Verdana', 'Arial', sans-serif;
}

.msw-form-select:focus,
.msw-form-input:focus {
    outline: 3px solid #4A90A4;
    outline-offset: 2px;
    border-color: #2E5F6F;
}

/* ==========================================================================
   BUDGET CATEGORIES
   ========================================================================== */

.msw-budget-categories {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.msw-budget-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: #F9F9F9;
    border-radius: 6px;
    border: 2px solid #E8E8E8;
}

.msw-budget-category__label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msw-budget-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.msw-budget-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.msw-budget-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.msw-input-prefix {
    position: absolute;
    left: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #666666;
    pointer-events: none;
}

.msw-budget-input {
    width: 150px;
    padding: 12px 12px 12px 28px;
    font-size: 18px;
    border: 2px solid #CCCCCC;
    border-radius: 6px;
    text-align: right;
    font-family: 'Verdana', 'Arial', sans-serif;
}

.msw-budget-input:focus {
    outline: 3px solid #4A90A4;
    outline-offset: 2px;
    border-color: #2E5F6F;
}

.msw-budget-note {
    font-size: 14px;
    color: #999999;
    white-space: nowrap;
}

.msw-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.msw-button {
    padding: 16px 32px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msw-button--primary {
    background: #4A90A4;
    color: #FFFFFF;
    border: 2px solid #4A90A4;
}

.msw-button--primary:hover {
    background: #3A7A8A;
    border-color: #3A7A8A;
}

.msw-button--primary:focus {
    outline: 3px solid #4A90A4;
    outline-offset: 2px;
}

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */

.msw-results {
    background: #FFFFFF;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 2px solid #4A90A4;
}

.msw-results__title {
    font-size: 28px;
    font-weight: 600;
    color: #2E5F6F;
    margin: 0 0 25px 0;
    text-align: center;
}

.msw-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.msw-result-card {
    background: #F9F9F9;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #E8E8E8;
}

.msw-result-card--primary {
    background: #E8F4F8;
    border-color: #4A90A4;
}

.msw-result-card__label {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
}

.msw-result-card__value {
    font-size: 36px;
    font-weight: 700;
    color: #2E5F6F;
}

.msw-section-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #2E5F6F;
    margin: 0 0 15px 0;
}

/* ==========================================================================
   COST BREAKDOWN
   ========================================================================== */

.msw-cost-breakdown {
    margin-bottom: 30px;
}

.msw-breakdown-list {
    display: grid;
    gap: 15px;
}

.msw-breakdown-item {
    background: #F9F9F9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #E8E8E8;
}

.msw-breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 16px;
}

.msw-breakdown-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.msw-breakdown-cost {
    font-size: 20px;
    font-weight: 700;
    color: #2E5F6F;
}

.msw-breakdown-percent {
    font-size: 16px;
    color: #666666;
}

.msw-breakdown-bar {
    height: 8px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
}

.msw-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A90A4, #6BAAC0);
    transition: width 0.3s ease;
}

.msw-no-data {
    text-align: center;
    color: #999999;
    padding: 20px;
}

/* ==========================================================================
   DAILY BREAKDOWN
   ========================================================================== */

.msw-daily-breakdown {
    background: #FFFBF0;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid #D4925A;
}

.msw-daily-details {
    display: grid;
    gap: 10px;
}

.msw-daily-item {
    padding: 10px;
    background: #FFFFFF;
    border-radius: 4px;
    font-size: 16px;
}

.msw-daily-total {
    margin-top: 15px;
    padding: 15px;
    background: #FFFFFF;
    border-radius: 4px;
    font-size: 18px;
    border: 2px solid #D4925A;
}

/* ==========================================================================
   INSIGHTS
   ========================================================================== */

.msw-insights {
    margin-top: 30px;
}

.msw-insight {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: #E8F4F8;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 4px solid #4A90A4;
}

.msw-insight__icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.msw-calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.msw-calc-actions__save {
    background: #6B9F78;
    color: #FFFFFF;
    border: 2px solid #6B9F78;
}

.msw-calc-actions__save:hover {
    background: #5A8A67;
    border-color: #5A8A67;
}

.msw-calc-actions__print {
    background: #FFFFFF;
    color: #2E5F6F;
    border: 2px solid #2E5F6F;
}

.msw-calc-actions__print:hover {
    background: #2E5F6F;
    color: #FFFFFF;
}

/* ==========================================================================
   TIPS SECTION
   ========================================================================== */

.msw-tips {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #E8E8E8;
}

.msw-tips__title {
    font-size: 24px;
    font-weight: 600;
    color: #2E5F6F;
    margin: 0 0 20px 0;
}

.msw-tips__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.msw-tips__list li {
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid #E8E8E8;
}

.msw-tips__list li:last-child {
    border-bottom: none;
}

.msw-tips__list li::before {
    content: "✈️";
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .msw-calculator__instructions,
    .msw-form-section,
    .msw-calc-actions,
    .msw-tips,
    .msw-button {
        display: none !important;
    }
    
    .msw-results {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .msw-travel-budget {
        padding: 20px 15px;
    }
    
    .msw-calculator__title {
        font-size: 28px;
    }
    
    .msw-calculator__subtitle {
        font-size: 18px;
    }
    
    .msw-form-section {
        padding: 20px;
    }
    
    .msw-form-row--two-col,
    .msw-form-row--three-col {
        grid-template-columns: 1fr;
    }
    
    .msw-budget-category {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .msw-budget-input-group {
        justify-content: flex-start;
    }
    
    .msw-budget-note {
        display: block;
        margin-top: 5px;
    }
    
    .msw-results-grid {
        grid-template-columns: 1fr;
    }
    
    .msw-result-card__value {
        font-size: 28px;
    }
    
    .msw-breakdown-amounts {
        flex-direction: column;
        gap: 5px;
    }
    
    .msw-calc-actions {
        flex-direction: column;
    }
    
    .msw-calc-actions .msw-button {
        width: 100%;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* High contrast mode */
@media (prefers-contrast: high) {
    .msw-form-select,
    .msw-form-input,
    .msw-budget-input,
    .msw-budget-category {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible */
*:focus-visible {
    outline: 3px solid #4A90A4;
    outline-offset: 2px;
}

/* Screen reader only */
.msw-sr-only {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
