/* VAKO Calculator Frontend Styles */

.vako-calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
	z-index:99999;
}

.vako-calculator {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.vako-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
	display: inline!important;
}

.vako-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
    margin-top: 40px!important;
}

.vako-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    position: relative;
    z-index: 1;
}

.vako-form {
    padding: 40px;
}

.vako-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.vako-form-group {
    position: relative;
}

.vako-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vako-form-group select,
.vako-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.vako-form-group select:focus,
.vako-form-group input:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

.vako-input-wrapper {
    position: relative;
}

.vako-unit {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 500;
    pointer-events: none;
}

.vako-calculate-btn {
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 0 auto;
    margin-right: 30px;
    padding: 16px 40px 16px 24px;
    background-color: #01447B;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    isolation: isolate;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vako-calculate-btn::after {
    content: '';
    position: absolute;
    right: -29px;
    top: 0;
    bottom: 0;
    width: 30px;
    background-color: #01447B;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    transition: all 0.3s ease;
}

.vako-calculate-btn:hover {
    background-color: #013362;
    color: white;
    transform: translateX(-3px);
    box-shadow: none;
}

.vako-calculate-btn:hover::after {
    background-color: #013362;
}

.vako-calculate-btn:active {
    transform: translateX(-1px);
}

.vako-btn-text {
    position: relative;
    z-index: 1;
}

.vako-btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.vako-calculate-btn.loading .vako-btn-text {
    opacity: 0;
}

.vako-calculate-btn.loading .vako-btn-loader {
    opacity: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.vako-results {
    padding: 0 40px 40px;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vako-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.vako-result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vako-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    transition: background 0.3s;
}

.vako-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vako-card-traditional::before { background: #6c757d; }
.vako-card-vako::before { background: #0066cc; }
.vako-card-extra::before { background: #17a2b8; }
.vako-card-savings::before { background: #00a651; }

.vako-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    color: #666;
    opacity: 0.8;
}

.vako-card-icon svg {
    width: 100%;
    height: 100%;
}

.vako-result-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vako-result-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1;
}

.vako-card-vako .vako-result-value { color: #0066cc; }
.vako-card-savings .vako-result-value { color: #00a651; }

.vako-result-unit {
    font-size: 14px;
    color: #999;
}

.vako-comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vako-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.vako-comparison-table th {
    background: #f8f9fa;
    padding: 18px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.vako-comparison-table td {
    padding: 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.vako-comparison-table tr:last-child td {
    border-bottom: none;
}

.vako-comparison-table tr:hover td {
    background: #f8f9fa;
}

.vako-comparison-table td:last-child {
    font-weight: 600;
    color: #00a651;
}

.vako-info-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f8 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.vako-info-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,102,204,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.vako-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

.vako-info-content {
    position: relative;
    z-index: 1;
}

.vako-info-content h4 {
    margin: 0 0 10px 0;
    color: #0066cc;
    font-size: 18px;
    font-weight: 600;
}

.vako-info-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vako-header {
        padding: 30px 20px 20px;
    }
    
    .vako-title {
        font-size: 26px;
    }
    
    .vako-form {
        padding: 20px;
    }
    
    .vako-form-grid {
        grid-template-columns: 1fr;
    }
    
    .vako-results {
        padding: 0 20px 20px;
    }
    
    .vako-results-grid {
        grid-template-columns: 1fr;
    }
    
    .vako-result-value {
        font-size: 32px;
    }
    
    .vako-comparison-table {
        overflow-x: auto;
    }
    
    .vako-comparison-table table {
        min-width: 500px;
    }
    
    .vako-info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .vako-info-icon {
        margin: 0 auto;
    }
}

/* Loading States */
.vako-loading {
    position: relative;
    overflow: hidden;
}

.vako-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* Print Styles */
@media print {
    .vako-calculator-wrapper {
        max-width: 100%;
    }
    
    .vako-calculate-btn {
        display: none;
    }
    
    .vako-header::before,
    .vako-info-banner::before {
        display: none;
    }
}