/* Teams Telephony Calculator Styles */
body .teams-telephony-calculator .wizard-next:hover,
body .teams-telephony-widget .wizard-next:hover,
body .teams-telephony-calculator button.wizard-next:hover,
body .teams-telephony-widget button.wizard-next:hover {
    background: linear-gradient(135deg, #226488 0%, #1a4f6b 100%) !important;
    background-color: #226488 !important;
    background-image: linear-gradient(135deg, #226488 0%, #1a4f6b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(34, 100, 136, 0.4) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    border: none !important;
}

.comparison-card-full{
    color: #ffffff !important;
}

.teams-telephony-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.teams-telephony-calculator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.teams-telephony-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.teams-telephony-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-converter {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-converter:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.instant-savings {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

#hero-direct-modal-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#hero-direct-modal-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;
}

#hero-direct-modal-btn:hover::before {
    left: 100%;
}

#hero-direct-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.wizard-step {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.comparison-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    border-color: #226488;
    box-shadow: 0 6px 20px rgba(34, 100, 136, 0.1);
}

.comparison-matrix {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comparison-matrix th {
    background: linear-gradient(135deg, #226488 0%, #1a4f6b 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 16px 12px;
}

.comparison-matrix td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.comparison-matrix tr:hover td {
    background-color: #f8f9fa;
}

.comparison-matrix input[type="number"] {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comparison-matrix input[type="number"]:focus {
    border-color: #226488;
    box-shadow: 0 0 0 3px rgba(34, 100, 136, 0.1);
    outline: none;
}

.button {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.button-primary {
    background: linear-gradient(135deg, #226488 0%, #1a4f6b 100%);
}

body .teams-telephony-calculator .button-primary:hover,
body .teams-telephony-widget .button-primary:hover,
body .teams-telephony-calculator .button.button-primary:hover,
body .teams-telephony-widget .button.button-primary:hover,
body .teams-telephony-calculator button.button-primary:hover,
body .teams-telephony-widget button.button-primary:hover {
    background: linear-gradient(135deg, #1a4f6b 0%, #154057 100%) !important;
    background-color: #1a4f6b !important;
    background-image: linear-gradient(135deg, #1a4f6b 0%, #154057 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(34, 100, 136, 0.4) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    border: none !important;
}

.button-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.button-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.button-success:hover {
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.teams-checklist {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.teams-checklist h4 {
    color: #226488;
    margin-bottom: 16px;
    font-weight: 600;
}

.teams-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teams-checklist li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.teams-checklist li:last-child {
    border-bottom: none;
}

.teams-checklist li:hover {
    background-color: rgba(34, 100, 136, 0.05);
    border-radius: 6px;
    padding-left: 8px;
}

/* Progress Bar Styles */
.progress-container {
    position: relative;
    margin: 0 auto;
}

.progress-bar {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(135deg, #226488 0%, #1a4f6b 100%);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(34, 100, 136, 0.3);
}

/* Chart Container Styles */
#teams-comparison-chart,
#teams-roi-chart {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teams-telephony-calculator {
        padding: 20px;
    }
    
    .hero-converter {
        padding: 20px;
    }
    
    .comparison-card {
        padding: 16px;
    }
    
    .comparison-matrix {
        font-size: 14px;
    }
    
    .comparison-matrix th,
    .comparison-matrix td {
        padding: 8px;
    }
    
    #teams-comparison-chart,
    #teams-roi-chart {
        width: 100% !important;
        height: 250px !important;
    }
}

/* Animation for wizard steps */
.wizard-step {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltip styles */
.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #226488;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 4px;
    position: relative;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Override theme button animations - Maximum Specificity */
body .teams-telephony-calculator .button::before,
body .teams-telephony-widget .button::before,
body .teams-telephony-calculator .wizard-next::before,
body .teams-telephony-widget .wizard-next::before,
body .teams-telephony-calculator button::before,
body .teams-telephony-widget button::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}

/* Force our hover styles with maximum specificity */
body .teams-telephony-calculator .button:hover,
body .teams-telephony-widget .button:hover,
body .teams-telephony-calculator .wizard-next:hover,
body .teams-telephony-widget .wizard-next:hover,
body .teams-telephony-calculator button:hover,
body .teams-telephony-widget button:hover {
    background-color: transparent !important;
    background-image: none !important;
}

/* Disable all theme button animations */
body .button-animation-slide .teams-telephony-calculator .button::before,
body .button-animation-slide-right .teams-telephony-calculator .button::before,
body .button-animation-slide .teams-telephony-widget .button::before,
body .button-animation-slide-right .teams-telephony-widget .button::before {
    display: none !important;
    content: none !important;
}

/* Custom Teams Button Classes - No Theme Conflicts */
.teams-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    outline: none;
}

.teams-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.teams-btn-primary {
    background: linear-gradient(135deg, #226488 0%, #1a4f6b 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.teams-btn-primary:hover {
    background: linear-gradient(135deg, #1a4f6b 0%, #154057 100%) !important;
    background-color: #1a4f6b !important;
    background-image: linear-gradient(135deg, #1a4f6b 0%, #154057 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(34, 100, 136, 0.4) !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
}

.teams-wizard-next {
    background: linear-gradient(135deg, #226488 0%, #1a4f6b 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.teams-wizard-next:hover {
    background: linear-gradient(135deg, #1a4f6b 0%, #154057 100%) !important;
    background-color: #1a4f6b !important;
    background-image: linear-gradient(135deg, #1a4f6b 0%, #154057 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(34, 100, 136, 0.4) !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
}

/* Loading states */
.teams-telephony-calculator.loading {
    opacity: 0.7;
    pointer-events: none;
}

.teams-telephony-calculator.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #226488;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 