/* Main container for trust elements */
.trust-element-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

/* Main wrapper for side-by-side layout */
.trust-element-main-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* Google Reviews Wrapper */
.trust-element-review-wrapper {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 30px;
    display: flex;
    align-items: stretch;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    max-width: 480px;
    box-sizing: border-box;
    position: relative;
    min-height: 120px;
}

.trust-element-review-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Google section styling */
.trust-element-google-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.trust-element-rating-header {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.trust-element-google-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.trust-element-google-logo svg {
    width: 100%;
    height: 100%;
}

.trust-element-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.trust-element-star {
    color: #fbbc04;
    font-size: 20px;
}

/* Review content styling */
.trust-element-review-content {
    flex: 1;
    padding-left: 30px;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    position: relative;
}

.trust-element-review-text {
    font-size: 18px;
    color: #202124;
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 500;
}

.trust-element-reviewer-name {
    font-size: 16px;
    color: #5f6368;
    font-weight: 400;
}

/* Badge section styling */
.trust-element-badge-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Badge wrapper styling */
.trust-element-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-element-badge-wrapper svg {
    width: 100px;
    height: 120px;
}

/* Info text styling - smaller and refined */
.trust-element-info-text {
    font-size: 12px;
    color: #5f6368;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Animation für Textwechsel */
@keyframes trustElementFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.trust-element-fade-in {
    animation: trustElementFadeIn 0.5s ease-in-out;
}

/* Tablet styles (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .trust-element-container {
        padding: 0 20px;
    }
    
    .trust-element-main-wrapper {
        gap: 20px;
    }
    
    .trust-element-review-wrapper {
        padding: 18px 25px;
    }
    
    .trust-element-google-logo {
        width: 50px;
        height: 50px;
    }
    
    .trust-element-star {
        font-size: 18px;
    }
    
    .trust-element-review-text {
        font-size: 16px;
    }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
    .trust-element-container {
        gap: 15px;
        padding: 0 ;
    }
    
    /* Stack elements vertically on mobile */
    .trust-element-main-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Google reviews wrapper adjustments */
    .trust-element-review-wrapper {
        padding: 0;
        gap: 20px;
        width: 100%;
    }
    
    /* Compact Google section on mobile */
    .trust-element-google-section {
        min-width: 80px;
        padding: 15px;
    }
    
    .trust-element-google-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }
    
    .trust-element-rating-header {
        font-size: 13px;
    }
    
    .trust-element-star {
        font-size: 16px;
    }
    
    /* Adjust review content for mobile */
    .trust-element-review-content {
        padding: 15px;
        padding-left: 20px;
        border-left: none;
        border-top: 1px solid #e8e8e8;
    }
    
    .trust-element-review-text {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .trust-element-reviewer-name {
        font-size: 14px;
    }
    
    /* Hide info text on mobile to save space */
    .trust-element-info-text {
        display: none;
    }
    
    /* Adjust badge size for mobile */
    .trust-element-badge-wrapper svg {
        width: 85px;
        height: 102px;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .trust-element-review-wrapper {
        padding: 0;
        gap: 15px;
    }
    
    .trust-element-google-logo {
        width: 40px;
        height: 40px;
    }
    
    .trust-element-rating-header {
        font-size: 12px;
    }
    
    .trust-element-star {
        font-size: 14px;
        gap: 1px;
    }
    
    .trust-element-review-content {
        padding-left: 15px;
    }
    
    .trust-element-review-text {
        font-size: 14px;
    }
    
    .trust-element-reviewer-name {
        font-size: 13px;
    }
}

/* Very small mobile (max-width: 360px) */
@media (max-width: 360px) {
    .trust-element-container {
        gap: 12px;
        padding: 0 ;
    }
    
    .trust-element-review-wrapper {
        padding: 0;
        gap: 12px;
    }
    
    .trust-element-badge-wrapper svg {
        width: 75px;
        height: 90px;
    }
}

/* Compact version for sticky header - keeping this for backward compatibility */
.trust-element-review-container {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.trust-element-review-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.trust-element-review-container.trust-element-compact {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 14px;
    max-width: none;
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
    flex-direction: row;
}

.trust-element-review-container.trust-element-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.trust-element-review-container.trust-element-compact .trust-element-google-section {
    display: none;
}

.trust-element-review-container.trust-element-compact .trust-element-review-content {
    display: none;
}

.trust-element-compact .trust-element-rating-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-right: 8px;
}

.trust-element-compact .trust-element-rating-number {
    font-size: 26px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

.trust-element-compact .trust-element-rating-suffix {
    font-size: 14px;
    font-weight: 400;
    color: #5f6368;
    line-height: 1;
}

.trust-element-compact .trust-element-google-logo {
    width: 32px;
    height: 32px;
    margin: 0 4px;
    flex-shrink: 0;
}

.trust-element-compact .trust-element-stars {
    display: flex;
    gap: 1px;
    margin: 0;
}

.trust-element-compact .trust-element-star {
    color: #fbbc04;
    font-size: 26px;
    line-height: 1;
}

/* Google Step Indicator - positioned at bottom of review content */
.trust-element-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 5px;
}

.trust-element-step-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.trust-element-step {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.6;
}

/* Google colors for each step */
.trust-element-step-1.active { background-color: #4285F4; } /* Blue */
.trust-element-step-2.active { background-color: #EA4335; } /* Red */
.trust-element-step-3.active { background-color: #FBBC05; } /* Yellow */
.trust-element-step-4.active { background-color: #34A853; } /* Green */
.trust-element-step-5.active { background-color: #4285F4; } /* Blue */
.trust-element-step-6.active { background-color: #EA4335; } /* Red */
.trust-element-step-7.active { background-color: #FBBC05; } /* Yellow */
.trust-element-step-8.active { background-color: #34A853; } /* Green */

.trust-element-step.active {
    width: 8px;
    height: 8px;
    opacity: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Animation for step transition */
.trust-element-step.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0;
    animation: stepPulse 0.6s ease-out;
}

@keyframes stepPulse {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Remove step label as requested */
.trust-element-step-label {
    display: none;
}

/* Responsive adjustments for step indicator */
@media (max-width: 768px) {
    .trust-element-step-indicator {
        padding-top: 12px;
    }
    
    .trust-element-step-container {
        gap: 5px;
    }
    
    .trust-element-step {
        width: 5px;
        height: 5px;
    }
    
    .trust-element-step.active {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .trust-element-step-indicator {
        padding-top: 10px;
    }
    
    .trust-element-step-container {
        gap: 4px;
    }
}
