/**
 * ENNU Offer Widgets - Frontend Styles
 */

.bf-hero {
    animation: fadeIn 0.6s ease-in-out;
}

.bf-hero h1 {
    animation: slideDown 0.8s ease-out;
}

.bf-hero p {
    animation: slideUp 0.8s ease-out;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .bf-hero {
        padding: 40px 20px;
    }

    .bf-hero h1 {
        font-size: 2rem !important;
    }

    .bf-hero p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .bf-hero {
        padding: 30px 15px;
    }

    .bf-hero h1 {
        font-size: 1.5rem !important;
    }

    .bf-hero p {
        font-size: 0.9rem !important;
    }
}

/* Calculator styles */
.bf-calculator input[type="radio"] {
    cursor: pointer;
}

.bf-calculator input[type="number"] {
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.bf-calculator input[type="number"]:focus {
    border-color: #e74c3c !important;
    outline: none;
}

/* FAQ styles */
.bf-faq-item {
    border: 2px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bf-faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bf-faq-question {
    background: #ecf0f1;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    user-select: none;
    transition: background 0.3s ease;
}

.bf-faq-question:hover {
    background: #d5dbde;
}

.bf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.bf-faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

/* Button hover effects */
.bf-cta-button {
    transition: all 0.3s ease !important;
}

.bf-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}

/* Card hover effects */
.bf-benefits-card {
    transition: all 0.3s ease;
}

.bf-benefits-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Countdown styles */
.bf-countdown-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bf-countdown-item {
    background: rgba(231, 76, 60, 0.2);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
    border: 2px solid #e74c3c;
    text-align: center;
}

.bf-countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.bf-countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    display: block;
}

/* Testimonial styles */
.bf-testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
    transition: all 0.3s ease;
}

.bf-testimonial:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bf-testimonial-avatar {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* Trust indicators */
.bf-trust-stat {
    text-align: center;
}

.bf-trust-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.bf-trust-label {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Peptide cards */
.bf-peptide-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

.bf-peptide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Options cards */
.bf-option-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid #e74c3c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.bf-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bf-option-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Steps section */
.bf-step-item {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.bf-step-item:hover {
    transform: translateY(-5px);
}

.bf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Calculator steps */
.bf-calc-step {
    border: 2px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.bf-calc-step-active {
    border-color: #e74c3c;
}

.bf-calc-step-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Option radio buttons */
.bf-option-radio {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
}

.bf-option-radio input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
}

.bf-option-radio label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.bf-option-title {
    font-weight: 600;
    color: #2c3e50;
}

.bf-option-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 4px;
}

/* Results box */
.bf-results-box {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.bf-results-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.bf-results-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.bf-results-savings {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Accessibility improvements */
a.bf-cta-button:focus,
input:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bf-cta-button,
    .bf-countdown-box {
        display: none;
    }
}
