#guests button.add-guest{
    background-color: #264B88;
}

#guest-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top:10px;
    font-size:14px;
    flex-grow:1;
}

#guest-details input {
    height: 30px;
    font-size: 13px;
}

#guest-details .guest-section {
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
    padding-left: 10px;
}

#guest-details .guest-info {
    display:flex;
    gap:20px;
}

#guest-details .guest-section .name {
    margin-top: -17px;
    z-index: 20;
    background-color: white;
    font-weight: bold;
    width:fit-content;
    padding-left:3px;
    padding-right:3px;
    display:flex;
    gap:10px;
}

#guest-details .guest-info div {
    flex-grow:1;
}

#guest-details .guest-info .required {
    color: red;
}

#guests ::before, #guests ::after {
    display:none;
}

#guest-details .guest-projects label {
    text-decoration: underline;
    font-size: 16px;
    font-weight: bold;
}

#guest-details .project-grid {
    align-items: center;
    display: grid;
    grid-template-columns: 60px 2fr 2fr 2fr auto 1fr;
    grid-template-rows: 30px;
    margin-top:5px;
    grid-gap:5px;
}

#guest-details .proj-img {
    width: 40px;
    height: 30px;
    background-size: 40px;
    background-repeat: no-repeat;
}

#guest-details .proj-actions {
    color: grey;
    display: flex;
    gap: 10px;
    justify-content: end;
    padding-right: 5px;
}

#guests i::before, #guests i::after {
    display:block;
}

#guest-details button.icon {
    background: transparent;
    color: gray;
    width: auto;
    padding:0;
}

#guest-details button.icon:hover {
    color:black;
}

#guest-details .add-project button{
    height: 20px;
    font-size: 12px;
    padding: 2px;
    border-radius: 2px;
}

#guest-details .add-project button:hover {
    opacity:.9;
}

#guest-details .add-project{
    display:flex;
    justify-content: end;
}

#guest-details .grand-total {
    display: flex;
    justify-content: end;
    font-weight: bold;
    font-size: 20px;
    margin-top: -15px;
}

#guests .form .content {
    justify-content:normal;
}

@media screen and (max-width: 1000px) {
    #guests.form label {
        text-align:start;
    }
    
    #guest-details .guest-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #guest-details .guest-info div {
        display: grid;
        grid-template-columns: 1fr 3fr;
    }

    #guest-details .project-grid {
        align-items: end;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto;
        grid-template-areas: "img actions"
                "title price"
                "customizations price"
                "notes price";
    }

    #guest-details .guest-projects {
        text-align: start;
    }

    #guest-details .guest-projects .add-project {
        margin-top:5px;
    }
    
    #guest-details .project-grid .proj-img{
        grid-area: img;
        text-align:start;
    }
    #guest-details .project-grid .proj-title{
        grid-area: title;
        text-align:start;
    }
    #guest-details .project-grid .proj-customizations{
        grid-area: customizations;
        text-align:start;
    }
    #guest-details .project-grid .proj-notes {
        grid-area: notes;
        text-align:start;
    }

    #guest-details .project-grid .proj-actions{
        grid-area: actions;
        text-align:end;
    }
    #guest-details .project-grid .proj-price {
        grid-area: price;
        text-align:end;
    }
}