/* Sustainability Reports Calculator CSS */

/* Import Red Hat Text and Red Hat Display fonts */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700&family=Red+Hat+Text:wght@400;500;600&display=swap');

/* Global Font Styles */
.calculator-overlay,
.calculator-popup,
.sustainability-calculator-btn,
.pricing-overview-btn {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calculator-header h3,
.pricing-result h4,
.calculator-content h4,
.calculator-content h3 {
    font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Button Styling */
.sustainability-calculator-btn {
    background: #00aa7c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Red Hat Text', sans-serif;
}

.sustainability-calculator-btn:hover {
    background: #00aa7c;
    transform: translateY(-1px);
}

/* Pricing Overview Link Container */
.pricing-overview-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Pricing Overview Button (inside popup) */
.pricing-overview-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Red Hat Text', sans-serif;
}

.pricing-overview-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Overlay */
.calculator-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.calculator-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup */
.calculator-popup {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* Header */
.calculator-header {
    background: #00aa7c;
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculator-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.calculator-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.calculator-close:hover {
    transform: scale(1.1);
}

/* Content */
.calculator-content {
    padding: 30px;
    position: relative;
    overflow: visible;
}

.calculator-intro {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00aa7c;
    box-shadow: 0 0 0 3px rgba(0, 170, 124, 0.1);
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #00aa7c;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label:hover .checkbox-text {
    color: #00aa7c;
}

/* What's Included Section */
.whats-included {
    background: #f0fdf9;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

.whats-included h4 {
    margin: 0 0 15px 0;
    color: #00aa7c;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Red Hat Display', sans-serif;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    text-align: left;
}

.included-list li:before {
    content: "✓";
    color: #00aa7c;
    font-weight: bold;
    margin-right: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

.included-list li span,
.included-list li {
    text-align: left;
    width: 100%;
}

/* Help Tooltip Styling */
.help-tooltip {
    display: inline-block;
    background: #00aa7c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    margin-left: 8px;
    position: relative;
    font-family: 'Red Hat Display', sans-serif;
    transition: all 0.3s ease;
}

.help-tooltip:hover {
    background: #00aa7c;
    transform: scale(1.1);
}

.help-tooltip[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    max-width: calc(100vw - 40px);
    background: #2d3748;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    white-space: normal;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    z-index: 10000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Red Hat Text', sans-serif;
    animation: tooltipFadeIn 0.2s ease-out;
}

.help-tooltip[title]:hover::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #2d3748;
    z-index: 10000;
    animation: tooltipFadeIn 0.2s ease-out;
}

/* Responsive tooltip positioning */
@media (max-width: 480px) {
    .help-tooltip[title]:hover::after {
        width: 220px;
        max-width: calc(100vw - 20px);
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* Tooltip animation */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calculate Button */
.calculate-btn {
    background: #00aa7c;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: #00aa7c;
    transform: translateY(-1px);
}

.calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pricing Result */
.pricing-result {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #00aa7c;
    animation: slideDown 0.4s ease;
}

.pricing-result h4 {
    margin: 0 0 20px 0;
    color: #00aa7c;
    font-size: 20px;
    font-weight: 600;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #00aa7c;
    margin-right: 8px;
}

.price-currency {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.pricing-details {
    margin-bottom: 20px;
}

.pricing-details p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.pricing-disclaimers {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.pricing-disclaimers p {
    margin: 5px 0;
    color: #777;
}

.pricing-disclaimers small {
    font-size: 12px;
}

#data-extraction-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

#data-extraction-disclaimer p {
    margin: 0;
    color: #856404;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-popup {
        max-width: 95%;
        width: 95%;
        margin: 10px;
    }
    
    .calculator-header,
    .calculator-content {
        padding: 20px;
    }
    
    .calculator-header h3 {
        font-size: 20px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .sustainability-calculator-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .calculator-header,
    .calculator-content {
        padding: 15px;
    }
    
    .price-amount {
        font-size: 24px;
    }
}

/* Pricing Overview Specific Styles */
.pricing-overview-table {
    margin: 25px 0;
    overflow-x: auto;
    border-radius: 8px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pricing-table th,
.pricing-table td {
    padding: 16px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-table th {
    background: #00aa7c;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table td {
    color: #374151;
    font-size: 14px;
    vertical-align: middle;
}

.pricing-table tr:hover {
    background: #f9fafb;
}

.pricing-table td strong {
    color: #00aa7c;
    font-weight: 600;
}

.pricing-notes {
    background: #f0fdf9;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.pricing-notes h4 {
    margin: 0 0 15px 0;
    color: #00aa7c;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Red Hat Display', sans-serif;
}

.pricing-notes ul {
    margin: 0;
    padding-left: 20px;
}

.pricing-notes li {
    margin: 8px 0;
    color: #374151;
    line-height: 1.5;
}

.pricing-examples {
    margin-top: 20px;
}

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

.example-card {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: #00aa7c;
    box-shadow: 0 4px 10px rgba(0, 170, 124, 0.15);
    transform: translateY(-2px);
}

.example-card h5 {
    margin: 0 0 10px 0;
    color: #00aa7c;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Red Hat Display', sans-serif;
}

.example-card p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 14px;
}

.example-card p strong {
    color: #00aa7c;
} 