/* TaxUp — concierge contextual editorial */
.taxup-contact-concierge {
    --txc-ink: #171747;
    --txc-text: #4f4d69;
    --txc-muted: #726f82;
    --txc-gold: #9a7b52;
    --txc-gold-soft: #d9c8ad;
    --txc-rule: rgba(23, 23, 71, 0.13);
    --txc-ivory: #f7f5f0;
    --txc-white: #fff;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    margin: 44px 0 34px;
    padding: 38px 40px 32px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(154, 123, 82, 0.24);
    border-radius: 8px;
    background: #f7f5f0;
    box-shadow: 0 18px 46px -40px rgba(23, 23, 71, 0.45);
    color: var(--txc-ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.taxup-contact-concierge,
.taxup-contact-concierge * {
    box-sizing: border-box;
}

.taxup-contact-concierge [hidden] {
    display: none !important;
}

.taxup-contact-concierge::before {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 40px;
    width: 78px;
    height: 2px;
    background: var(--txc-gold);
    content: "";
}

.txc-ribbon {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 999px;
    filter: blur(34px);
    pointer-events: none;
    transform: rotate(-22deg);
}

.txc-ribbon--a {
    bottom: -7%;
    left: -25%;
    width: 85%;
    height: 76px;
    background: #b89b70;
    opacity: 0.24;
}

.txc-ribbon--b {
    top: -8%;
    right: -26%;
    width: 74%;
    height: 70px;
    background: #deceb6;
    opacity: 0.43;
}

.txc-intro,
.txc-panel,
.txc-confirmation {
    position: relative;
    z-index: 2;
}

.txc-brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

.txc-eyebrow,
.txc-step {
    color: var(--txc-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.35;
    text-transform: uppercase;
}

.txc-logo {
    display: block;
    flex: 0 0 auto;
    width: 108px;
    max-width: 28vw;
    height: auto;
    object-fit: contain;
}

.taxup-contact-concierge .txc-preview-badge {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 5px 8px;
    border-left: 2px solid var(--txc-gold);
    background: rgba(154, 123, 82, 0.08);
    color: #6e583d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.taxup-contact-concierge .txc-title,
.taxup-contact-concierge .txc-form-title {
    max-width: 720px;
    margin: 0;
    color: var(--txc-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: left;
}

.taxup-contact-concierge .txc-title {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.18;
}

.taxup-contact-concierge .txc-support {
    max-width: 700px;
    margin: 13px 0 24px;
    color: var(--txc-text);
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
}

.txc-actions,
.txc-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.taxup-contact-concierge button,
.taxup-contact-concierge input,
.taxup-contact-concierge select,
.taxup-contact-concierge textarea {
    font: inherit;
}

.txc-schedule,
.txc-open,
.txc-submit {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--txc-ink);
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.txc-schedule,
.txc-submit {
    background: var(--txc-ink);
    color: var(--txc-white);
}

.txc-open {
    background: transparent;
    color: var(--txc-ink);
}

.txc-schedule:hover,
.txc-submit:hover {
    background: #29285d;
    color: var(--txc-white);
    transform: translateY(-1px);
}

.txc-open:hover {
    background: rgba(154, 123, 82, 0.09);
    color: var(--txc-ink);
    transform: translateY(-1px);
}

.txc-schedule:visited {
    color: var(--txc-white);
}

.txc-schedule:focus-visible,
.txc-open:focus-visible,
.txc-submit:focus-visible,
.txc-close:focus-visible,
.txc-choice-input:focus-visible + span,
.taxup-contact-concierge input:focus-visible,
.taxup-contact-concierge select:focus-visible,
.taxup-contact-concierge textarea:focus-visible,
.txc-confirmation:focus-visible,
.txc-status:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

.txc-submit:disabled {
    cursor: wait;
    opacity: 0.64;
    transform: none;
}

.taxup-contact-concierge .txc-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 21px 0 0;
    color: var(--txc-muted);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: left;
}

.txc-warning::before {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--txc-gold);
    content: "";
}

.txc-panel {
    margin: 30px -8px -2px;
    padding: 28px 30px 30px;
    border: 1px solid var(--txc-rule);
    border-top: 2px solid var(--txc-gold);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 20px 48px -40px rgba(23, 23, 71, 0.4);
    animation: txc-reveal 0.2s ease;
}

@keyframes txc-reveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.txc-form,
.txc-fieldset {
    min-width: 0;
}

.txc-form-head {
    position: relative;
    padding: 0 52px 20px 0;
    border-bottom: 1px solid var(--txc-rule);
}

.taxup-contact-concierge .txc-step {
    margin: 0 0 7px;
}

.taxup-contact-concierge .txc-form-title {
    font-size: 1.5rem;
    line-height: 1.24;
}

.txc-close {
    position: absolute;
    top: -8px;
    right: 0;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--txc-rule);
    border-radius: 50%;
    background: var(--txc-white);
    color: var(--txc-ink);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.txc-fieldset {
    margin: 24px 0 22px;
    padding: 0;
    border: 0;
}

.txc-fieldset legend,
.txc-field > label {
    display: block;
    margin: 0 0 9px;
    color: var(--txc-ink);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.45;
}

.txc-fieldset legend span,
.txc-field > label span {
    color: var(--txc-muted);
    font-weight: 500;
}

.txc-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.txc-choice {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.txc-choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.txc-choice span {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid var(--txc-rule);
    border-radius: 4px;
    background: var(--txc-white);
    color: var(--txc-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.txc-choice:hover span,
.txc-choice-input:checked + span {
    border-color: var(--txc-gold);
    background: #faf7f1;
    color: var(--txc-ink);
}

.txc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 18px;
    margin-top: 19px;
}

.txc-field {
    min-width: 0;
}

.txc-field--wide {
    grid-column: 1 / -1;
}

.taxup-contact-concierge input[type="email"],
.taxup-contact-concierge input[type="text"],
.taxup-contact-concierge select,
.taxup-contact-concierge textarea {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(23, 23, 71, 0.18);
    border-radius: 4px;
    background: #fdfdfc;
    color: var(--txc-ink);
    font-size: 13px;
    line-height: 1.55;
}

.taxup-contact-concierge input[type="email"],
.taxup-contact-concierge input[type="text"],
.taxup-contact-concierge select {
    min-height: 46px;
    padding: 10px 12px;
}

.taxup-contact-concierge textarea {
    min-height: 122px;
    padding: 12px 13px;
    resize: vertical;
}

.taxup-contact-concierge [aria-invalid="true"] {
    border-color: #9c3d3d !important;
    box-shadow: 0 0 0 3px rgba(156, 61, 61, 0.1);
}

.taxup-contact-concierge .txc-help {
    margin: 7px 0 0;
    color: var(--txc-muted);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: left;
}

.txc-honeypot {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.txc-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 22px 0 19px;
    color: var(--txc-text);
    cursor: pointer;
    font-size: 11px;
    line-height: 1.55;
}

.txc-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--txc-ink);
}

.txc-status {
    flex: 1 1 230px;
    min-height: 22px;
    margin: 0;
    color: var(--txc-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

.txc-status[data-state="error"] {
    color: #883838;
    font-weight: 600;
}

.txc-confirmation {
    padding: 9px 0 4px;
}

.txc-confirmation-mark {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px solid rgba(154, 123, 82, 0.44);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    color: var(--txc-gold);
    font-size: 17px;
}

.taxup-contact-concierge .txc-confirmation > p:not(.txc-form-title) {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--txc-text);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.taxup-contact-concierge .txc-protocol {
    color: var(--txc-muted);
    font-size: 11px;
}

.txc-protocol strong {
    color: var(--txc-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.txc-noscript a {
    color: var(--txc-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.txc-floating-contact {
    --txc-floating-ink: #171447;
    --txc-floating-gold: #9a7b52;
    --txc-floating-surface: #f7f5f0;
    --txc-floating-text: #3f3d52;
    position: fixed;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 190;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.txc-floating-contact,
.txc-floating-contact * {
    box-sizing: border-box;
}

.txc-floating-launcher {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(185, 155, 112, 0.72);
    border-radius: 999px;
    align-items: center;
    gap: 9px;
    background: #171447;
    box-shadow: 0 13px 32px rgba(18, 15, 66, 0.28), 0 3px 9px rgba(18, 15, 66, 0.2);
    color: #fff;
    cursor: pointer;
    font: 700 0.9rem/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.txc-floating-launcher,
.txc-floating-launcher:link,
.txc-floating-launcher:visited,
.txc-floating-launcher:hover,
.txc-floating-launcher:focus,
.txc-floating-launcher:active {
    color: #fff;
}

.txc-floating-launcher:hover,
.txc-floating-launcher:focus-visible {
    background: #0d0b3e;
    box-shadow: 0 16px 36px rgba(18, 15, 66, 0.34), 0 4px 10px rgba(18, 15, 66, 0.24);
}

.txc-floating-launcher-icon {
    flex: 0 0 auto;
    color: #c8a978;
}

.txc-floating-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(390px, calc(100vw - 40px));
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    padding: 26px;
    overflow: hidden auto;
    border: 1px solid rgba(23, 20, 71, 0.14);
    border-radius: 14px;
    background: var(--txc-floating-surface);
    box-shadow: 0 24px 64px rgba(18, 15, 66, 0.26), 0 8px 22px rgba(18, 15, 66, 0.14);
    color: var(--txc-floating-text);
    isolation: isolate;
}

.txc-floating-panel[hidden] {
    display: none;
}

.txc-floating-panel::before {
    position: absolute;
    top: 0;
    left: 26px;
    width: 72px;
    height: 2px;
    background: var(--txc-floating-gold);
    content: "";
}

.txc-floating-ribbon {
    position: absolute;
    z-index: -1;
    display: block;
    height: 52px;
    border-radius: 999px;
    filter: blur(25px);
    pointer-events: none;
    transform: rotate(-29deg);
}

.txc-floating-ribbon--a {
    bottom: 8%;
    left: -36%;
    width: 76%;
    background: linear-gradient(90deg, rgba(154, 123, 82, 0), rgba(154, 123, 82, 0.34), rgba(99, 91, 255, 0.2));
}

.txc-floating-ribbon--b {
    top: 8%;
    right: -38%;
    width: 72%;
    background: linear-gradient(90deg, rgba(99, 91, 255, 0.32), rgba(154, 123, 82, 0.24), rgba(154, 123, 82, 0));
}

.txc-floating-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    background: rgba(23, 20, 71, 0.07);
    color: var(--txc-floating-ink);
    cursor: pointer;
    font: 400 22px/1 Inter, sans-serif;
}

.txc-floating-brandline {
    position: relative;
    display: flex;
    min-height: 23px;
    margin: 2px 38px 18px 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.txc-floating-brandline img {
    width: 78px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(12%) sepia(31%) saturate(3474%) hue-rotate(220deg) brightness(76%) contrast(104%);
}

.txc-floating-eyebrow,
.txc-floating-title,
.txc-floating-copy {
    position: relative;
    margin: 0;
}

.txc-floating-eyebrow {
    color: var(--txc-floating-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.txc-floating-title {
    color: var(--txc-floating-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.55rem, 5vw, 1.95rem);
    font-weight: 600;
    line-height: 1.08;
}

.txc-floating-copy {
    margin-top: 11px;
    color: var(--txc-floating-text);
    font-size: 12.5px;
    line-height: 1.58;
}

.txc-floating-actions {
    position: relative;
    display: grid;
    margin-top: 20px;
    gap: 10px;
}

.txc-floating-meeting,
.txc-floating-question {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    font: 750 12px/1.25 Inter, system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
}

.txc-floating-meeting,
.txc-floating-meeting:link,
.txc-floating-meeting:visited {
    border: 1px solid var(--txc-floating-ink);
    background: var(--txc-floating-ink);
    color: #fff;
}

.txc-floating-question {
    border: 1px solid rgba(23, 20, 71, 0.3);
    background: rgba(255, 255, 255, 0.64);
    color: var(--txc-floating-ink);
    cursor: pointer;
}

.txc-floating-launcher:focus-visible,
.txc-floating-close:focus-visible,
.txc-floating-meeting:focus-visible,
.txc-floating-question:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .taxup-contact-concierge {
        margin: 36px 0 28px;
        padding: 30px 22px 26px;
        border-radius: 6px;
    }

    .taxup-contact-concierge::before {
        left: 22px;
        width: 68px;
    }

    .txc-ribbon {
        filter: blur(28px);
    }

    .txc-ribbon--a {
        bottom: 3%;
        left: -62%;
        width: 120%;
        height: 62px;
        opacity: 0.2;
    }

    .txc-ribbon--b {
        top: 7%;
        right: -65%;
        width: 110%;
        height: 58px;
        opacity: 0.34;
    }

    .taxup-contact-concierge .txc-title {
        font-size: clamp(1.52rem, 7.4vw, 1.86rem);
    }

    .txc-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .txc-schedule,
    .txc-open,
    .txc-submit {
        width: 100%;
        min-height: 48px;
    }

    .txc-panel {
        margin: 27px -8px -4px;
        padding: 24px 20px 24px;
    }

    .txc-choice-grid,
    .txc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .txc-field--wide {
        grid-column: auto;
    }

    .txc-submit-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .txc-status {
        flex-basis: auto;
    }

    .txc-floating-contact {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
    }

    .txc-floating-launcher {
        margin-left: auto;
        padding: 12px 16px;
        font-size: 0.86rem;
    }

    .txc-floating-panel {
        right: 0;
        left: 0;
        width: auto;
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        padding: 24px 20px 22px;
        border-radius: 12px;
    }

    .txc-floating-brandline {
        align-items: flex-start;
        flex-direction: column-reverse;
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .taxup-contact-concierge,
    .taxup-contact-concierge *,
    .txc-floating-contact,
    .txc-floating-contact * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: 0.001s !important;
    }
}
