@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

.form {
    display: flex;
    flex-direction: column;
    font-family: 'Lato', sans-serif;
    background-color: rgba(232, 216, 177, 0.9);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 380px;
    padding: 20px;
    justify-self: center;
    align-self: center;
}

.form label {
    margin-bottom: 5px;
}

.form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #5C4E3C;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
}

/* Style specifically for date and time inputs */
.form input[type="date"],
.form input[type="time"] {
    background-color: white;
    color: #333;
}

.form input[type="text"],
.form input[type="password"] {
    outline: none;
}


.form input[type="text"]:focus,
.form input[type="password"]:focus {
    border-color: #E8D8B1;
    box-shadow: 0 0 5px rgba(232, 216, 177, 0.7);
}

.form input[type="submit"] {
    background-color: #B4D6A8;
    color: #5C4E3C;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 20px;
}

.form input[type="submit"]:hover {
    background-color: #5C4E3C;
    color: #E8D8B1;
}

/* Styling for the select dropdown */
.form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #5C4E3C;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: white;
    color: #5C4E3C;
    font-size: 16px;
    cursor: pointer;
}

/* Style the dropdown arrow icon */
.form select::after {
    content: '\25BC'; /* Unicode for the down-arrow icon */
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Style the options within the dropdown */
.form select option {
    background-color: #E8D8B1;
    color: #5C4E3C;
}

.form select:disabled {
    background-color: #ccc; /* Change background color for disabled button */
    cursor: not-allowed; /* Show "not allowed" cursor for disabled button */
}

/* Style the radio input */
input[type="radio"] {
    width: auto;
  /* Hide the default radio button */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: none;
}

/* Style the custom radio button */
input[type="radio"]::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #3498db; /* Border color for the unchecked state */
  background-color: white; /* Background color for the unchecked state */
  margin-right: 8px;
  vertical-align: middle;
}

/* Style the radio button when checked */
input[type="radio"]:checked::before {
  background-color: #3498db; /* Background color for the checked state */
  border-color: #3498db; /* Border color for the checked state */
}

.rustic-form {
    display: flex;
    flex-direction: column;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    background-color: rgba(232, 216, 177, 0.9);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    justify-self: center;
    align-self: center;
    padding: 16px;
}

/* Error message styles */
.error-msg {
    color: red;
}

/* Media query for smaller screens (e.g., tablets) */
@media (max-width: 768px) {
    .form {
        width: 80%; /* Adjust to 100% width for smaller screens */
        padding: 20px; /* Add padding for better readability */
    }
}
