/* Travel Budget Calculator Styles */

.tbc-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
}

/* Header */
.tbc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tbc-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.tbc-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.tbc-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

/* Tabs */
.tbc-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e5e7eb;
}

.tbc-tab {
    flex: 1;
    padding: 20px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tbc-tab:hover {
    background: #f9fafb;
    color: #667eea;
}

.tbc-tab.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    background: #f9fafb;
}

.tab-icon {
    font-size: 20px;
}

/* Content */
.tbc-content {
    background: white;
    padding: 40px 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tbc-tab-content {
    display: none;
}

.tbc-tab-content.active {
    display: block;
}

/* Input Section */
.tbc-input-section {
    margin-bottom: 30px;
}

.tbc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .tbc-row {
        grid-template-columns: 1fr;
    }
}

.tbc-field {
    display: flex;
    flex-direction: column;
}

.tbc-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.tbc-field input,
.tbc-field select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.tbc-field input:focus,
.tbc-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tbc-field small {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

/* Buttons */
.tbc-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tbc-button.primary {
    background: #667eea;
    color: white;
}

.tbc-button.primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.tbc-button.success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tbc-button.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 20px;
}

/* Results */
.tbc-results {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

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

.tbc-budget-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tbc-budget-summary h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.budget-amount {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
}

.tbc-budget-summary p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

/* Destination Cards */
.destinations-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.green {
    background: #10b981;
}

.status-dot.yellow {
    background: #f59e0b;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: 1fr;
    }
}

.destination-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    background: white;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.destination-card.affordable {
    border-color: #10b981;
    background: #f0fdf4;
}

.destination-card.stretch {
    border-color: #f59e0b;
    background: #fffbeb;
}

.dest-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.dest-info h4 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.dest-region {
    color: #6b7280;
    font-size: 14px;
}

.dest-price {
    text-align: right;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
}

.destination-card.affordable .price-amount {
    color: #10b981;
}

.destination-card.stretch .price-amount {
    color: #f59e0b;
}

.price-detail {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.dest-details {
    margin: 16px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.dest-details p {
    margin: 8px 0;
}

.dest-details strong {
    color: #1f2937;
}

.dest-highlights {
    color: #6b7280;
    font-style: italic;
    margin-top: 8px;
}

.breakdown-toggle {
    margin-top: 16px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.breakdown-toggle:hover {
    background: #f9fafb;
    border-color: #667eea;
}

.breakdown-content {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.8;
}

.breakdown-content.show {
    display: block;
}

.breakdown-content p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
}

/* Savings Results */
.savings-destination {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.savings-destination h3 {
    font-size: 28px;
    margin: 0 0 8px 0;
}

.savings-destination .highlights {
    opacity: 0.95;
    margin-bottom: 20px;
}

.savings-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item h4 {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

.monthly-disposable {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.monthly-disposable p:first-child {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.monthly-disposable .amount {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.scenarios-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
}

.scenario-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    background: white;
}

.scenario-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.scenario-header h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.scenario-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.monthly-amount {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    text-align: right;
}

.scenario-details {
    background: #f0f4ff;
    padding: 16px;
    border-radius: 8px;
}

.scenario-details p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.scenario-details strong {
    color: #1f2937;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Lead Form */
.tbc-lead-form {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    padding: 40px 30px;
    border-radius: 12px;
    margin-top: 40px;
    border: 2px solid #d1d5db;
}

.lead-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    font-size: 48px;
}

.lead-form-header h3 {
    margin: 16px 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.lead-form-header p {
    color: #6b7280;
    margin: 0;
}

/* Success Message */
.tbc-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.tbc-success h3 {
    font-size: 32px;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.tbc-success p {
    font-size: 16px;
    margin: 8px 0;
    opacity: 0.95;
}

.success-email {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0;
}

.tbc-success small {
    font-size: 14px;
    opacity: 0.9;
}

/* Loading Spinner */
.tbc-loader {
    text-align: center;
    padding: 60px 30px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tbc-loader p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.tbc-footer {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid #e5e7eb;
}

.tbc-footer h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.tbc-footer ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
    line-height: 1.8;
}

.tbc-footer li {
    margin: 8px 0;
    font-size: 14px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .tbc-wrapper {
        margin: 20px 10px;
    }
    
    .tbc-header {
        padding: 30px 20px;
    }
    
    .tbc-title {
        font-size: 24px;
    }
    
    .tbc-content {
        padding: 30px 20px;
    }
    
    .budget-amount {
        font-size: 36px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .savings-stats {
        grid-template-columns: 1fr;
    }
}
