/* ============================================================
   LP Step Form Embed — lp-step-form.css
   page-lp-contact.php の CF7 フォームを LP に埋め込むための CSS。
   カラーをHotelLab Business LP（#0150C6 / #091852 / #f8c313）に適応。
   すべてのスタイルは .lp-form-embed-card にスコープ。
============================================================ */

/* ---- Section wrapper ---- */
.lp-form-embed-section {
    padding: 80px 0 100px;
    background: linear-gradient(175deg, #eef4ff 0%, #ffffff 56%);
    position: relative;
    overflow: hidden;
}

.lp-form-embed-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1,80,198,.05) 0%, transparent 70%);
    pointer-events: none;
}

.lp-form-embed-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section heading ---- */
.lp-form-embed-heading {
    text-align: center;
    margin-bottom: 40px;
}

.lp-form-embed-heading h2 {
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    font-weight: 900;
    color: #091852;
    line-height: 1.4;
    margin-bottom: 10px;
}

.lp-form-embed-heading h2 em {
    font-style: normal;
    color: #0150C6;
}

.lp-form-embed-heading p {
    color: #555;
    font-size: .975rem;
    line-height: 1.8;
}

/* ---- Form card ---- */
.lp-form-embed-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 48px rgba(9,24,82,.09), 0 1px 4px rgba(9,24,82,.04);
    padding: 48px 56px;
    overflow: hidden;
}

/* ---- CF7 hidden screen reader output ---- */
.lp-form-embed-card .screen-reader-response {
    display: none;
}

/* ---- Form title ---- */
.lp-form-embed-card .ttl {
    display: none; /* LP埋め込みではセクション見出しを使うため非表示 */
}

/* ---- form__lead ---- */
.lp-form-embed-card .form__lead {
    text-align: center;
    color: #666;
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ---- Logo slider margin ---- */
.lp-form-embed-card .logo-slider__content {
    margin-bottom: 40px;
}

/* ============================================================
   Step navigation
   元の .step-nav クラスをそのまま利用、色だけLPに合わせる
============================================================ */
.lp-form-embed-card .step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.lp-form-embed-card .step-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.lp-form-embed-card .step-nav__item.is-active,
.lp-form-embed-card .step-nav__item.is-done {
    opacity: 1;
}

.lp-form-embed-card .step-nav__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d5dff5;
    color: #8899bb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    transition: background .3s, color .3s, box-shadow .3s;
}

.lp-form-embed-card .step-nav__item.is-active .step-nav__circle {
    background: #0150C6;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(1,80,198,.15);
}

.lp-form-embed-card .step-nav__item.is-done .step-nav__circle {
    background: #091852;
    color: #fff;
}

.lp-form-embed-card .step-nav__label {
    font-size: .78rem;
    color: #999;
    white-space: nowrap;
    transition: color .3s;
}

.lp-form-embed-card .step-nav__item.is-active .step-nav__label,
.lp-form-embed-card .step-nav__item.is-done .step-nav__label {
    color: #0150C6;
    font-weight: 600;
}

.lp-form-embed-card .step-nav__line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: #d5dff5;
    margin: 0 .8rem;
    margin-bottom: 1.2rem;
    transition: background .3s;
}

.lp-form-embed-card .step-nav__line.is-done {
    background: #0150C6;
}

/* ============================================================
   Step panel show/hide + animation
============================================================ */
.lp-form-embed-card .form-step {
    display: none;
}

.lp-form-embed-card .form-step.is-active {
    display: block;
    animation: lpEmbedStepIn .3s ease both;
}

@keyframes lpEmbedStepIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0);    }
}

/* ============================================================
   Form layout (table / colmn based)
============================================================ */
.lp-form-embed-card form tbody {
    display: flex;
    flex-direction: column;
}

.lp-form-embed-card form tbody .colmn {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.lp-form-embed-card table {
    width: 100%;
    max-width: 640px;
    margin: auto;
}

.lp-form-embed-card .inquiry th > p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

/* ---- Labels ---- */
.lp-form-embed-card span.form-head {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #091852;
}

/* ---- Required / optional badges ---- */
.lp-form-embed-card span.required {
    background: #e03e3e;
    color: #fff;
    font-size: .68rem;
    padding: .15rem .4rem;
    margin-left: .5rem;
    vertical-align: 3px;
    border-radius: 3px;
}

.lp-form-embed-card .haveto {
    font-size: 7px;
    padding: 5px;
    background: #e03e3e;
    color: #fff;
    border-radius: 2px;
    margin-right: 5px;
    position: relative;
    bottom: 1px;
}

.lp-form-embed-card .any,
.lp-form-embed-card .some-check {
    font-size: 12px;
    padding: .2rem .4rem;
    background: #e2e2e2;
    color: #707070;
    border-radius: 9999px;
    margin-left: .5rem;
    vertical-align: 3px;
}

/* ============================================================
   Input fields
============================================================ */
.lp-form-embed-card input[type="text"].form-list,
.lp-form-embed-card input[type="email"].form-list,
.lp-form-embed-card input[type="tel"].form-list {
    background-color: #fafbff;
    border: 2px solid #dde4f2;
    padding: .65rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.lp-form-embed-card input[type="text"].form-list:focus,
.lp-form-embed-card input[type="email"].form-list:focus,
.lp-form-embed-card input[type="tel"].form-list:focus {
    border-color: #0150C6;
    box-shadow: 0 0 0 3px rgba(1,80,198,.1);
    outline: none;
    background: #fff;
}

/* ---- Select ---- */
.lp-form-embed-card .wpcf7 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fafbff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230150C6' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 2px solid #dde4f2;
    padding: .65rem 2.5rem .65rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}

.lp-form-embed-card .wpcf7 select:focus {
    border-color: #0150C6;
    box-shadow: 0 0 0 3px rgba(1,80,198,.1);
    outline: none;
    background-color: #fff;
}

/* ---- Textarea ---- */
.lp-form-embed-card textarea {
    background-color: #fafbff !important;
    border: 2px solid #dde4f2 !important;
    padding: .75em 1em !important;
    min-height: 100px !important;
    max-height: 200px !important;
    border-radius: 8px !important;
    width: 100% !important;
    overflow: auto !important;
    transition: border-color .2s !important;
    font-family: inherit !important;
    font-size: 1rem !important;
}

.lp-form-embed-card textarea:focus {
    border-color: #0150C6 !important;
    box-shadow: 0 0 0 3px rgba(1,80,198,.1) !important;
    outline: none !important;
    background-color: #fff !important;
}

/* ---- Button-style checkbox (check-op) ---- */
.lp-form-embed-card .check-op .wpcf7-form-control {
    display: flex !important;
    gap: 0.8rem;
    flex-direction: row !important;
    flex-wrap: wrap;
}

.lp-form-embed-card .check-op .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1.5rem;
    border: 2px solid #dde4f2;
    border-radius: 50px;
    cursor: pointer;
    transition: all .2s;
    font-size: .95rem;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    background: #fafbff;
}

.lp-form-embed-card .check-op .wpcf7-list-item input[type="checkbox"] {
    display: none !important;
}

.lp-form-embed-card .check-op .wpcf7-list-item-label {
    margin-left: 0 !important;
    width: auto !important;
    white-space: nowrap;
}

.lp-form-embed-card .check-op .wpcf7-list-item label:has(input:checked) {
    background: #0150C6;
    border-color: #0150C6;
    color: #fff;
}

/* ---- Regular checkboxes ----
   CF7 を同一ページに複数置くと id:accept-menu は先頭のみ付与されるため、
   .accept-area / .wpcf7-acceptance でもスタイルが効くようにする。
*/
.lp-form-embed-card .check input[type="checkbox"],
.lp-form-embed-card input[type="checkbox"].spam1,
.lp-form-embed-card input[type="checkbox"]#accept-menu,
.lp-form-embed-card .accept-area input[type="checkbox"],
.lp-form-embed-card .wpcf7-acceptance input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 28px;
    width: 28px;
    vertical-align: -8px;
    border-radius: 6px;
    background-color: #fff;
    border: 2px solid #dde4f2;
    cursor: pointer;
    flex-shrink: 0;
}

.lp-form-embed-card .check input[type="checkbox"]::before,
.lp-form-embed-card input[type="checkbox"].spam1::before,
.lp-form-embed-card input[type="checkbox"]#accept-menu::before,
.lp-form-embed-card .accept-area input[type="checkbox"]::before,
.lp-form-embed-card .wpcf7-acceptance input[type="checkbox"]::before {
    display: block;
    content: "✓";
    line-height: 1;
    text-align: center;
    font-size: 20px;
    color: #0150C6;
    opacity: 0;
}

.lp-form-embed-card .check input[type="checkbox"]:checked::before,
.lp-form-embed-card input[type="checkbox"]:checked.spam1::before,
.lp-form-embed-card input[type="checkbox"]:checked#accept-menu::before,
.lp-form-embed-card .accept-area input[type="checkbox"]:checked::before,
.lp-form-embed-card .wpcf7-acceptance input[type="checkbox"]:checked::before {
    opacity: 1;
}

/* ---- check-list (regular checkbox list) ---- */
.lp-form-embed-card .check-list .wpcf7-form-control-wrap .wpcf7-form-control {
    display: flex;
    gap: .7rem 1.5rem;
    flex-wrap: wrap;
}

.lp-form-embed-card .check-list input[type="checkbox"] {
    height: 22px;
    width: 22px;
    vertical-align: inherit;
    border-radius: 3px;
    border: 2px solid #dde4f2;
}

.lp-form-embed-card .check > span {
    margin-left: inherit;
}

.lp-form-embed-card .wpcf7-list-item {
    margin: 0;
}

.lp-form-embed-card .wpcf7-list-item-label::before,
.lp-form-embed-card .wpcf7-list-item-label::after {
    content: none;
}

.lp-form-embed-card .wpcf7-list-item-label,
.lp-form-embed-card .spam-check {
    font-size: 1rem;
    margin-left: .5rem;
    width: calc(100% - 36px);
}

/* ---- Accept area ---- */
.lp-form-embed-card .accept-area {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin-bottom: .75rem;
}

.lp-form-embed-card .accept-area > p {
    display: inline-flex;
}

.lp-form-embed-card .accept-area > p > a {
    margin-left: .5rem;
    display: inline-flex;
    color: #0150C6;
    text-decoration: underline;
}

.lp-form-embed-card .accept-wrap {
    text-align: center;
}

/* ---- Validation messages ---- */
.lp-form-embed-card span.wpcf7-not-valid-tip {
    line-height: 1.5;
    font-size: .72rem;
    color: #e03e3e;
    padding-top: .3rem;
    display: block;
}

.lp-form-embed-card .wpcf7 form .wpcf7-response-output {
    text-align: center;
    border: none !important;
    background: transparent;
    color: #e03e3e;
    margin: .5rem 0 0;
    font-weight: 700;
    font-size: .85rem;
    padding: .5rem 1rem !important;
}

.lp-form-embed-card .wpcf7-form-control-wrap {
    position: relative;
}

.lp-form-embed-card .select-box::after {
    display: none;
}

/* ---- Two-column layout ---- */
.lp-form-embed-card .colmn--two {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem;
    align-items: flex-start;
}

.lp-form-embed-card .colmn--two .two-col__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 0.9rem;
}
.lp-form-embed-card .colmn--two .two-col__item:last-child {
    margin-bottom: 0;
}
/* ---- Auto route row (compact) ---- */
.lp-form-embed-card .select-route-auto-row {
    margin-bottom: .6rem !important;
    padding: .5rem .75rem !important;
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 6px;
}

.lp-form-embed-card .select-route-auto-row .form-head {
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.2;
}

.lp-form-embed-card .auto-badge {
    display: inline-block;
    font-size: 12px;
    background: #e8e8e8;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: 2px;
}

.lp-form-embed-card select[name="select-route"] {
    font-size: .82rem !important;
    background-color: #f5f5f5 !important;
    border-color: #e5e5e5 !important;
    padding: .25rem .6rem !important;
}

/* ============================================================
   Step navigation buttons
   元: linear-gradient(88deg, #E83A5A 21%, #F26022 100%)
   → LP blue / yellow
============================================================ */
.lp-form-embed-card .step-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.lp-form-embed-card .step-btn-wrap--back {
    margin-top: .5rem;
    margin-bottom: 16px;
}

.lp-form-embed-card .step-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 3.5rem;
    background: #0150C6;
    color: #fff;
    border: none;
    border-radius: 56px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .05em;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(1,80,198,.28);
    font-family: inherit;
}

.lp-form-embed-card .step-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(1,80,198,.4);
}

.lp-form-embed-card .step-back-btn {
    display: inline-block;
    padding: .7rem 2rem;
    background: #fff;
    color: #888;
    border: 2px solid #dde4f2;
    border-radius: 50px;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.lp-form-embed-card .step-back-btn:hover {
    border-color: #0150C6;
    color: #0150C6;
    background: #f0f5ff;
}

/* ---- Submit button ---- */
.lp-form-embed-card .form-submit {
    display: grid;
    place-items: center;
}

.lp-form-embed-card .form-submit input[type="submit"].btn {
    display: inline-block;
    margin: 0 auto;
    padding: 1.2rem 0;
    transition: transform .2s, box-shadow .2s, background .2s;
    width: 100%;
    max-width: 360px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .1em;
    border-radius: 56px;
    cursor: pointer;
    font-family: inherit;
}

.lp-form-embed-card .form-submit input[type="submit"].btn-1 {
    background: #f8c313;
    border: none;
    color: #1c1f21;
    box-shadow: 0 6px 24px rgba(248,195,19,.4);
}

.lp-form-embed-card .form-submit input[type="submit"].btn-1:hover {
    background: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(248,195,19,.5);
}

.lp-form-embed-card input[type="submit"].btn-1.wpcf7-submit:disabled {
    background: #f0f0f0;
    border: none;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ============================================================
   Contact Drawer (スライドインサイドパネル)
============================================================ */

/* ---- ドロワー全体ラッパー（fixed overlay） ---- */
.contact-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}

.contact-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* ---- 背景オーバーレイ ---- */
.contact-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 82, .55);
    opacity: 0;
    transition: opacity .3s ease;
    cursor: pointer;
}

.contact-drawer.is-open .contact-drawer__overlay {
    opacity: 1;
}

/* ---- パネル本体（右からスライドイン） ---- */
.contact-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1; /* overlay より前面にしてフォーム操作を確実に */
    width: min(520px, 100vw);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}

.contact-drawer.is-open .contact-drawer__panel {
    transform: translateX(0);
}

/* ---- パネルヘッダー ---- */
.contact-drawer__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #091852;
    color: #fff;
    flex-shrink: 0;
}

.contact-drawer__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: .03em;
}

.contact-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.contact-drawer__close:hover {
    background: rgba(255, 255, 255, .3);
}

/* ---- パネルボディ（スクロール領域） ---- */
.contact-drawer__body {
    flex: 1;
    padding: 28px 28px 40px;
    overflow-y: auto;
}

/* ---- ドロワー内フォームカード（lp-form-embed-card のスタイルを流用） ---- */
.contact-drawer__body .lp-form-embed-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* ---- ドロワー内ステップナビ ---- */
.contact-drawer__body .step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

/* ---- body スクロール固定（ドロワーオープン時） ---- */
body.drawer-is-open {
    overflow: hidden;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 767px) {
    .lp-form-embed-section {
        padding: 56px 0 72px;
    }

    .lp-form-embed-inner {
        padding: 0 16px;
    }

    .lp-form-embed-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .lp-form-embed-card .colmn--two {
        flex-direction: column !important;
        gap: 0;
    }

    .lp-form-embed-card .check-op .wpcf7-list-item label {
        padding: .55rem 1rem;
    }

    .lp-form-embed-card .step-next-btn {
        padding: 1rem 2.5rem;
    }

    /* ---- Drawer SP: 全幅 ---- */
    .contact-drawer__panel {
        width: 100vw;
    }

    .contact-drawer__body {
        padding: 20px 16px 40px;
    }
}
