/* General Form Styling */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Label Styling */
label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Input and Textarea Styling */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(33,150,243, 1);
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: white;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: rgba(33,150,243, 0.8);
    outline: none;
}

/* Checkbox and Radio Button Styling */
input[type="checkbox"],
input[type="radio"] {
    accent-color: rgba(33,150,243, 1);
    margin-right: 10px;
}

/* Button Styling */
button[type="submit"] {
    background-color: rgba(33,150,243, 1);
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: rgba(33,150,243, 0.8);
}

/* Range Input Styling */
input[type="range"] {
    width: 100%;
    background-color: rgba(33,150,243, 0.2);
    height: 4px;
    border-radius: 4px;
    margin-bottom: 15px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(33,150,243, 1);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(33,150,243, 1);
    cursor: pointer;
}

/* Select Dropdown Styling */
select {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(33,150,243, 1);
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: white;
    margin-bottom: 15px;
}

select:focus {
    border-color: rgba(33,150,243, 0.8);
    outline: none;
}

/* Placeholder Text */
::placeholder {
    color: rgba(33,150,243, 0.5);
}

/* Error Message Styling */
.form-error {
    color: red;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Fieldset and Legend Styling */
fieldset {
    border: 2px solid rgba(33,150,243, 1);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

legend {
    font-size: 16px;
    font-weight: bold;
    color: rgba(33,150,243, 1);
}
