@import "../component-loading/style.css";

.inquiry{
    max-width: 928px;
    margin: 0 auto;
    padding: 80px 24px;
    h1,
    h2{
        text-align: center;
        margin-bottom: 60px;
    }
}

@media screen and (width < 768px) {
    .inquiry{
        padding: 60px 24px;
        h1,
        h2{
            margin-bottom: 40px;
        }
    }
}

#inquiry-product-list{
    margin-bottom: 80px;
    >table{
        tr{
            display: grid;
            grid-template-columns: 144px 168px 133px 40px;
            justify-content: space-between;
            align-items: center;
        }
        >thead>tr{
            padding-bottom: 16px;
            >th:nth-child(1),
            >th:nth-child(3){
                text-align: start;
            }
        }
        >tbody>tr{
            padding: 16px 0;
            border-bottom: 1px solid #000;

            &:first-child{
                border-top: 1px solid #000;
            }

            >td:nth-child(1){
                aspect-ratio: 1;
                padding: 12px;
                background-color: var(--color-gray-7);
                >img{
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }
            >td:nth-child(2) > p{
                text-align: center;
                &:nth-child(1){
                    font-weight: 500;
                    color: var(--color-primary-1);
                    margin-bottom: 12px;
                }
            }
            >td:nth-child(3) > div{
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 13px 6px;
                border: 1px solid #000;
            }
        }
    }
}

@media screen and (width < 768px) {
    #inquiry-product-list{
        margin-bottom: 60px;
    }
}
@media screen and (width < 576px) {
    #inquiry-product-list > table{
        tr{
            grid-template-columns: 160px 1fr auto;
            gap: 0 24px;
        }
        >thead{
            display: none;
        }
        > tbody > tr > td{
            &:nth-child(1){
                grid-row: span 2;
            }
            &:nth-child(2) > p{
                text-align: start;
                &:nth-child(1){
                    margin-bottom: 0px;
                }
            }
            &:nth-child(3) > div{
                padding: 8px;
            }
            &:nth-child(4){
                grid-area: 1 / 3 / 3 / 4;
                > button{
                    margin-left: auto;
                }
            }
        }
    }
}
@media screen and (width < 425px) {
    #inquiry-product-list > table{
        tr{
            grid-template-columns: 120px 1fr auto;
            gap: 0 16px;
        }
        >tbody > tr > td:nth-child(4){
            svg{
                width: 32px;
                height: 32px;
            }
        }
    }
}

.product-list-input-container{
    display: none;
}

#inquiry-user-info{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    >label>p>span{
        color: #FF0000;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"]{
        font-size: 16px;
        line-height: 1.5;
        font-weight: 400;
        letter-spacing: 0.8px;
        color: var(--color-gray-1);
        border: 1px solid var(--color-gray-3);
        padding: 10px 16px;
        margin-top: 12px;
        width: 100%;
        border-radius: 999px;
    }
    input[type="submit"]{
        grid-column: span 2;
        padding: 20px 94px;
        border: none;
        border-radius: 0;
        width: fit-content;
        margin: 56px auto 0;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 500;
        letter-spacing: 1.44px;
        color: white;
        background-color: var(--color-primary-1);
        cursor: pointer;
        transition: color 0.3s;
        &:hover{
            color: var(--color-secondary-4);
        }
    }
    .wpcf7-spinner{
        display: none;
    }
    .wpcf7-not-valid-tip{
        font-size: 14px;
        line-height: 1.2;
        font-weight: 400;
        letter-spacing: 0.7px;
        margin-top: 8px;
    }
}

@media screen and (width < 1024px) {
    #inquiry-user-info{
        gap: 24px;
    }
}
@media screen and (width < 768px) {
    #inquiry-user-info{
        grid-template-columns: 100%;
        gap: 16px;
        input[type="text"],
        input[type="email"],
        input[type="tel"]{
            font-size: 14px;
            letter-spacing: 0.7px;
            padding: 6px 10px;
        }
        input[type="submit"]{
            grid-column: auto;
            font-size: 16px;
            letter-spacing: 0.8px;
            margin: 36px auto 0;
        }
    }
}
@media screen and (width < 576px) {
    #inquiry-user-info{
        input[type="submit"]{
            padding: 16px 60px;
        }
    }
}

.wpcf7-response-output{
    display: none;
}