.inquiry-form {
    color: #ffffff;
    max-width: 100%;
}

@media screen and (min-width: 1024px) {
    .inquiry-form {
        width: 720px;
    }
}

.inquiry-form .flex-row {
    display: flex;
}

.inquiry-form .form-group {
    flex: 1;
}

.inquiry-form label {
    display: block;
    margin-bottom: 10px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

.inquiry-form input[type="submit"] {
    background-color: #fff;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.inquiry-form input[type="submit"]:hover {
    background-color: #e0e0e0;
}

.cart-item_img a img {
    width: 120px;
    box-shadow: none;
}

.cart-item {
    background: transparent;
}

@media (max-width: 767px) {
    .inquiry-form .flex-row {
        flex-direction: column;
    }
}

@media (min-width: 767px) {

    .inquiry-form .flex-row {
        gap: 20px;
    }
}

@media screen and (min-width: 1025px) {
    .inquiry-form .form-row:first-child p {
        width: 48%;
    }
}

/* products */
.wpcf7-form-control-wrap[data-name="products"] .wpcf7-form-control.wpcf7-checkbox {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    background-color: var(--black-dark-bg);
    padding: 0;
    border-radius: 8px;
}

.wpcf7-form-control-wrap[data-name="products"] input[type="checkbox"] {
    display: none;
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item {
    margin: 0 !important;
    flex: 1;
    position: relative;
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item label {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #555555, #444444);
    border: 2px solid #777;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media screen and (min-width: 1024px) {
    .wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item label:hover {
        transform: scale(0.95);
    }
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item label:has(input:checked) {
    border-color: var(--green);
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item-label {
    display: flex;
    flex-direction: column;
    color: var(--green);
    font-size: 1rem;
    text-transform: uppercase;
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item-label::after {
    color: #ffffff;
    font-size: .9rem;
    text-transform: none;
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item label::before {
    content: "";
    width: 130px;
    height: 100px;
    margin-right: 1rem;
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.4));
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after {
    content: "3 in 1 Hipot Tester";
}

html[lang="zh-TW"] .wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after {
    content: "三合一 電氣安全測試";
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item:nth-child(1) label::before {
    background: url('/wp-content/uploads/2026/03/EEC-31-DS.png') no-repeat center/contain;
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item:nth-child(2) label::before {
    background: url('/wp-content/uploads/2026/03/EEC-41-DS.png') no-repeat center/contain;
}

.wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
    content: "4 in 1 Hipot Tester";
}

html[lang="zh-TW"] .wpcf7-form-control-wrap[data-name="products"] .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
    content: "四合一電氣安全測試";
}

/* loader */
.wpcf7-form.submitting .eec-btn {
    background: white
}

.wpcf7-form.submitting .eec-btn span {
    opacity: 0;
    visibility: hidden;
}

.wpcf7-form.submitting .eec-btn .loader {
    opacity: 1;
    visibility: visible;
}

.eec-btn .loader {
    width: 40px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: var(--blue);
    animation: l15 1s infinite linear;
    position: absolute;
    inset: 0;
    margin: 0 auto;
    top: 6px;
    opacity: 0;
    visibility: hidden;
}

.eec-btn .loader::before,
.eec-btn .loader::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}

.eec-btn .loader::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes l15 {
    100% {
        transform: rotate(1turn)
    }
}