:root {
    --tremml-accent: #f4e225;
    --tremml-black: #232323;
    --tremml-white: #ffffff;
    --tremml-muted: #555555;
    --tremml-border: #e0e0e0;
    --tremml-input-border: #d4d4d8;
    --tremml-error: #dc2626;
}

.tremml-inquiry-wrapper {
    margin: 12px 0;
}

.tremml-inquiry-open-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid var(--tremml-black);
    border-radius: 10px;
    background: var(--tremml-black);
    color: var(--tremml-white);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tremml-inquiry-open-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tremml-inquiry-open-btn:hover {
    background: var(--tremml-accent);
    color: var(--tremml-black);
    border-color: var(--tremml-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 226, 37, .35);
}

.tremml-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tremmlFadeIn .2s ease;
}

.tremml-modal-overlay.is-open {
    display: flex;
}

@keyframes tremmlFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tremml-modal {
    background: var(--tremml-white);
    border: 1px solid var(--tremml-border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 28px 24px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
    animation: tremmlSlideUp .25s ease;
    color: var(--tremml-black);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.tremml-modal,
.tremml-modal * {
    box-sizing: border-box;
}

@keyframes tremmlSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.tremml-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--tremml-border);
    background: #fafafa;
    color: #737373;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tremml-modal-close:hover {
    background: var(--tremml-black);
    color: var(--tremml-white);
    border-color: var(--tremml-black);
}

.tremml-modal-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efefef;
}

.tremml-modal-header-accent {
    width: 38px;
    height: 4px;
    background: var(--tremml-accent);
    border-radius: 999px;
    margin-bottom: 12px;
}

.tremml-modal-header h3 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--tremml-black);
}

.tremml-modal-product {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tremml-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #3f3f46;
}

.tremml-modal-ref {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    font-size: 12px;
    font-weight: 500;
    color: #52525b;
}

.tremml-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tremml-field {
    margin: 0;
}

.tremml-field-row {
    display: flex;
    gap: 12px;
}

.tremml-half {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.tremml-modal-form label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #3f3f46;
    text-align: left;
}

.tremml-modal-form label small {
    font-size: 12px;
    color: #71717a;
    font-weight: 500;
}

.tremml-req {
    color: #ca8a04;
    font-weight: 700;
}

.tremml-modal-form input[type="text"],
.tremml-modal-form input[type="tel"],
.tremml-modal-form input[type="email"],
.tremml-modal-form textarea {
    width: 100%;
    border: 1px solid var(--tremml-input-border);
    border-radius: 10px;
    background: var(--tremml-white);
    color: var(--tremml-black);
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    padding: 10px 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none;
}

/* PrestaShop Theme override shield: enforce consistent control sizes */
#tremmlInquiryModal .tremml-modal-form .tremml-field input[type="text"],
#tremmlInquiryModal .tremml-modal-form .tremml-field input[type="tel"],
#tremmlInquiryModal .tremml-modal-form .tremml-field input[type="email"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    border-radius: 10px !important;
}

#tremmlInquiryModal .tremml-modal-form .tremml-field textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 108px !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    border-radius: 10px !important;
}

.tremml-modal-form input[type="text"],
.tremml-modal-form input[type="tel"],
.tremml-modal-form input[type="email"] {
    height: 42px;
}

.tremml-modal-form textarea {
    min-height: 108px;
    resize: vertical;
    padding-top: 10px;
}

.tremml-modal-form input::placeholder,
.tremml-modal-form textarea::placeholder {
    color: #a1a1aa;
    opacity: 1;
}

.tremml-modal-form input:focus,
.tremml-modal-form textarea:focus {
    border-color: var(--tremml-accent);
    box-shadow: 0 0 0 3px rgba(244, 226, 37, .25);
}

.tremml-modal-submit {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--tremml-black);
    border-radius: 10px;
    background: var(--tremml-black);
    color: var(--tremml-white);
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    padding: 11px 16px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tremml-modal-submit:hover {
    background: var(--tremml-accent);
    color: var(--tremml-black);
    border-color: var(--tremml-accent);
    box-shadow: 0 6px 16px rgba(244, 226, 37, .3);
}

.tremml-modal-submit:active {
    transform: translateY(1px);
}

.tremml-modal-submit:disabled {
    opacity: .65;
    cursor: wait;
    box-shadow: none;
}

.tremml-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes tremmlSpin {
    to { transform: rotate(360deg); }
}

.tremml-spinner-icon {
    animation: tremmlSpin .8s linear infinite;
}

.tremml-modal-privacy {
    margin: 4px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #737373;
}

.tremml-modal-privacy svg {
    vertical-align: -1px;
    margin-right: 3px;
    opacity: .5;
}

.tremml-modal-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    border-left: 3px solid #ef4444;
    background: #fef2f2;
    color: var(--tremml-error);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.tremml-modal-success {
    text-align: center;
    padding: 20px 0 4px;
}

.tremml-check-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--tremml-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tremml-modal-success h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--tremml-black);
}

.tremml-modal-success p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tremml-muted);
}

body.tremml-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .tremml-modal-overlay {
        padding: 14px;
    }

    .tremml-modal {
        padding: 24px 18px 18px;
        border-radius: 14px;
    }

    .tremml-modal-header h3 {
        font-size: 26px;
    }

    .tremml-field-row {
        flex-direction: column;
        gap: 16px;
    }
}
