/* glg-export-rfq/assets/css/rfq.css */

/* บังคับ Scope ให้ Tailwind ทำงานได้ดีขึ้น */
.glg-rfq-wrapper {
    box-sizing: border-box;
}

.glg-rfq-wrapper *, .glg-rfq-wrapper *::before, .glg-rfq-wrapper *::after {
    box-sizing: border-box;
}

/* แก้ปัญหา Input เล็กเกินไปในบางธีม */
.glg-rfq-wrapper input[type="text"],
.glg-rfq-wrapper input[type="email"],
.glg-rfq-wrapper input[type="tel"],
.glg-rfq-wrapper input[type="number"],
.glg-rfq-wrapper input[type="date"],
.glg-rfq-wrapper select,
.glg-rfq-wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    background-color: #fff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.glg-rfq-wrapper input:focus,
.glg-rfq-wrapper select:focus,
.glg-rfq-wrapper textarea:focus {
    border-color: #16a34a !important;
    outline: 2px solid rgba(22, 163, 74, 0.2) !important;
}

/* จัดระยะห่าง Label */
.glg-rfq-wrapper label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #334155;
}

/* ปุ่มเปลี่ยนภาษา */
.glg-lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}
.glg-lang-switcher a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 5px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s;
}
.glg-lang-switcher a.active {
    background: #166534;
    color: white;
    border-color: #166534;
}
.glg-lang-switcher a:hover:not(.active) {
    background: #f1f5f9;
}