body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

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

h1, h2 {
    color: #333;
}

h1 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.image-grid.col3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .75em;
}

th, td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.faq dl {
    margin-bottom: 20px;
}

.faq dt {
    font-weight: bold;
    color: #007bff;
}

.faq dd {
    margin-left: 20px;
    margin-bottom: 10px;
}

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

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

h1, h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 2px;
    margin-bottom: 16px;
}

h2 {
    margin-top: 3em;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    border-color: #007bff;
    outline: none;
}

.required {
    color: #d9534f;
    margin-left: 5px;
}

.form-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-navigation .prev-btn {
    margin-right: auto;
}

.form-navigation button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.next-btn, #submit-btn {
    background-color: #007bff;
    color: white;
}

.prev-btn {
    background-color: #6c757d;
    color: white;
}

.next-btn:hover, #submit-btn:hover {
    background-color: #0056b3;
}

.prev-btn:hover {
    background-color: #5a6268;
}

#submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.conditional-fields {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.quantity-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

#confirmation-details .conf-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#confirmation-details .conf-item:last-child {
    border-bottom: none;
}

#confirmation-details .conf-label {
    font-weight: bold;
}

#confirmation-details .conf-value {
    margin-left: 10px;
}

.faq-link-container {
    text-align: right;
}

.button {
    display: inline-block;
    padding: 8px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

div:has(> .button) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-align-right {
    text-align: right;
}

.con-counter-table {
    font-weight: 700;
}
.con-counter-table th {
    width: 20%;
    white-space: nowrap;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.step-indicator .step {
    flex-grow: 1;
    padding: 15px 10px;
    text-align: center;
    color: #495057;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.step-indicator .step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #adb5bd;
}

.step-indicator .step.active {
    background-color: #007bff;
    color: white;
}

.step-indicator .step.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,123,255,0.5), rgba(0,123,255,0));
    z-index: 0;
}

.step-indicator .step.active::after {
    background-color: #007bff;
}


footer {
    padding: 0 16px 16px;
    text-align: center;
}

.copyright {
    color: #495057;
    font-size: 13px;
}

@media screen and (max-width: 480px) {

    body {
        padding: 0;
    }

    .container {
        box-sizing: border-box;
        max-width: unset;
        width: 100%;
        margin: 0;
        background: #fff;
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .container h1:first-child {
        margin-top: 0;
    }


    .image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin: 16px 0;
    }

    h2 {
        margin-top: 1.6em;
        margin-bottom: .8em;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.note {
    color: red;
    font-size: .8em;
}

.form-group-inline {
    display: flex;
    gap: 20px;
}

.form-group-inline .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}