/* Reset some default styles */
body, h2, form {
    margin: 0;
    padding: 0;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    box-sizing: border-box;
}

/* Header styles */
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Container for the logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image styles */
.logo {
    width: 150px; /* Set a reasonable width */
    height: 150px; /* Set a fixed height */
    object-fit: contain; /* Ensure the image fits within the set dimensions */
}

/* Form styles */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* Label styles */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Add a red asterisk for required fields */
label .required {
    color: red;
    margin-left: 2px;
}

/* Input styles */
input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.iti {
  width: 100%;
  display: block;
  padding-right: 10px !important;
  margin-bottom: 15px;
}

.iti--allow-dropdown {
    padding-right: 10px;
}

input::placeholder, select::placeholder {
    color: #aaa;
}

/* Readonly input styles */
input[readonly] {
    background-color: #f4f4f4;
    color: grey;
}

/* Birthday container styles */
#birth_year, #birth_month, #birth_day {
    width: calc(33.33% - 6.66px);
}

/* Flexbox container for phone number and birthday inputs */
.phone-number-container, .birthday-container {
    display: flex;
    gap: 10px;
}

/* Ensure phone input is full width within its container */
.phone-number-container input {
    flex: 1;
}

/* Button styles */
button {
    width: 100%;
    padding: 10px;
    background: #28a745;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

button:hover {
    background: black;
}

.error-message {
    color: red;
    font-size: 0.875em;
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    form {
        padding: 15px;
    }

    button {
        font-size: 14px;
    }
}

/* Apply consistent styling for select elements across all browsers */
select {
    -webkit-appearance: none;  /* Remove default styling in Safari */
    -moz-appearance: none;     /* Remove default styling in Firefox */
    appearance: none;          /* Remove default styling in other browsers */
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'4'%20height%3D'5'%20viewBox%3D'0%200%204%205'%3E%3Cpath%20fill%3D'%23000'%20d%3D'M2%205%200%203h4zM2%200%204%202H0z'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding-right: 30px; /* Add some padding for the arrow */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Additional styling to ensure the dropdown arrow is not clipped */
select::-ms-expand {
    display: none;
}
