/**
 * Travel Budget Calculator - Main Stylesheet
 * Version: 1.1.0
 */

input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=tel], input[type=range], input[type=date], input[type=month], input[type=week], input[type=time], input[type=datetime], input[type=datetime-local], input[type=color], textarea {
	padding: 4px 10px 3px 10px !important;
	font-size: 14px !important;
}
.elementor-widget select {
	padding: 7px 10px 7px 10px !important;
}
/* ==========================================================================
   Base Styles and Reset
   ========================================================================== */
.tbc-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f900;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0%);
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.tbc-calculator * {
    box-sizing: border-box;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.tbc-calculator h2 {
    color: #333;
    text-align: center;
    margin-bottom: 15px !important;
    font-size: 28px;
    font-weight: 700;
}

.tbc-section h3 {
    margin-top: 0;
    color: #11315f;
    border-bottom: 1px dashed #c3c3c3;
    padding-bottom: 0px;
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.tbc-section {
    margin-bottom: 5px;
    padding: 5px 20px 10px 20px;
    background: white;
    border-radius: 8px;
    border-left: 0px solid #007cba;
    transition: box-shadow 0.3s ease;
	box-shadow: 0 2px 4px rgb(0 0 0 / 0%);
    border: 1px solid #f1f1f1;
}

.tbc-section:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Input Groups and Form Elements
   ========================================================================== */
.tbc-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
	margin-top: 10px;
}

.tbc-input-group label {
    min-width: 35%!important;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.tbc-input-group input,
.tbc-input-group select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px !important;
    transition: all 0.3s ease;
    background: #fff;
}

.tbc-input-group input:focus,
.tbc-input-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
    background: #fafbfc;
}

.tbc-input-group input:hover,
.tbc-input-group select:hover {
    border-color: #b0b7c3;
}

/* Currency Input Styles */
.tbc-currency {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
}

.tbc-currency-symbol {
    font-weight: 700;
    color: #333;
    min-width: 15px;
    font-size: 14px;
}

.tbc-currency input {
    flex: 1;
    margin: 0;
}

/* ==========================================================================
   Travel Style Selector
   ========================================================================== */
.tbc-travel-style {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
	margin-top: 15px;
}

.tbc-style-option {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 9px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.tbc-style-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.tbc-style-option:hover::before {
    left: 100%;
}

.tbc-style-option:hover {
    border-color: #007cba;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,124,186,0.15);
}

.tbc-style-option.active {
    border-color: #007cba;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    box-shadow: 0 6px 20px rgba(0,124,186,0.2);
    transform: translateY(-2px);
}

.tbc-style-icon {
    font-size: 32px;
    margin-bottom: 0px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbc-style-title {
    font-weight: 700;
    margin-bottom: 0px;
    color: #333;
    font-size: 16px;
}

.tbc-style-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 2px;
}

.tbc-style-price {
    font-size: 12px;
    color: #007cba;
    font-weight: 700;
    background: rgba(0,124,186,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    line-height: 19px;
}

/* ==========================================================================
   Quick Actions
   ========================================================================== */
.tbc-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tbc-quick-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.tbc-quick-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

.tbc-quick-btn.reset {
    background: #dc3545;
}

.tbc-quick-btn.reset:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.tbc-quick-btn.apply {
    background: #28a745;
}

.tbc-quick-btn.apply:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

/* ==========================================================================
   Preset Field Indicators
   ========================================================================== */
.tbc-input-group.preset-field {
    position: relative;
    background: rgb(40 167 69 / 0%);
    border-radius: 6px;
    padding: 0px 8px;
    margin-left: -8px;
    margin-right: -8px;
}

.tbc-preset-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 0px 8px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 17px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tbc-input-group.preset-field input {
    background: rgba(40,167,69,0.05);
    border-color: #28a745;
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.tbc-results {
    background: linear-gradient(135deg, #d3ffd5 0%, #f6fff7 100%);
    border-left: 0px solid #007cba;
    padding: 15px 25px 15px 25px;
    border-radius: 10px;
    margin-top: 15px;
    animation: fadeInUp 0.5s ease;
}

.tbc-results h3 {
    color: #007cba;
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}

.tbc-breakdown {
    margin-bottom: 20px;
}

.tbc-breakdown-item {
    display: flex;
	color: #11315f;
	font-weight:500;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid #d1e7f7;
    transition: background-color 0.2s ease;
}

.tbc-breakdown-item:hover {
    background: rgba(255,255,255,0.5);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 4px;
}

.tbc-breakdown-item:last-child {
    border-bottom: none;
}

.tbc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #d1e7f7;
    font-size: 15px;
}

.tbc-result-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1em;
    color: #007cba;
}

.tbc-total {
    font-size: 1.2em;
    font-weight: 700;
    color: #007cba;
    background: rgba(209,231,247,0.5);
    padding: 5px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    border: 2px solid #007cba;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tbc-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
	display:none;
}

.tbc-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tbc-button:hover::before {
    left: 100%;
}

.tbc-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,124,186,0.3);
}

.tbc-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

/* ==========================================================================
   Error States
   ========================================================================== */
.tbc-error {
    color: #d63638;
    background: #ffeaea;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #d63638;
    font-weight: 600;
    animation: shake 0.5s ease;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .tbc-calculator {
        padding: 0px;
        margin: 0px;
    }
    .tbc-section h3 {
        font-size: 16px;
        margin: 0 0px !important;
        padding: 0px 0 0 !important;
    }
    .tbc-section {
        padding: 15px;
    }
    
    .tbc-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
    }
    
    .tbc-input-group label {
        min-width: auto;
        margin-bottom: 0;
        width: 100%;
    }
    
    .tbc-input-group input,
    .tbc-input-group select {
        width: 100%;
    }
    
    .tbc-currency {
        width: 100%;
    }
	.tbc-preset-badge {
		top: 24px;
	}
    .tbc-travel-style {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tbc-style-option {
        padding: 5px 12px;
    }
    
    .tbc-quick-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .tbc-quick-btn {
        width: 100%;
        min-width: auto;
    }
    
    .tbc-results {
        padding: 15px 15px;
    }
    
    .tbc-breakdown-item,
    .tbc-result-item {
        flex-direction: column;
        gap: 0px;
        text-align: center;
		padding: 0px;
    }
    
    .tbc-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .tbc-calculator h2 {
        font-size: 24px;
        margin-bottom: 20px;
        background: #ffffff00;
    }
    
    .tbc-section h3 {
        font-size: 16px;
		margin: 0px !important;
        padding: 0px !important;
    }
    
    .tbc-style-icon {
        font-size: 28px;
    }
    
    .tbc-style-title {
        font-size: 15px;
    }
    
    .tbc-style-desc {
        font-size: 12px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
	input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=tel], input[type=range], input[type=date], input[type=month], input[type=week], input[type=time], input[type=datetime], input[type=datetime-local], input[type=color], textarea {
		border: 0px !important;
	}
	.tbc-input-group.preset-field input {
		border-color: #ffffff00;
	}
	.tbc-input-group input, 
	.tbc-input-group select {
		border: 0px;
	}
	.tbc-calculator h2 {
        background: #ffffff00;
	}
    .tbc-calculator {
        box-shadow: none;
        background: white;
        padding: 0;
    }
    
    .tbc-section {
        border-left: 0px solid #007cba;
        break-inside: avoid;
    }
    
    .tbc-button,
    .tbc-quick-actions,
    .tbc-travel-style {
        display: none;
    }
    
    .tbc-results {
        background: white;
        border: 2px solid #007cba;
    }
    
    .tbc-breakdown-item,
    .tbc-result-item {
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
    }
    
    .tbc-breakdown-item span:last-child,
    .tbc-result-item span:last-child {
        text-align: right !important;
        border-top: none !important;
        padding-top: 0 !important;
    }
	.tbc-export-section {
		display: none;
	}
}


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

.tbc-text-right {
    text-align: right;
}

.tbc-mb-0 {
    margin-bottom: 0;
}

.tbc-mt-20 {
    margin-top: 20px;
}

.tbc-hidden {
    display: none;
}

.tbc-visible {
    display: block;
}

/* ==========================================================================
   Export Button Styles
   ========================================================================== */
.tbc-export-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 7px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
    margin-top: 0px;
    position: relative;
    overflow: hidden;
}

.tbc-export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tbc-export-btn:hover::before {
    left: 100%;
}

.tbc-export-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.3);
}

.tbc-export-btn:active {
    transform: translateY(0);
}

.tbc-export-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tbc-export-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Export section in results */
.tbc-export-section {
    text-align: center;
    padding: 7px 20px;
    background: rgba(40,167,69,0.05);
    border-radius: 8px;
    margin-top: 20px;
    border: 1px dashed #28a745;
}

.tbc-export-section p {
    margin: 0 0 15px 0;
    color: #155724;
    font-weight: 600;
}

.tbc-export-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Print button */
.tbc-print-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 0px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tbc-print-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23,162,184,0.3);
}

/* Results actions container */
.tbc-results-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}







/* ==========================================================================
   Exchange Rate Styles
   ========================================================================== */
.tbc-exchange-rate-info {
    background: linear-gradient(75deg, #ffffff 0%, #fff3ce 100%);
    border: 1px solid #ffe9a5;
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.tbc-rate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tbc-refresh-rates {
    background: #17a2b8 !important;
    color: #fff !important;
    border: none !important;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.3s ease;
}

.tbc-refresh-rates:hover {
    background: #138496;
    transform: translateY(-1px);
}

.tbc-refresh-rates:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Message styles */
.tbc-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
    text-align: center;
    font-size: 13px !important;
}

.tbc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.tbc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.tbc-message.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* ==========================================================================
   Currency Conversion Styles
   ========================================================================== */
.tbc-currency-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Mobile responsive for exchange rates */
@media (max-width: 768px) {
    .tbc-rate-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        text-align: center;
        display: block;
    }
    
    .tbc-refresh-rates {
        align-self: flex-end;
    }
}




/* Mobile responsive for export buttons */
@media (max-width: 768px) {
    .tbc-export-actions,
    .tbc-results-actions {
        flex-direction: column;
    }
    
    .tbc-export-btn,
    .tbc-print-btn {
        width: 100%;
        text-align: center;
    }
}








/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */
@media (prefers-contrast: high) {
    .tbc-calculator {
        border: 2px solid #000;
    }
    
    .tbc-section {
        border-left: 4px solid #000;
    }
    
    .tbc-input-group input,
    .tbc-input-group select {
        border: 2px solid #000;
    }
    
    .tbc-style-option {
        border: 2px solid #000;
    }
    
    .tbc-style-option.active {
        border: 3px solid #000;
    }
}


/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .tbc-style-option,
    .tbc-button,
    .tbc-quick-btn,
    .tbc-input-group input,
    .tbc-input-group select,
    .tbc-breakdown-item {
        transition: none;
    }
    
    .tbc-style-option::before,
    .tbc-button::before {
        display: none;
    }
    
    .tbc-results {
        animation: none;
    }
    
    .tbc-error {
        animation: none;
    }
}