input[type=date],
input[type=text],
input[type=tel],
input[type=email] {
    border: 1px solid #ccc;
    height: 30px;
    padding: 0 10px;
    width: 100%;
}
input[type=file] {
    height: 30px;
}
input:focus,
select:focus {
    background: #ffe;
    border-color: #ccc;
    outline: none;
}
input[type=checkbox]:focus {
    background: #f00;
    outline:#0d83fd;
}
select {
    border: 1px solid #ccc;
    height: 30px;
    width: 100%;
}
textarea {
    border: 1px solid #ccc;
    min-height: 100px;
    padding: 6px;
    resize: none;
    width: 100%;
}
textarea:focus {
    background: #ffe;
    border-color: #ccc;
    outline: none;
}
/* BUTTON */

button {
    background: linear-gradient(#fff, #ddd);
    border: 1px solid #ccc; border-radius: 3px;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    height: 30px;
    padding: 0 10px;
}
button:hover {
    background: linear-gradient(#ddd, #fff);
    cursor: pointer;
}
button:active {
    background: #ddd;
}
.btngreen, .btnred {
    align-items: center;
    border-style: solid;
    border-radius: 3px;
    border-width: 1px;
    color: #fff;
    display: inline-flex;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    height: 30px;
    padding: 0 10px;
}
.btngreen { background: linear-gradient(#0c0, #080); border-color: #080; }
.btngreen:hover { background: linear-gradient(#080, #0c0); }
.btnred { background: linear-gradient(#c00, #800); border-color: #800; }
.btnred:hover { background: linear-gradient(#800, #c00); }

/* css menargetkan struktur tertentu */

form:has(> dl > dt + dd) > dl {
    margin: 0 0 5px 0;
    display: grid;
    grid-template-columns: 250px auto;
    font-size: 14px;
}

form:has(> dl > dt + dd) > dl > dt {
    display: flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
}

form:has(> dl > dt + dd) > dl > dd {
    margin: 0 0 0 5px;
    display: flex;
    align-items: center;
    min-height: 30px;
}

label:has(> input[type="radio"]:first-child + span) {
    display: flex;
    align-items: center;
    margin-right: 5px;
    min-height: 30px;
}

label:has(> input[type="radio"]:first-child + span) > input[type="radio"] {
    transform: translateY(-2px);
}

label > input[type="radio"]:first-child + span {
    margin-left: 5px;
    font-size: 12px;
}

dd:has(> label:has(> input[type="checkbox"] + span)) > label {
    display: block;
    background: #ccc;
}

h1:has(+ hr + form) {
    margin: 0; 
}
h1:has(+ hr ~ form) + hr {
    margin: 15px 0 20px 0; 
    height: 1px;
    border: 0;
    background: #5188ff;
}