@charset "UTF-8";

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #004bb1;
}

.form-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.form-group:last-child {
    border-bottom: none;
}

label {
    width: 100%;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

@media (min-width: 768px) {
    label {
        width: 30%;
        margin-bottom: 0;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .input-area {
        width: 70%;
    }
}

.input-area {
    width: 100%;
}

.required {
    color: #fff;
    background-color: #e74c3c;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.optional {
    color: #fff;
    background-color: #95a5a6;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

input[type="radio"] {
    margin-right: 5px;
    appearance: auto;
    -webkit-appearance: auto;
}

.radio-group label {
    display: inline-block;
    width: auto;
    margin-right: 20px;
    font-weight: normal;
}

textarea {
    height: 150px;
    resize: vertical;
}

.dob-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* Ensure it stays on one line */
}

.dob-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    white-space: nowrap;
}

.dob-item:last-child {
    margin-right: 0;
}

.dob-item input {
    text-align: center;
    margin-right: 5px;
    padding: 8px 5px;
    /* Adjust padding for better look */
}

.dob-item:first-child input {
    width: 100px;
    /* Slightly wider for year */
}

.dob-item:nth-child(2) input,
.dob-item:nth-child(3) input {
    width: 70px;
}

/* Mobile optimizations for DOB */
@media (max-width: 480px) {
    .dob-item {
        margin-right: 8px;
        font-size: 13px;
        /* Smaller font on mobile */
    }

    .dob-item input {
        margin-right: 3px;
        padding: 8px 3px;
        font-size: 13px;
    }

    .dob-item:first-child input {
        width: 70px;
        /* Reduce year width */
    }

    .dob-item:nth-child(2) input,
    .dob-item:nth-child(3) input {
        width: 50px;
        /* Reduce month/day width */
    }
}

.btn-container {
    text-align: center;
    margin-top: 30px;
}

button {
    background-color: #004bb1;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    min-width: 200px;
}

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

.back-btn {
    background-color: #95a5a6;
}

.back-btn:hover {
    background-color: #7f8c8d;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.confirm-list dl {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin: 0;
}

.confirm-list dl:first-child {
    border-top: 1px solid #eee;
}

.confirm-list dt {
    font-weight: bold;
    margin-bottom: 5px;
    color: #004bb1;
}

.confirm-list dd {
    margin: 0;
    padding-left: 0;
}

.confirm-btns form {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}