/* ============================================================
   美容カウンセリングフォーム CSS
   ※ 装花フォームとトンマナ統一
   ============================================================ */

/* --- Base Wrapper --- */
.biyou-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", serif;
    color: #3a3a3a;
    line-height: 1.8;
}

/* --- Hero --- */
.biyou-hero {
    text-align: center;
    padding: 50px 20px 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #d4c5a9;
    background: none;
    border-radius: 0;
}
.biyou-page-title {
    font-size: 1.8rem;
    color: #5c4a3a;
    letter-spacing: 0.15em;
    margin: 0 0 18px;
    font-weight: 600;
}
.biyou-page-desc {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.9;
    margin: 0;
}
.biyou-confirm-note {
    font-size: 1rem;
    font-weight: 600;
    color: #c0392b;
}

/* --- Error --- */
.biyou-error {
    background: #fff0f0;
    border: 1px solid #e8a0a0;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 30px;
}
.biyou-error-title {
    font-weight: bold;
    color: #c0392b;
    margin: 0 0 8px;
    font-size: 1rem;
}
.biyou-field-error {
    color: #c0392b;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 8px 0 12px;
    padding: 6px 12px;
    background: #fff0f0;
    border-left: 3px solid #c0392b;
    border-radius: 0 4px 4px 0;
}
.biyou-section--has-error {
    border-left: 3px solid #c0392b;
    padding-left: 12px;
}

/* --- Major Sections --- */
.biyou-major-section {
    margin-bottom: 48px;
}
.biyou-major-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5c4a3a;
    background: linear-gradient(135deg, #f9f5ef 0%, #f3ece0 100%);
    padding: 14px 20px;
    border-left: 5px solid #b8976a;
    border-radius: 0 8px 8px 0;
    margin: 0 0 24px;
    letter-spacing: 0.08em;
}

/* --- Section Block --- */
.biyou-section-block {
    background: #fff;
    border: 1px solid #e0d8cc;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(184, 151, 106, 0.06);
}
.biyou-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5c4a3a;
    border-bottom: 2px solid #d4c5a9;
    padding-bottom: 10px;
    margin: 0 0 20px;
}

/* --- Subsections --- */
.biyou-subsection {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #d4c5a9;
}
.biyou-subsection:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.biyou-sub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #5c4a3a;
    margin: 0 0 14px;
    padding: 6px 12px;
    background: #faf8f4;
    border-radius: 6px;
}
.biyou-sub-block {
    margin-bottom: 16px;
    padding-left: 8px;
}

/* --- Labels --- */
.biyou-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c4a3a;
    margin: 12px 0 6px;
}
.biyou-label-large {
    font-size: 1rem;
    color: #5c4a3a;
    border-bottom: 1px solid #d4c5a9;
    padding-bottom: 6px;
    margin-bottom: 16px;
}
.biyou-required {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.biyou-price {
    font-size: 0.8rem;
    color: #777;
    font-weight: normal;
    margin-left: 4px;
}

/* --- Radio Groups (Text only) --- */
.biyou-radio-text {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 12px;
}
.biyou-radio-label {
    position: relative;
    cursor: pointer;
}
.biyou-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.biyou-radio-label span {
    display: inline-block;
    padding: 8px 24px;
    border: 2px solid #e0d8cc;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a3f35;
    background: #fff;
    transition: all 0.2s;
}
.biyou-radio-label input[type="radio"]:checked + span {
    background: #b8976a;
    color: #fff;
    border-color: #b8976a;
    box-shadow: 0 2px 6px rgba(184, 151, 106, 0.3);
}
.biyou-radio-label:hover span {
    border-color: #b8976a;
}
.biyou-radio-inline {
    display: inline-flex;
    gap: 8px;
}

/* --- Radio Groups (Image cards) --- */
.biyou-radio-image {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 10px 0 16px;
}
.biyou-img-card {
    position: relative;
    cursor: pointer;
    text-align: center;
}
.biyou-img-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.biyou-img-thumb {
    display: block;
    border: 3px solid #e0d8cc;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: all 0.25s;
    opacity: 0.55;
}
.biyou-img-card:hover .biyou-img-thumb {
    opacity: 0.85;
    border-color: #c8b48a;
    box-shadow: 0 4px 16px rgba(184, 151, 106, 0.2);
}
.biyou-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.biyou-img-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-top: 6px;
    padding: 4px 0;
    transition: color 0.2s;
}
.biyou-img-card input[type="radio"]:checked ~ .biyou-img-thumb {
    opacity: 1;
    border-color: #b8976a;
    box-shadow: 0 0 0 3px rgba(184, 151, 106, 0.3), 0 4px 16px rgba(184, 151, 106, 0.15);
}
.biyou-img-card input[type="radio"]:checked ~ .biyou-img-thumb::after {
    content: "\2713";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: #b8976a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}
.biyou-img-card input[type="radio"]:checked ~ .biyou-img-label {
    color: #b8976a;
    font-weight: 700;
}

/* --- Reference Image with Radio --- */
.biyou-radio-with-image {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 8px 0 16px;
}
.biyou-ref-image {
    flex: 0 0 calc(20% - 10px);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0d8cc;
}
.biyou-ref-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Conditional Sections --- */
.biyou-conditional {
    margin-top: 12px;
    padding: 14px 16px;
    background: #faf8f4;
    border-radius: 8px;
    border-left: 3px solid #d4c5a9;
}

/* --- Form Inputs --- */
.biyou-form-row {
    margin-bottom: 14px;
}
.biyou-form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c4a3a;
    margin-bottom: 4px;
}
.biyou-input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c4a3a;
    margin-bottom: 4px;
}
.biyou-input,
.biyou-select,
.biyou-textarea {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 1rem;
    color: #3a3a3a;
    background: #fff !important;
    background-color: #fff !important;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.biyou-input:focus,
.biyou-select:focus,
.biyou-textarea:focus {
    outline: none;
    border-color: #b8976a !important;
    background: #fff !important;
    box-shadow: none;
}
.biyou-input:-webkit-autofill,
.biyou-input:-webkit-autofill:hover,
.biyou-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #3a3a3a !important;
    border: 2px solid #ddd !important;
    transition: background-color 5000s ease-in-out 0s;
}
.biyou-textarea {
    max-width: 100%;
    resize: vertical;
}

/* --- Customer Info --- */
.biyou-customer-info .biyou-form-row {
    margin-bottom: 18px;
}

/* --- Price Modal Button --- */
.biyou-btn-price-modal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #5c4a3a 0%, #7a6350 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}
.biyou-btn-price-modal:hover {
    opacity: 0.85;
}

/* --- Price Modal Overlay --- */
.biyou-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.biyou-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.biyou-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid #b8976a;
}
.biyou-modal-title {
    margin: 0;
    font-family: serif;
    font-size: 1.1rem;
    color: #5c4a3a;
    font-weight: 700;
}
.biyou-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.biyou-modal-close:hover {
    color: #5c4a3a;
}
.biyou-modal-body {
    padding: 20px 24px;
}
.biyou-modal-body .biyou-price-table {
    max-width: 100%;
}

/* --- Price Table --- */
.biyou-price-table-wrap {
    margin-top: 28px;
    padding: 20px 24px;
    background: #faf8f4;
    border: 1px solid #e0d8cc;
    border-radius: 10px;
}
.biyou-price-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-bottom: 4px;
}
.biyou-price-table thead th {
    background: #5c4a3a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 16px;
    text-align: center;
    border-bottom: 2px solid #d4c5a9;
}
.biyou-price-table thead th:first-child {
    text-align: left;
    background: #5c4a3a;
}
.biyou-price-table tbody th {
    font-size: 0.88rem;
    font-weight: 600;
    color: #5c4a3a;
    padding: 10px 16px;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #e8e0d4;
    white-space: nowrap;
}
.biyou-price-table tbody td {
    font-size: 0.95rem;
    font-weight: 700;
    color: #b8976a;
    padding: 10px 16px;
    text-align: right;
    border-bottom: 1px solid #e8e0d4;
    background: #fff;
}
.biyou-price-table--simple {
    margin-top: 12px;
    max-width: 360px;
}
.biyou-price-table--simple tbody th {
    width: 50%;
}
.biyou-price-table--simple tbody td {
    text-align: right;
}

/* --- Guest Rows --- */
.biyou-guest-row {
    background: #faf8f4;
    border: 1px solid #e0d8cc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
}
.biyou-guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d4c5a9;
}
.biyou-guest-num {
    font-weight: 700;
    color: #5c4a3a;
    font-size: 0.95rem;
}
.biyou-guest-remove {
    background: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: all 0.2s;
}
.biyou-guest-remove:hover {
    border-color: #c0392b;
    color: #c0392b;
}
.biyou-guest-fields .biyou-form-row {
    margin-bottom: 10px;
}
.biyou-guest-fields .biyou-form-row label {
    font-size: 0.85rem;
    min-width: 80px;
    display: inline-block;
}
.biyou-guest-fields .biyou-input,
.biyou-guest-fields .biyou-select {
    max-width: 320px;
}

.biyou-btn-add-guest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #b8976a 0%, #9a7d56 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
    font-family: inherit;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 10px rgba(184, 151, 106, 0.3);
}
.biyou-btn-add-guest:hover {
    background: linear-gradient(135deg, #9a7d56 0%, #7d6545 100%);
    box-shadow: 0 5px 16px rgba(184, 151, 106, 0.4);
    transform: translateY(-1px);
}

/* --- Submit --- */
.biyou-submit-wrap {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}
.biyou-submit-btn {
    display: inline-block;
    padding: 16px 60px;
    background: linear-gradient(135deg, #b8976a 0%, #9a7d56 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(184, 151, 106, 0.3);
}
.biyou-submit-btn:hover {
    background: linear-gradient(135deg, #9a7d56 0%, #7d6545 100%);
    box-shadow: 0 6px 20px rgba(184, 151, 106, 0.4);
    transform: translateY(-1px);
}
.biyou-btn-back {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #b8976a;
    border: 2px solid #b8976a;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 16px;
    font-family: inherit;
}
.biyou-btn-back:hover {
    background: #faf8f4;
}
.biyou-confirm-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- Confirm Table --- */
.biyou-confirm-wrap {
    margin-bottom: 32px;
}
.biyou-confirm-section {
    margin-bottom: 32px;
}
.biyou-confirm-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #5c4a3a;
    margin: 20px 0 8px;
    padding-left: 12px;
    border-left: 3px solid #b8976a;
}
.biyou-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
.biyou-confirm-table th,
.biyou-confirm-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0d8cc;
    font-size: 0.9rem;
    vertical-align: top;
}
.biyou-confirm-table th {
    width: 200px;
    font-weight: 600;
    color: #666;
    background: #faf8f4;
    text-align: left;
}
.biyou-confirm-table td {
    color: #3a3a3a;
}
.biyou-confirm-subhead {
    background: #f3ece0 !important;
    color: #5c4a3a !important;
    font-size: 0.85rem !important;
}

/* --- Complete --- */
.biyou-complete-msg {
    text-align: center;
    padding: 60px 20px;
}
.biyou-complete-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #b8976a;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 24px;
}
.biyou-complete-title {
    font-size: 1.4rem;
    color: #5c4a3a;
    margin: 0 0 18px;
}
.biyou-complete-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 2;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .biyou-wrapper {
        padding: 0 12px 40px;
    }
    .biyou-hero {
        padding: 30px 10px 25px;
    }
    .biyou-page-title {
        font-size: 1.3rem;
    }
    .biyou-major-title {
        font-size: 1rem;
        padding: 12px 14px;
    }
    .biyou-section-block {
        padding: 16px 14px;
    }

    /* Image cards: 2 columns on SP */
    .biyou-radio-image {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Reference image stays horizontal on SP */
    .biyou-radio-with-image {
        gap: 10px;
    }
    .biyou-ref-image {
        flex: 0 0 150px;
    }

    /* Price table responsive */
    .biyou-price-table {
        font-size: 0.85rem;
    }
    .biyou-price-table thead th,
    .biyou-price-table tbody th,
    .biyou-price-table tbody td {
        padding: 8px 10px;
    }

    /* Confirm table */
    .biyou-confirm-table th {
        width: 120px;
        font-size: 0.85rem;
    }
    .biyou-confirm-table td {
        font-size: 0.85rem;
    }

    /* Buttons */
    .biyou-confirm-btns {
        flex-direction: column;
        align-items: center;
    }
    .biyou-btn-back {
        margin-right: 0;
        margin-bottom: 12px;
    }
    .biyou-submit-btn {
        padding: 14px 40px;
        font-size: 1rem;
    }

    .biyou-input,
    .biyou-select {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .biyou-section-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .biyou-radio-image {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ボディメイク選択肢：縦並び */
.biyou-radio-block {
    display: block;
    margin-bottom: 6px;
}

/* エラーサマリーリスト */
.biyou-error-list {
    margin: 8px 0 0 0;
    padding: 0 0 0 1.2em;
}
.biyou-error-list li {
    margin-bottom: 4px;
    font-size: 0.9em;
}
.biyou-error-list a {
    color: inherit;
    text-decoration: underline;
}
