/* ============================================
   CLOUD COST CALCULATOR STYLES
   ============================================ */

/* Calculator Section */
.calculator-section {
    padding: 3rem 0 6rem;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    font-weight: 500;
    white-space: nowrap;
}

.progress-step.active .step-number {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.progress-step.completed .step-number {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.progress-step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
    position: relative;
    max-width: 150px;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}

.progress-step.completed~.progress-line::after {
    width: 100%;
}

/* Calculator Form */
.calculator-form {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.step-description {
    color: var(--gray-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--light);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    color: var(--gray-light);
    font-size: 0.85rem;
}

.form-group select option {
    background: var(--dark);
    color: var(--light);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 150px;
}

/* Results Container */
#results-container {
    min-height: 400px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--gray-light);
}

.loading-state i {
    font-size: 3rem;
    color: var(--primary);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.provider-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-card.best-value {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.provider-card.best-value::before {
    content: '⭐ Mejor Valor';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.provider-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.provider-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.provider-instance {
    font-size: 0.85rem;
    color: var(--gray-light);
}

.cost-display {
    margin: 2rem 0;
}

.monthly-cost {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.monthly-cost .currency {
    font-size: 1.5rem;
    color: var(--gray-light);
}

.monthly-cost .period {
    font-size: 1rem;
    color: var(--gray-light);
    font-weight: 400;
}

.annual-cost {
    font-size: 1.1rem;
    color: var(--gray-light);
}

.cost-breakdown {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breakdown-label {
    color: var(--gray-light);
}

.breakdown-value {
    color: var(--light);
    font-weight: 600;
}

/* Comparison Chart */
.comparison-section {
    margin: 3rem 0;
}

.comparison-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--light);
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Recommendation Box */
.recommendation-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.recommendation-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-box h3 i {
    color: var(--primary);
}

.recommendation-box p {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recommendation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-form {
        padding: 2rem 1.5rem;
    }

    .progress-indicator {
        padding: 0 1rem;
        overflow-x: auto;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-line {
        max-width: 60px;
        margin: 0 0.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .monthly-cost {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltips */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    color: var(--primary-light);
    font-size: 0.85rem;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.75rem;
    border-radius: 8px;
    white-space: normal;
    width: 200px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.4;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Specific help icon styling */
.help-icon {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.help-icon:hover {
    opacity: 1;
}

/* Email Capture Section */
.email-capture-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
}

.email-capture-section h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.email-capture-section p {
    margin-bottom: 25px;
    opacity: 0.8;
}

.email-form-group {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.email-form-group input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.email-form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

#email-status-message {
    margin-top: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.status-loading {
    color: var(--primary-light);
}

.status-success {
    color: #22c55e;
}

.status-error {
    color: #ef4444;
}

@media (max-width: 768px) {
    .email-form-group {
        flex-direction: column;
    }
}