form {
    font-family: 'Open Sans', sans-serif;
    width: 90%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f4f4f4; 
    border-radius: 8px;
    border: 1px solid #ccc;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #692828;
}

input[type="date"], input[type="range"], textarea, select, input[type="file"] {
    width: 85%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    resize: none;
    outline: none;
}

select {
    background-color: #ffffff;
    background-position: right 10px top 50%;
    background-size: 16px 16px;
}


input:focus, textarea:focus, select:focus {
    border-color: #c01515; 
    box-shadow: 0 0 5px #db0d0d80;
}

input:hover, textarea:hover, select:hover {
    background-color: #e9f4ff;
}

input[type="checkbox"]:checked {
    background-color: #b82121; 
}

textarea::placeholder {
    color: #999;
    font-style: italic;
}

button {
    background-color: #c72d2d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer; 
    font-size: 16px;
}


button:hover {
    background-color: #000000;
}

input[type="file"] {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

fieldset {
    border: 2px solid #9b1a1a;
    padding: 20px;
    border-radius: 8px;
}

legend {
    font-weight: bold;
    color: #cf3838;
    padding: 0 10px;
}

hr {
    border: 0;
    border-top: 2px solid #be1c1c;
    margin: 20px 0;
}

input[type="submit"], button {
    cursor: pointer;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
    width: 65%; 
    padding: 10px; 
    box-sizing: border-box;
}

input[type="date"] {
    width: 20%;
}
