@charset "utf-8";

#main-title {
    padding-left: 2rem;
}

#main-title h1 {
    width: 45%;
    font-size: 40px;
    font-weight: bold;
    color: #000;
    border-bottom: solid 5px #cce4ff;
    position: relative;
}

#main-title h1::after {
    position: absolute;
    content: "";
    display: block;
    border-bottom: solid 5px #5472cd;
    width: 30%;
    left: 0;
    bottom: -5px;
}

.text_img {
    width: 10%;
    vertical-align: middle;
}

#base1 {
    width: 90%;
    margin: 2rem auto;
    padding: 1rem 0;
    box-sizing: border-box;
}

.form-group {
    --category-color: #5472cd;
    --category-light: #edf2ff;
    margin: 0 0 3rem;
}

.cat-qualification {
    --category-color: #5472cd;
    --category-light: #edf2ff;
}

.cat-premium {
    --category-color: #0086b3;
    --category-light: #e9f7fb;
}

.cat-insurance {
    --category-color: #358b66;
    --category-light: #edf8f3;
}

.cat-office {
    --category-color: #967128;
    --category-light: #fbf5e8;
}

.cat-medical {
    --category-color: #8f5c9d;
    --category-light: #f7eff9;
}

.cat-benefit {
    --category-color: #d06a40;
    --category-light: #fff2ec;
}

.cat-third {
    --category-color: #a54d5a;
    --category-light: #fbeff1;
}

.cat-other {
    --category-color: #65727e;
    --category-light: #f1f3f5;
}

.form-group h2 {
    margin: 0 0 1rem;
    padding: 0.7rem 1rem;
    background-color: var(--category-color);
    color: #fff;
    border-radius: 6px;
    font-size: 21px;
    font-weight: bold;
    line-height: 1.5;
}

.form-list {
    display: grid;
    gap: 0.8rem;
}

.form-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: 0.8rem 1rem;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid var(--category-color);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.17);
}

.pdf-icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 42px;
    height: 50px;
    box-sizing: border-box;
    padding-bottom: 6px;
    background-color: var(--category-light);
    border: 2px solid var(--category-color);
    border-radius: 4px;
    color: var(--category-color);
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.pdf-icon::before {
    position: absolute;
    top: -2px;
    right: -2px;
    content: "";
    width: 12px;
    height: 12px;
    background: linear-gradient(225deg, #fff 48%, var(--category-color) 50%, var(--category-color) 56%, var(--category-light) 58%);
    border-top-right-radius: 3px;
}

.form-name {
    color: #222;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.btn-view,
.btn-download {
    display: inline-block;
    min-width: 96px;
    box-sizing: border-box;
    padding: 0.55rem 0.8rem;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.btn-view {
    background-color: #fff;
    border: 2px solid var(--category-color);
    color: var(--category-color);
}

.btn-view:hover {
    background-color: var(--category-light);
}

.btn-download {
    background-color: var(--category-color);
    border: 2px solid var(--category-color);
    color: #fff;
}

.btn-download:hover {
    background-color: #fff;
    color: var(--category-color);
}

@media screen and (max-width: 900px) {
    .form-card {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .form-actions {
        grid-column: 2;
        justify-content: flex-start;
        padding-bottom: 0.2rem;
    }
}

@media screen and (max-width: 700px) {
    #main-title {
        padding: 0 1rem;
    }

    #main-title h1 {
        width: 100%;
        font-size: 28px;
        line-height: 1.5;
        box-sizing: border-box;
    }

    .text_img {
        width: 10%;
    }

    #base1 {
        width: auto;
        margin: 1rem;
        padding: 0;
    }

    .form-group {
        margin-bottom: 2rem;
    }

    .form-group h2 {
        padding: 0.6rem 0.8rem;
        font-size: 18px;
        border-radius: 5px;
    }

    .form-list {
        gap: 0.7rem;
    }

    .form-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.7rem;
        min-height: 0;
        padding: 0.8rem;
        border-left-width: 4px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.11);
    }

    .pdf-icon {
        width: 36px;
        height: 43px;
        padding-bottom: 5px;
        font-size: 10px;
    }

    .pdf-icon::before {
        width: 10px;
        height: 10px;
    }

    .form-name {
        font-size: 15px;
        line-height: 1.6;
    }

    .form-actions {
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 0.2rem;
        justify-content: stretch;
    }

    .btn-view,
    .btn-download {
        flex: 1;
        min-width: 0;
        padding: 0.5rem;
        font-size: 13px;
    }
}