/**
 * Contact Banner Component Styles
 * 
 * Styles for the ContactBanner Web Component using adoptedStyleSheets.
 * This CSS is loaded and applied to the shadow DOM using the Constructable Stylesheets API.
 * 
 * @version 2.3.0
 * @author Julian Billinger
 */

/* FeatureBanner Component Styles (v2.1.0) */

.contact-banner {
    background: #5cfc26;
    background: linear-gradient(30deg, rgba(60, 171, 23, 1) 0%, rgba(233, 0, 144, 1) 100%);
    color: white;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease-in-out;
    z-index: 0;
}

.contact-banner:hover::before {
    left: 100%;
}

.contact-banner__content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    /* --- KEY CHANGE: Stack text and actions vertically --- */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.contact-banner__text {
    /* Removed flex properties, as they are not needed in a column layout */
    width: 100%;
    max-width: 1400px;
    /* Improves readability on very wide screens */
    text-align: center;
}

.contact-banner__title {
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
    color: white;
}

.contact-banner__subtitle {
    margin: 0.5rem 0 0 0;
    color: white !important;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
}

.contact-banner__actions {
    /* This container now holds the row of buttons/links */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.contact-banner__action-link,
.contact-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-banner__action-link {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.contact-banner__action-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-banner__btn {
    background-color: #a50065;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-banner__btn:hover {
    background-color: #8a0054;
    /* Darker accent */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.contact-banner__icon {
    flex-shrink: 0;
}

/* --- Component Size Modifiers --- */
.component-size--small {
    padding: 1rem 1.5rem;
}

.component-size--normal {
    padding: 2rem 1.5rem;
}

.component-size--big {
    padding: 4rem 1.5rem;
}

/* --- Text Size Modifiers --- */
.text-size--small .contact-banner__title {
    font-size: 1.2rem;
}

.text-size--small .contact-banner__subtitle {
    font-size: 0.9rem;
}

.text-size--normal .contact-banner__title {
    font-size: 1.8rem;
}

.text-size--normal .contact-banner__subtitle {
    font-size: 1.1rem;
}

.text-size--big .contact-banner__title {
    font-size: 2.3rem;
}

.text-size--big .contact-banner__subtitle {
    font-size: 1.3rem;
}

/* --- Color Variant Modifiers --- */
.color-variant--default {
    background: #5cfc26;
    background: linear-gradient(30deg, rgba(60, 171, 23, 1) 0%, rgba(233, 0, 144, 1) 100%);
}

.color-variant--orange {
    background: linear-gradient(30deg, #e6850a, #FFBC03);
}

.color-variant--orange .contact-banner__action-link {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.color-variant--orange .contact-banner__action-link:hover {
    background: rgba(0, 0, 0, 0.35);
}

.color-variant--black {
    background: linear-gradient(30deg, #1a1a1a, #333333);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    /* The main layout is now column-based by default, so fewer changes are needed here. */
}

@media (max-width: 480px) {
    .component-size--normal {
        padding: 1.5rem 1rem;
    }

    .component-size--big {
        padding: 2.5rem 1rem;
    }

    .text-size--normal .contact-banner__title {
        font-size: 1.5rem;
    }

    .text-size--normal .contact-banner__subtitle {
        font-size: 1rem;
    }

    .text-size--big .contact-banner__title {
        font-size: 2rem;
    }

    .text-size--big .contact-banner__subtitle {
        font-size: 1.1rem;
    }

    /* On very small screens, stack the action buttons vertically for better fit */
    .contact-banner__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        align-items: center;
    }

    .contact-banner__action-link,
    .contact-banner__btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Accessibility & Print --- */
.contact-banner__action-link:focus-visible,
.contact-banner__btn:focus-visible {
    outline: 3px solid #a50065;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .contact-banner::before,
    .contact-banner__action-link,
    .contact-banner__btn {
        transition: none;
    }

    .contact-banner__action-link:hover,
    .contact-banner__btn:hover {
        transform: none;
    }
}

@media print {
    .contact-banner {
        background: transparent !important;
        color: black !important;
        border: 2px solid black;
        padding: 1rem;
    }

    .contact-banner__action-link,
    .contact-banner__btn {
        border: 1px solid black;
        color: black;
    }
}