.tt-expert-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.tt-expert-popup.is-visible {
    display: flex;
}

.tt-expert-popup.is-closing {
    display: flex;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.tt-expert-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.tt-expert-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.tt-expert-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
}

.tt-expert-popup__close:hover {
    background: var(--gray-100);
}

.tt-expert-popup__content {
    padding: 48px 40px;
}

.tt-expert-popup__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--gray-900);
}

.tt-expert-popup__desc {
    font-size: .875rem;
    color: var(--gray-500);
    margin: 0 0 32px;
}

.tt-expert-popup__field {
    margin-bottom: 16px;
}

.tt-expert-popup__field input,
.tt-expert-popup__field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .9375rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.tt-expert-popup__field input:focus,
.tt-expert-popup__field textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.tt-expert-popup__field textarea {
    resize: vertical;
    min-height: 80px;
}

.tt-expert-popup__submit {
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: var(--green-mid);
    color: var(--white);
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}

.tt-expert-popup__submit:hover {
    background: #15803d;
}

.tt-expert-popup__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tt-expert-popup__message {
    margin-top: 16px;
    font-size: .8125rem;
    font-weight: 500;
    display: none;
}

.tt-expert-popup__message.is-error {
    display: block;
    color: #dc2626;
}

.tt-expert-popup__message.is-success {
    display: block;
    color: var(--green-mid);
}

.tt-expert-popup__success {
    text-align: center;
    padding: 32px 0;
}

.tt-expert-popup__success-icon {
    margin-bottom: 16px;
}

.tt-expert-popup__success-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.tt-expert-popup__success p {
    font-size: .875rem;
    color: var(--gray-500);
    margin: 0;
}

html.tt-expert-open {
    overflow: hidden;
}
