.error {
    color: red;
}

/* Main Visual Section Styles */
#sub_mainVisual.counseling {
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
}

/* Breadcrumbs Styles */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.breadcrumbs li {
    margin-right: 20px;
    position: relative;
    font-size: 14px;
    color: #666;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    position: absolute;
    right: -15px;
    color: #999;
    font-size: 12px;
}

.breadcrumbs a {
    color: #F3A99A;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #16a085;
    text-decoration: underline;
}

/* Main content adjustments */
main.underLayer.counseling {
    background: #FFF5F2;
    min-height: 100vh;
}

.box {
    padding: 20px 0;
}

/* Acusis Form Styles - Exact Match */
html.background-fixed {
    margin-top: 0 !important;
}

body {
    background: #f0f4f8;
    overflow-y: scroll;
}

table {
    table-layout: fixed;
}

#wrapper {
    margin: 20px 0;
    height: 100%;
    padding: 0 10px;
}

#wrapper h1 {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-size: xx-large;
    padding: 25px 0;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
        Meiryo, Osaka, sans-serif;
}

.reserve-main .reserve {
    max-width: 720px;
    min-width: 320px;
    margin: 0 auto 50px;
    padding: 10px 35px 30px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(243, 169, 154, 0.12);
}

/* Step Progress Bar - Modern Timeline Design */
.reserve-main .reserve .step-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto 0px;
    padding: 20px 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* Connecting line behind the steps */
.reserve-main .reserve .step-area::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #FAD4CB;
    border-radius: 2px;
    z-index: 0;
}

.reserve-main .reserve .step-area .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Step number circle */
.reserve-main .reserve .step-area .step .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #FAD4CB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #F3A99A;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(243, 169, 154, 0.15);
}

/* Step label */
.reserve-main .reserve .step-area .step .inner {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: none;
    display: block;
    height: auto;
    line-height: 1.4;
    margin-right: 0;
    border-radius: 0;
}

/* Active step styling */
.reserve-main .reserve .step-area .step.on .step-number {
    background: linear-gradient(135deg, #F3A99A 0%, #E99082 100%);
    border-color: #E99082;
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 169, 154, 0.4);
    transform: scale(1.1);
}

.reserve-main .reserve .step-area .step.on .inner {
    color: #E07A6B;
    font-weight: 700;
}

/* Completed step styling */
.reserve-main .reserve .step-area .step.completed .step-number {
    background: linear-gradient(135deg, #F3A99A 0%, #E99082 100%);
    border-color: #E99082;
    color: #fff;
}

.reserve-main .reserve .step-area .step.completed .step-number::after {
    content: "✓";
    font-size: 18px;
}

.reserve-main .reserve .step-area .step.completed .inner {
    color: #E07A6B;
}

/* Progress line animation for active steps */
.reserve-main .reserve .step-area.step1-active::before {
    background: linear-gradient(90deg, #E99082 0%, #E99082 0%, #FAD4CB 0%, #FAD4CB 100%);
}

.reserve-main .reserve .step-area.step2-active::before {
    background: linear-gradient(90deg, #E99082 0%, #E99082 50%, #FAD4CB 50%, #FAD4CB 100%);
}

.reserve-main .reserve .step-area.step3-active::before {
    background: linear-gradient(90deg, #E99082 0%, #E99082 100%);
}

/* Remove old arrow styles */
.reserve-main .reserve .step-area .step.step1:after,
.reserve-main .reserve .step-area .step.step2:after {
    display: none;
}

.reserve-main .reserve .step-area .step.step3 .inner {
    margin-right: 0;
    border-radius: 0;
}

/* Calendar Title */
.reserve-main .reserve .calendar-title {
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #F3A99A;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reserve-main .reserve .calendar-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #F3A99A 0%, #E07A6B 100%);
    border-radius: 2px;
}

.reserve-main .reserve .required-mark {
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-weight: 500;
    padding: 3px 8px;
    background: linear-gradient(135deg, #E07A6B 0%, #d9534f 100%);
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Calendar Container - Modern Redesign */
.reserve-main .reserve .calendar-container {
    margin: 0 auto;
    border-radius: 20px;
    border: none;
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #FFF9F8 100%);
    box-shadow: 0 8px 30px rgba(243, 169, 154, 0.15);
    overflow: hidden;
}

/* Calendar Loading Overlay */
#calendar-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

#calendar-loading-overlay.show {
    display: flex;
}

.calendar-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(243, 169, 154, 0.2);
    border-top: 3px solid #F3A99A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Availability legend */
.reserve-main .reserve p.availability_nav {
    color: #888;
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(250, 212, 203, 0.1) 0%, rgba(250, 212, 203, 0.25) 100%);
    border-top: 1px solid rgba(243, 169, 154, 0.1);
    letter-spacing: 1px;
}

/* Calendar Month Navigation Header */
.reserve-main .reserve .calendar-container .calendar-month {
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 1px solid rgba(243, 169, 154, 0.2);
    width: 100%;
    margin: 0 auto;
    margin-bottom: 15px;
    height: 56px;
    color: #333333;
    background: linear-gradient(135deg, rgba(250, 212, 203, 0.3) 0%, rgba(255, 245, 242, 0.5) 100%);
}

.reserve-main .reserve .calendar-container .calendar-month #prev,
.reserve-main .reserve .calendar-container .calendar-month #next {
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.reserve-main .reserve .calendar-container .calendar-month #prev:hover,
.reserve-main .reserve .calendar-container .calendar-month #next:hover {
    opacity: 0.7;
}

.reserve-main .reserve .calendar-container .calendar-month #prev div,
.reserve-main .reserve .calendar-container .calendar-month #next div {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #fff;
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(243, 169, 154, 0.2);
    transition: all 0.2s ease;
}

.reserve-main .reserve .calendar-container .calendar-month #prev:hover div,
.reserve-main .reserve .calendar-container .calendar-month #next:hover div {
    background-color: #FAD4CB;
    transform: scale(1.05);
}

/* Navigation arrow image styling */
.nav-arrow {
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.nav-arrow-left {
    transform: rotate(180deg);
}

.reserve-main .reserve .calendar-container .calendar-month #title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #444;
    letter-spacing: 1px;
}

/* Calendar Table */
.reserve-main .reserve .calendar-container table#calendar-table {
    display: revert;
    text-align: center;
    box-sizing: border-box;
    margin: 20px auto;
    width: 96%;
    cursor: pointer;
    border-collapse: separate;
    border-spacing: 4px 8px;
    border-top: none;
}

/* Day headers (Sun-Sat) */
.reserve-main .reserve .calendar-container table#calendar-table thead {
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.reserve-main .reserve .calendar-container table#calendar-table thead tr th {
    padding: 8px 4px 16px;
    color: #999;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

/* 日曜日 */
.reserve-main .reserve .calendar-container table#calendar-table thead tr th:first-child {
    color: #E07A6B;
}

/* 土曜日 */
.reserve-main .reserve .calendar-container table#calendar-table thead tr th:last-child {
    color: #5B9BD5;
}

.reserve-main .reserve .calendar-container #calendar-table thead {
    border-top: none;
    color: #333333;
}

/* Legacy th navigation (fallback) */
.reserve-main .reserve .calendar-container table#calendar-table th#prev div,
.reserve-main .reserve .calendar-container table#calendar-table th#next div {
    width: 50%;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #F3A99A;
    color: white;
}

.reserve-main .reserve .calendar-container table#calendar-table th#prev:hover,
.reserve-main .reserve .calendar-container table#calendar-table th#next:hover {
    opacity: 0.7;
}

.reserve-main .reserve .calendar-container table#calendar-table th {
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    padding: 10px;
}

/* Date Cells - Border Style */
.reserve-main .reserve .calendar-container table#calendar-table td {
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    border: 1px solid #F7C3B7;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
    padding: 6px 4px;
    position: relative;
}

.reserve-main .reserve .calendar-container table#calendar-table td:hover {
    background: #FFF5F2;
    border-color: #F3A99A;
}

/* Date number - horizontal rectangle */
.reserve-main .reserve .calendar-container table#calendar-table td div.date {
    vertical-align: middle;
    background: linear-gradient(135deg, #F3A99A 0%, #E99082 100%);
    color: #ffffff;
    text-align: center;
    margin: 0 auto 4px;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(243, 169, 154, 0.3);
    transition: all 0.25s ease;
}

/* Availability indicator */
.reserve-main .reserve .calendar-container table#calendar-table td div.canReserve {
    font-size: 18px;
    position: relative;
    padding: 2px 0;
    color: #F3A99A;
    text-align: center;
    margin: 0 auto;
    font-weight: 700;
}

/* Not available state */
.reserve-main .reserve .calendar-container table#calendar-table td.notFree {
    opacity: 0.6;
    border-color: #e0e0e0;
}

.reserve-main .reserve .calendar-container table#calendar-table td.notFree:hover {
    background: #fff;
    border-color: #e0e0e0;
}

.reserve-main .reserve .calendar-container table#calendar-table td.notFree div.date {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    box-shadow: none;
}

.reserve-main .reserve .calendar-container table#calendar-table td.notFree div.canReserve {
    color: #bbb;
}

/* Selected state */
.reserve-main .reserve .calendar-container table#calendar-table td.selected {
    background: #FFF0ED;
    border: 2px solid #E07A6B;
}

.reserve-main .reserve .calendar-container table#calendar-table td.selected div.date {
    background: linear-gradient(135deg, #E07A6B 0%, #D06B5C 100%);
    box-shadow: 0 4px 12px rgba(224, 122, 107, 0.4);
}

.reserve-main .reserve .calendar-container table#calendar-table td.selected div.canReserve {
    color: #E07A6B;
    font-weight: 800;
}

/* Disabled state */
.reserve-main .reserve .calendar-container table#calendar-table td.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Next month available dates */
.reserve-main .reserve .calendar-container table#calendar-table td.next-month-available div.date {
    background: linear-gradient(135deg, #FAD4CB 0%, #F7C3B7 100%);
}

.reserve-main .reserve .calendar-container table#calendar-table td.next-month-available.selected div.date {
    background: linear-gradient(135deg, #E07A6B 0%, #D06B5C 100%);
}

.reserve-main .reserve .calendar-container table#calendar-table td.next-month-available.selected div.canReserve {
    color: #E07A6B;
}

/* ==================== */
/* Time Table - Modern Redesign */
/* ==================== */
.reserve-main .reserve .calendar-container table#calendar-time {
    display: revert;
    margin: 20px auto;
    cursor: pointer;
    border-collapse: separate;
    border-spacing: 8px;
    width: 94%;
    text-align: center;
    display: none;
}

.reserve-main .reserve .calendar-container table#calendar-time th {
    font-weight: 700;
    background: linear-gradient(135deg, #F3A99A 0%, #E99082 100%);
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(243, 169, 154, 0.25);
}

.reserve-main .reserve .calendar-container table#calendar-time td {
    padding: 14px 20px;
    font-size: 16px;
    color: #F3A99A;
    background: #fff;
    border: none;
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(243, 169, 154, 0.1);
    transition: all 0.25s ease;
}

.reserve-main .reserve .calendar-container table#calendar-time tr:hover td {
    background: #FFF5F2;
}

.reserve-main .reserve .calendar-container table#calendar-time tr.selected td {
    background: linear-gradient(135deg, #FFF0ED 0%, #FFE8E3 100%);
    color: #E07A6B;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(224, 122, 107, 0.2);
}

.reserve-main .reserve .calendar-container table#calendar-time tr.selected th {
    background: linear-gradient(135deg, #E07A6B 0%, #D06B5C 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(224, 122, 107, 0.35);
}

.reserve-main .reserve .calendar-container table#calendar-time tr.notFree {
    opacity: 0.5;
}

.reserve-main .reserve .calendar-container table#calendar-time tr.notFree th {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    color: #fff;
    box-shadow: none;
}

.reserve-main .reserve .calendar-container table#calendar-time tr.notFree td {
    color: #bbb;
    box-shadow: none;
}

/* Form Title */
.reserve-main .reserve #form-title {
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #F3A99A;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reserve-main .reserve #form-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #F3A99A 0%, #E07A6B 100%);
    border-radius: 2px;
}

/* New Customer Info Form Styles */
.customer-info-container {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin: 0 auto;
    color: #000;
    font-family: "Hiragino Sans", "Meiryo", sans-serif;
    margin-bottom: 5%;
    box-shadow: 0 2px 12px rgba(243, 169, 154, 0.1);
    border: 1px solid rgba(247, 195, 183, 0.5);
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    letter-spacing: 0.3px;
}

.required-mark {
    background: linear-gradient(135deg, #E07A6B 0%, #d9534f 100%);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    background-color: #FAFAFA;
    color: #333;
    border: 1.5px solid #e0e0e0;
    outline: none;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.25s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #F7C3B7;
    background-color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background-color: #fff;
    border-color: #F3A99A;
    box-shadow: 0 0 0 4px rgba(243, 169, 154, 0.15);
}

.form-input::placeholder {
    color: #aaa;
}

.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 14px 40px 14px 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3A99A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
}

/* Name inputs horizontal layout */
.name-inputs {
    display: flex;
    gap: 10px;
}

.name-input {
    flex: 1;
}

/* Birthdate inputs horizontal layout */
.birthdate-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.birthdate-select {
    min-width: 120px;
}

/* Gender radio options */
.gender-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    padding: 12px 18px 12px 42px;
    line-height: 20px;
    color: #444;
    min-height: 22px;
    background: #FAFAFA;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    transition: all 0.25s ease;
}

.radio-label:hover {
    border-color: #F7C3B7;
    background: #fff;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #F3A99A;
    background: linear-gradient(135deg, rgba(243, 169, 154, 0.08) 0%, rgba(250, 212, 203, 0.15) 100%);
}

/* Hide default radio button */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Custom radio button outer circle */
.radio-label::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

/* Custom radio button inner dot (checked state) */
.radio-label::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #F3A99A;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show inner dot when checked - using JavaScript class for better browser compatibility */
.radio-label.checked::after {
    opacity: 1;
}

/* Change border color when checked */
.radio-label.checked::before {
    border-color: #F3A99A;
}

/* Modern browsers that support :has() */
.radio-label:has(input[type="radio"]:checked)::after {
    opacity: 1;
}

.radio-label:has(input[type="radio"]:checked)::before {
    border-color: #F3A99A;
}

/* Hover effect */
.radio-label:hover::before {
    border-color: #F3A99A;
}

/* Focus effect for accessibility */
.radio-label input[type="radio"]:focus::before {
    outline: 2px solid #F3A99A;
    outline-offset: 2px;
}

.privacy-policy-container {
    margin: 30px auto 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(250, 212, 203, 0.3) 0%, rgba(255, 245, 242, 0.5) 100%);
    border-radius: 12px;
    text-align: center;
}

/* Checkbox label */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    margin: 0 auto;
    text-align: center;
    color: #444;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #F3A99A;
    cursor: pointer;
}

.checkbox-label a {
    color: #E07A6B;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: #D06B5C;
}

/* Textarea styling */
.form-textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Error messages */
.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* API Error Message Display */
.api-error-message {
    background: #fff5f5;
    border: 2px solid #e53e3e;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.1);
}

.api-error-message .error-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.api-error-message .error-text {
    color: #c53030;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    flex: 1;
}

/* Submit Area */
.reserve-main .reserve .submit-area {
    text-align: center;
    margin-top: 30px;
}

.reserve-main .reserve .submit-area .btn {
    background: linear-gradient(135deg, #E07A6B 0%, #D06B5C 100%);
    color: #fff;
    border: none;
    width: 100%;
    max-width: 340px;
    height: 60px;
    font-size: 17px;
    margin: 20px auto;
    cursor: pointer;
    font-weight: 700;
    line-height: 60px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(224, 122, 107, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.reserve-main .reserve .submit-area .btn .btn-end-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); Make icon white to match button text */
}

@media (min-width: 640px) {
    .reserve-main .reserve .submit-area .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(224, 122, 107, 0.45);
        background: linear-gradient(135deg, #E8847A 0%, #D87468 100%);
    }
}

.reserve-main .reserve .submit-area .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(224, 122, 107, 0.3);
}

textarea {
    font-family: "ヒラギノ角ゴシック", "YuGothic", "游ゴシック体", "Yu Gothic",
        "游ゴシック", "ヒラギノ角ゴPro W3", "Hiragino Kaku Gothic Pro",
        "ＭＳ Ｐゴシック", "MS PGothic", Arial, Helvetica, Verdana, sans-serif;
    font-weight: 500;
    width: 95%;
}

#confirmBtn {
    position: relative;
}

#confirmBtn img {
    position: absolute;
    right: 15px;
    top: 20px;
}

#sub_mainVisual img {
    margin: 0 auto;
    display: block;
    max-width: 1000px;
    max-height: 250px;
}

#sub_mainVisual {
    background-image: url("https://sleep-medical.net/lp/reserve_b4a/common/img/kv-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 1000px) {
    #sub_mainVisual img {
        max-width: 100%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .api-error-message {
        margin: 20px 10px;
    }
    #sub_mainVisual.counseling {
        padding: 40px 0;
    }

    .enTtl.f_Eng {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .jaTtl {
        font-size: 28px;
    }

    .breadcrumbs {
        padding: 12px 0;
    }

    .breadcrumbs ul {
        padding: 0 15px;
    }

    .breadcrumbs li {
        font-size: 13px;
        margin-right: 15px;
    }

    .breadcrumbs li:not(:last-child)::after {
        right: -12px;
    }

    .box {
        padding: 0px 0;
    }

    .reserve-main .reserve {
        width: 94%;
        min-width: 94%;
        margin: 0 auto;
        padding: 20px 15px;
        font-size: 14px;
        border-radius: 12px;
    }

    #wrapper {
        padding: 0;
    }

    #wrapper h1 {
        font-size: large;
    }

    .reserve-main .reserve .step-area {
        margin: 0 auto 5px;
        padding: 15px 5px;
        max-width: 100%;
    }

    .reserve-main .reserve .step-area::before {
        top: 33px;
        left: 18%;
        right: 18%;
        height: 2px;
    }

    .reserve-main .reserve .step-area .step .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 2px;
        margin-bottom: 8px;
    }

    .reserve-main .reserve .step-area .step .inner {
        font-size: 11px;
        letter-spacing: 0;
    }

    .reserve-main .reserve .step-area .step.on .step-number {
        transform: scale(1.05);
    }

    .reserve-main .reserve .calendar-container {
        width: 100%;
        margin: 10px auto;
        border-radius: 16px;
    }

    .reserve-main .reserve .calendar-container .calendar-month {
        height: 50px;
    }

    .reserve-main .reserve .calendar-container .calendar-month #title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .reserve-main .reserve .calendar-container .calendar-month #prev,
    .reserve-main .reserve .calendar-container .calendar-month #next {
        width: 50px;
    }

    .reserve-main .reserve .calendar-container .calendar-month #prev div,
    .reserve-main .reserve .calendar-container .calendar-month #next div {
        width: 34px;
        height: 34px;
    }

    .reserve-main .reserve .calendar-container table#calendar-table {
        margin: 0;
        border-spacing: 3px 6px;
    }

    .reserve-main .reserve .calendar-container table#calendar-table thead tr th {
        padding: 6px 2px 10px;
        font-size: 10px;
    }

    .reserve-main .reserve .calendar-container table#calendar-table td {
        padding: 4px 2px;
        border-radius: 10px;
    }

    .reserve-main .reserve .calendar-container table#calendar-table td div.date {
        padding: 4px 0;
        font-size: 12px;
        margin-bottom: 2px;
        border-radius: 4px;
    }

    .reserve-main .reserve .calendar-container table#calendar-table td div.canReserve {
        font-size: 14px;
        padding: 1px 0;
    }

    .reserve-main .reserve .calendar-container table#calendar-time {
        border-spacing: 4px;
        margin: 15px auto;
    }

    .reserve-main .reserve .calendar-container table#calendar-time th {
        padding: 10px 6px;
        font-size: 12px;
        border-radius: 8px;
    }

    .reserve-main .reserve .calendar-container table#calendar-time td {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .reserve-main .reserve p.availability_nav {
        padding: 10px 15px;
        font-size: 11px;
    }

    .reserve-main .reserve #form-title {
        width: 94%;
        margin: 10px auto;
        font-size: 16px;
    }

    .name-input {
        width: 50%;
    }

    .reserve-main .reserve .calendar-title {
        width: 94%;
        margin: 10px auto;
        font-size: 16px;
    }

    .reserve-main .reserve .submit-area .btn {
        font-size: 14px;
        width: 80%;
    }

    /* Mobile responsive for new form styles */
    .customer-info-container {
        padding: 18px 15px;
        margin: 0 5px;
        max-width: calc(100vw - 30px);
        margin-bottom: 7%;
        border-radius: 10px;
    }

    .reserve-main .reserve #form-title,
    .reserve-main .reserve .calendar-title {
        font-size: 16px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .reserve-main .reserve #form-title::before,
    .reserve-main .reserve .calendar-title::before {
        width: 3px;
        height: 16px;
    }

    .name-inputs,
    .birthdate-inputs {
        gap: 8px;
    }

    .gender-options {
        gap: 8px;
        flex-direction: column;
    }

    .radio-label {
        margin-bottom: 0;
        padding: 14px 16px 14px 44px;
        width: 100%;
        justify-content: flex-start;
    }

    .radio-label::before {
        left: 16px;
    }

    .radio-label::after {
        left: 22px;
    }

    .birthdate-select {
        min-width: 80px;
        flex: 1;
    }

    .birthdate-year {
        min-width: 95px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px;
        border-radius: 8px;
    }

    .privacy-policy-container {
        padding: 15px;
        margin-top: 20px;
    }

    .checkbox-label {
        font-size: 14px;
    }

    .reserve-main .reserve .submit-area .btn {
        width: 90%;
        max-width: none;
        font-size: 16px;
        height: 56px;
        border-radius: 28px;
    }
}
