body {
    background: #eef2f7;
}

#page-rules,
#form {
    width: min(850px, 92%);
    margin-inline: auto;
}

header h1 {
    width: min(850px, 92%);
}

#page-rules {
    margin-top: 3rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

#page-rules h2 {
    margin-bottom: 1rem;
}

#page-rules p {
    margin-bottom: 1rem;
}

#page-rules ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#page-rules li {
    margin-bottom: .8rem;
}

#form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#customer-div,
#character-div,
#special-div {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

#customer-div,
#character-div {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.field-header {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.field-header h3 {
    font-size: 1.3rem;
}

.mandatory {
    color: #dc2626;
}

.tooltip {
    position: relative;
}

.tooltip i {
    color: #4b5563;
    cursor: pointer;
}

.clue {
    position: absolute;
    left: 0;
    top: 120%;
    width: 260px;
    background: #1f2937;
    color: white;
    padding: .75rem;
    border-radius: 10px;
    font-size: .85rem;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    z-index: 10;
}

.tooltip:hover .clue {
    opacity: 1;
    visibility: visible;
}

#customer,
.character-inputs input {
    height: 54px;
    font-size: 1rem;
}

.character-inputs {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

#notes {
    min-height: 180px;
}

.add-char {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    font-size: 1.2rem;
}

.add-char:hover {
    background: #1d4ed8;
}

.submit {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.submit:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    #page-rules,
    #form {
        width: 95%;
        padding: 1.5rem;
    }

    .field-header h3 {
        font-size: 1.1rem;
    }

    .clue {
        width: 220px;
    }
}