.tc-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.tc-quote-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.tc-quote-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 68, 0.72);
    backdrop-filter: blur(4px);
}
.tc-quote-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 28px 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 120px rgba(7, 31, 68, 0.28);
    border: 1px solid rgba(7, 31, 68, 0.08);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
}
.tc-quote-modal.is-open .tc-quote-modal__dialog {
    transform: translateY(0) scale(1);
}
.tc-quote-modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    color: #071f44;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}
.tc-quote-modal__close:hover { background: #ff6600; color: #fff; }

.tc-quote-modal__head { text-align: center; margin-bottom: 22px; padding-right: 28px; }
.tc-quote-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #071f44, #0a2d5c);
    color: #fff;
    font-size: 26px;
}
.tc-quote-modal__head h3 {
    margin: 0 0 8px;
    color: #071f44;
    font-size: 28px;
    font-weight: 800;
}
.tc-quote-modal__product {
    margin: 0;
    color: #ff6600;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tc-quote-modal__field { margin-bottom: 14px; }
.tc-quote-modal__field label {
    display: block;
    margin-bottom: 6px;
    color: #071f44;
    font-size: 13px;
    font-weight: 700;
}
.tc-quote-modal__field input,
.tc-quote-modal__field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(7, 31, 68, 0.14);
    background: #fff;
    color: #071f44;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tc-quote-modal__field textarea { min-height: 110px; resize: vertical; }
.tc-quote-modal__field input:focus,
.tc-quote-modal__field textarea:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}
.tc-quote-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tc-quote-modal__alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}
.tc-quote-modal__alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tc-quote-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px;
}
.tc-quote-modal__btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}
.tc-quote-modal__btn--ghost {
    background: #f1f5f9;
    color: #071f44;
}
.tc-quote-modal__btn--ghost:hover { background: #e2e8f0; }
.tc-quote-modal__btn--primary {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    box-shadow: 0 14px 32px rgba(255, 102, 0, 0.28);
}
.tc-quote-modal__btn--primary:hover { transform: translateY(-1px); }
.tc-quote-modal__btn--primary:disabled { opacity: 0.7; cursor: wait; }

.tc-quote-modal__success {
    text-align: center;
    padding: 12px 0 4px;
}
.tc-quote-modal__success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 36px;
}
.tc-quote-modal__success h4 {
    margin: 0 0 8px;
    color: #071f44;
    font-size: 24px;
    font-weight: 800;
}
.tc-quote-modal__success p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 15px;
}

@media (max-width: 575.98px) {
    .tc-quote-modal__dialog { padding: 26px 20px 22px; border-radius: 22px; }
    .tc-quote-modal__row { grid-template-columns: 1fr; }
    .tc-quote-modal__actions { flex-direction: column; }
    .tc-quote-modal__btn { width: 100%; }
}
