/* ==========================================================================
   Sticky Contact Tab — fixed to the bottom-right edge of the viewport
   ========================================================================== */

.contact-tab {
    position: fixed;
    right: 0;
    bottom: 30px;
    z-index: 98; /* below header (100) but above most content */

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;

    background-color: var(--color-maroon);
    color: var(--color-white);
    text-decoration: none;

    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 50px 0 0 50px;
    box-shadow: -3px 2px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;

    transition: padding-right 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-tab:hover {
    padding-right: 2rem;
    box-shadow: -5px 3px 16px rgba(0, 0, 0, 0.28);
    background-color: #6e1522; /* slightly lighter maroon on hover */
}

.contact-tab__icon {
    flex-shrink: 0;
    display: block;
}

.contact-tab__label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-white);
    white-space: nowrap;
    margin-top: -5px;
}

/* Mobile: icon only */

@media (max-width: 767px) {
    .contact-tab__label {
        display: none;
    }

    .contact-tab {
        padding: 0.875rem;
        gap: 0;
    }
}

/* ==========================================================================
   Contact Modal — opened by the contact tab when a form embed is set
   ========================================================================== */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9991; /* above the contact tab and header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 69, 45, 0.6); /* dark green, matching brand */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.contact-modal__box {
    position: relative;
    z-index: 1;
    background: var(--color-white);
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    color: var(--color-dark_green);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.contact-modal__close:hover {
    opacity: 1;
}

.contact-modal__body {
    margin-top: 1rem;
}
