body {
    font-family: Arial, sans-serif;
}

.boxForm {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.boxFormList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0px;
    padding: 0 16px;
}

.itemForm {
    width: calc(25% - 10px);
    margin-bottom: 15px;
    margin-bottom: 0;
}

.boxTitForm {
    margin-bottom: 8px;
}

.titForm {
    font-weight: bold;
    color: #333;
}

.boxSelectForm select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.boxSubmit {
    text-align: center;
}

.boxBtn {
    border: none;
    background: none;
    cursor: pointer;
}

.boxBtn img {
    width: 100%;
    max-width: 1000px;
    transition-property: opacity;
    transition-duration: 0.5s;
}

.boxBtn img:hover {
    opacity: 0.7;
}

.boxForm ul.boxFormList li.itemForm {
    list-style: none;
}

.boxTitForm {
    display: flex;
    align-items: center;
}

.boxTitForm::after {
    content: "";
    background: url(img/imgFormCheckNg.gif) center top / cover no-repeat;
    width: 24px;
    height: 24px;
    margin-left: 16px;
    display: block;
}

p.titForm {
    margin-bottom: 0;
    position: relative;
    height: 32px;
    background: #002471;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 16px 0 24px;
    font-size: clamp(12px, 1.8vw, 16px);
    white-space: nowrap;
    padding: 0px clamp(12px, 1.1vw, 15px) 0px clamp(12px, 2vw, 21px);
}

p.titForm::before {
    left: 0;
    border: 8px solid #fff;
}

p.titForm::after {
    right: -24px;
    border: 8px solid #002471;
}

p.titForm::before,
p.titForm::after {
    content: '';
    position: absolute;
    display: block;
    border-top: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

@media screen and (max-width:480px) {
    ul.boxFormList {
        flex-direction: column;
        padding: 0;
    }
    li.itemForm {
        display: flex;
        align-items: center;
        width: auto;
        margin-bottom: 0;
    }
    .boxSelectForm select {
        width: auto;
        min-width: 52vw;
        height: 48px;
        font-size: 16px;
    }
    p.titForm {
        position: unset;
        height: 48px;
        padding: 0 8px;
        margin: 0.5em 0;
    }
    .boxTitForm {
        margin-bottom: 0;
    }
    .boxTitForm::after {
        position: absolute;
        right: 3vw;
    }
    p.titForm::after, p.titForm::before {
        display: none;
    }
    
    ul.boxFormList {
        margin-left: 0;
    }
}

p.titForm.selected {
    background: #00c300 !important;
}

p.titForm.selected::after {
    border: 8px solid #00c300;
    border-top: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

.boxTitForm.selected::after {
    background-image: url(img/imgSelectOk.gif);
}

button.boxBtn:hover {
    background: transparent;
}

ul.boxFormList {
    margin: 0;
}