/**
 * FAQ 프론트 스타일 — .faq-wrap 스코프 전용
 */

.sub-container .cus-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

.faq-wrap .faq-header {
    margin-bottom: 32px;
    text-align: center;
}

.faq-wrap .faq-title {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.faq-wrap .faq-desc {
    margin: 0;
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

.faq-wrap .faq-search-wrap {
    max-width: 660px;
    margin: 34px auto 48px;
    padding: 0 16px;
}

.faq-wrap .faq-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 61px;
    padding: 6px 8px 6px 27px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
}

.faq-wrap .faq-search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1.08rem;
    font-weight: 500;
    color: #222;
}

.faq-wrap .faq-search-form input::placeholder {
    color: #444;
}

.faq-wrap .faq-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 128px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #2d2d2d;
    color: #fff;
    font-size: 1.04rem;
    font-weight: 800;
    cursor: pointer;
}

.faq-wrap .faq-search-form .search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-wrap .faq-search-form .search-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* 질문하기 CTA — .faq-ask-box 스코프 전용 */
.faq-ask-box {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 28px 32px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-ask-box .ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eef0f3;
    color: var(--variation-color, rgb(140 121 101 / 96%));
}

.faq-ask-box .ico svg {
    display: block;
    width: 28px;
    height: 28px;
}

.faq-ask-box .txt {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-ask-box .txt h3 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.faq-ask-box .txt p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #666;
    line-height: 1.55;
}

.faq-ask-box .btn-wrap {
    flex: 0 0 auto;
}

.faq-ask-box .btn-ask {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: var(--variation-color, rgb(140 121 101 / 96%));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.faq-ask-box .btn-ask:hover {
    opacity: 0.88;
    color: #fff;
}

@media (max-width: 768px) {
    .faq-ask-box {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 32px;
        padding: 24px 20px;
        text-align: center;
    }

    .faq-ask-box .ico {
        justify-content: center;
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .faq-ask-box .ico svg {
        width: 24px;
        height: 24px;
    }

    .faq-ask-box .btn-wrap {
        width: 100%;
    }

    .faq-ask-box .btn-ask {
        width: 100%;
        min-width: 0;
    }
}

.faq-wrap .faq-admin-quick.is-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1280px;
    margin: -24px auto 32px;
    padding: 14px 20px;
    border: 1px solid #e3e0d8;
    border-radius: 12px;
    background: #f8f7f4;
}

.faq-wrap .faq-admin-quick.is-admin .label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #ebe8e1;
    color: #5c5348;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.faq-wrap .faq-admin-quick.is-admin .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.faq-wrap .faq-admin-quick.is-admin .actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #c9bea3;
    border-radius: 999px;
    background: #fff;
    color: #3d3830;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-wrap .faq-admin-quick.is-admin .actions a:hover {
    border-color: #b6aa89;
    background: #fffdf8;
    color: #2d2e2f;
}

.faq-wrap .faq-list-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.faq-wrap .faq-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-top: 0;
}

.faq-wrap .faq-item {
    display: block;
    padding: 38px 44px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-wrap .faq-item:hover {
    border-color: #c9bea3;
    background: #fff;
    box-shadow: 0 12px 30px rgb(0 0 0 / 4%);
    transform: translateY(-2px);
}

.faq-wrap .faq-item-content {
    padding: 0;
}

.faq-wrap .faq-item h3 {
    margin: 0 0 18px;
    font-size: 1.55rem;
    font-weight: 800;
    color: rgb(45, 46, 47);
    line-height: 1.4;
    letter-spacing: -0.04em;
}

.faq-wrap .faq-question {
    display: -webkit-box;
    margin: 0;
    max-width: 1120px;
    overflow: hidden;
    color: rgb(113, 118, 122);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.faq-wrap .faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.faq-wrap .faq-tags span {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    background: #f4f5f7;
    color: #5f6670;
    font-size: 0.95rem;
    font-weight: 700;
}

.faq-wrap .faq-tags span::before {
    content: "";
    width: 4px;
    height: 15px;
    margin-right: 9px;
    border-radius: 999px;
    background: #b6aa89;
}

.faq-wrap .faq-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    color: #a2a8af;
    font-size: 1rem;
    font-weight: 700;
}

.faq-wrap .faq-meta .view-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a2a8af;
    font-size: 0.9rem;
    font-weight: 600;
}

.faq-wrap .faq-meta .view-count svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.faq-wrap .faq-meta .answer-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b6aa89;
    font-weight: 800;
}

.faq-wrap .faq-meta .answer-link svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.faq-wrap .faq-empty {
    margin: 40px 0;
    padding: 32px 20px;
    text-align: center;
    color: #888;
    background: #faf9f7;
    border-radius: 8px;
}

.faq-wrap .faq-view__layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.faq-wrap .faq-view__main {
    flex: 1;
    min-width: 0;
}

.faq-wrap .faq-view__aside {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 114px;
    align-self: flex-start;
}

.faq-wrap .faq-related {
    padding: 28px 24px 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.faq-wrap .faq-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.faq-wrap .faq-related__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2744;
    letter-spacing: -0.03em;
}

.faq-wrap .faq-related__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1a2744;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease;
}

.faq-wrap .faq-related__more:hover {
    background: #25345a;
}

.faq-wrap .faq-related__more svg {
    display: block;
    width: 14px;
    height: 14px;
}

.faq-wrap .faq-related__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-wrap .faq-related__list li {
    border-top: 1px solid #e8e8e8;
}

.faq-wrap .faq-related__list li:first-child {
    border-top: 0;
}

.faq-wrap .faq-related__list a {
    display: block;
    padding: 18px 0;
    color: rgb(45, 46, 47);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-wrap .faq-related__list a:hover {
    color: #b6aa89;
}

.faq-wrap .faq-related--members {
    margin-top: 24px;
    padding-bottom: 12px;
}

.faq-wrap .faq-member__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-wrap .faq-member__list li {
    border-top: 1px solid #e8e8e8;
}

.faq-wrap .faq-member__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    text-decoration: none;
    color: inherit;
}

/* view.php 관련 구성원 — success/view 담당 변호사 프로필과 동일 기준 */
.faq-wrap .faq-member__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    background: #f4f2ee;
    border: 1px solid #ece8e2;
}

.faq-wrap .faq-member__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.faq-wrap .faq-member__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.faq-wrap .faq-member__name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: rgb(45, 46, 47);
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.faq-wrap .faq-member__role {
    margin-left: 4px;
    font-weight: 700;
}

.faq-wrap .faq-member__line {
    display: block;
    overflow: hidden;
    color: #7a8087;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.faq-wrap .faq-view__intro {
    margin-bottom: 32px;
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
}

.faq-wrap .faq-view__head {
    padding: 36px 44px;
    background: #f5f6f8;
    border-bottom: 1px solid #e5e5e5;
}

.faq-wrap .faq-view__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: rgb(45, 46, 47);
    line-height: 1.4;
    letter-spacing: -0.04em;
}

.faq-wrap .faq-view__question-box {
    padding: 50px 44px;
    background: #fff;
}

.faq-wrap .faq-view__question {
    margin: 0;
    max-width: 1120px;
    color: rgb(45, 46, 47);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: -0.02em;
}

.faq-wrap .faq-view__question-box .faq-tags {
    margin-top: 24px;
}

.faq-wrap .faq-view__answer {
    padding: 36px 44px;
    background: #f6f5f1;
    border-top: 1px solid #e5e5e5;
}

.faq-wrap .faq-view__answer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.faq-wrap .faq-view__answer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fffadf;
    color: #b6aa89;
}

.faq-wrap .faq-view__answer-icon img,
.faq-wrap .faq-view__answer-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.faq-wrap .faq-view__answer-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: rgb(45, 46, 47);
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.faq-wrap .faq-view__answer-body {
    color: rgb(45, 46, 47);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: -0.02em;
}

.faq-wrap .faq-view__answer-body p {
    margin: 0 0 16px;
}

.faq-wrap .faq-view__answer-body p:last-child {
    margin-bottom: 0;
}

.faq-wrap .faq-view__answer-empty {
    margin: 0;
    color: rgb(113, 118, 122);
    font-weight: 500;
}

.faq-wrap .faq-about {
    margin-top: 48px;
    padding: 44px 40px 48px;
    background: #f5f6f8;
    border: 1px solid #e8e8e8;
}

.faq-wrap .faq-about__head {
    margin-bottom: 32px;
    text-align: center;
}

.faq-wrap .faq-about__title {
    margin: 0 0 12px;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--variation-color, rgb(140 121 101 / 96%));
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.faq-wrap .faq-about__desc {
    margin: 0;
    color: rgb(45, 46, 47);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.faq-wrap .faq-about__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-wrap .faq-about__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
    padding: 32px 20px 28px;
    border: 1px solid #ececec;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
}

.faq-wrap .faq-about__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #eef0f3;
    color: var(--variation-color, rgb(140 121 101 / 96%));
}

.faq-wrap .faq-about__icon img,
.faq-wrap .faq-about__icon svg {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.faq-wrap .faq-about__label {
    margin: 0;
    color: rgb(45, 46, 47);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.faq-wrap .faq-view__foot {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
    text-align: center;
    clear: both;
}

.faq-wrap .faq-view__foot .faq-btn {
    min-height: 50px;
    padding: 0 50px;
    border: 0;
    border-radius: 8px;
    background: rgb(45, 46, 47);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-wrap .faq-view__foot .faq-btn:hover {
    background: rgb(35, 36, 37);
    color: #fff;
}

.faq-wrap .faq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgb(140 121 101 / 96%);
}

.faq-wrap .faq-btn--outline {
    color: #6f6152;
    background: #fff;
    border: 1px solid #d8d0c6;
}

@media (max-width: 768px) {
    .faq-wrap .faq-view__layout {
        flex-direction: column;
        gap: 32px;
    }

    .faq-wrap .faq-view__aside {
        flex: 1 1 auto;
        width: 100%;
        position: static;
        top: auto;
    }

    .faq-wrap .faq-about {
        margin-top: 36px;
        padding: 32px 20px 36px;
    }

    .faq-wrap .faq-about__head {
        margin-bottom: 24px;
    }

    .faq-wrap .faq-about__title {
        font-size: 1.35rem;
    }

    .faq-wrap .faq-about__desc {
        font-size: 0.95rem;
    }

    .faq-wrap .faq-about__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .faq-wrap .faq-about__card {
        min-height: 170px;
        padding: 24px 14px 20px;
    }

    .faq-wrap .faq-about__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .faq-wrap .faq-about__icon img,
    .faq-wrap .faq-about__icon svg {
        width: 30px;
        height: 30px;
    }

    .faq-wrap .faq-about__label {
        font-size: 0.88rem;
    }

    .faq-wrap .faq-related {
        padding: 24px 20px 4px;
    }

    .faq-wrap .faq-related--members {
        margin-top: 20px;
    }

    .faq-wrap .faq-member__item {
        padding: 18px 0;
    }

    .faq-wrap .faq-member__thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .faq-wrap .faq-view__head,
    .faq-wrap .faq-view__question-box,
    .faq-wrap .faq-view__answer {
        padding: 28px 22px;
    }

    .faq-wrap .faq-view__answer-head {
        margin-bottom: 16px;
    }

    .faq-wrap .faq-view__answer-title {
        font-size: 1rem;
    }

    .faq-wrap .faq-view__answer-body {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .faq-wrap .faq-view__title {
        font-size: 1.25rem;
    }

    .faq-wrap .faq-view__question {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .faq-wrap .faq-list-section {
        padding: 0 18px;
    }

    .faq-wrap .faq-list {
        gap: 18px;
    }

    .faq-wrap .faq-item {
        padding: 28px 22px;
    }

    .faq-wrap .faq-item h3 {
        margin-bottom: 14px;
        font-size: 1.2rem;
    }

    .faq-wrap .faq-question {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }

    .faq-wrap .faq-tags {
        margin-top: 20px;
    }

    .faq-wrap .faq-tags span {
        height: 30px;
        font-size: 0.85rem;
    }

    .faq-wrap .faq-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 22px;
        font-size: 0.9rem;
    }

    .faq-wrap .faq-meta .view-count svg {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .faq-wrap .faq-meta .answer-link {
        font-size: 0.88rem;
    }

    .faq-wrap .faq-meta .answer-link svg {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .faq-wrap .faq-search-wrap {
        margin: 22px auto 32px;
        padding: 0 14px;
    }

    .faq-wrap .faq-admin-quick.is-admin {
        flex-direction: column;
        align-items: stretch;
        margin: -16px 14px 24px;
        padding: 14px 16px;
    }

    .faq-wrap .faq-admin-quick.is-admin .label {
        align-self: flex-start;
    }

    .faq-wrap .faq-admin-quick.is-admin .actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .faq-wrap .faq-admin-quick.is-admin .actions a {
        width: 100%;
    }

    .faq-wrap .faq-search-form {
        height: 50px;
        padding: 6px 6px 6px 16px;
    }

    .faq-wrap .faq-search-form input {
        font-size: 0.875rem;
    }

    .faq-wrap .faq-search-form button {
        flex: 0 0 83px;
        height: 38px;
        gap: 5px;
        font-size: 0.875rem;
    }

    .faq-wrap .faq-search-form .search-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* 질문 작성 페이지 — .faq-ask-page 스코프 전용 */
.faq-ask-page {
    background: #f6f8fb;
    padding-bottom: 4rem;
}

.faq-ask-page__header {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.25rem;
    text-align: left;
}

.faq-ask-page__header h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3a4a;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.faq-ask-page__header .faq-ask-page__desc {
    margin: 0;
    font-size: 1.0625rem;
    color: #4a5568;
    line-height: 1.5;
}

.faq-ask-page__success {
    max-width: 1280px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #c9d4e8;
    border-radius: 12px;
    background: #eef4fb;
}

.faq-ask-page__success p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2f5f9e;
    line-height: 1.5;
}

.faq-ask-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    align-items: start;
    border: 0;
    background: transparent;
}

.faq-ask-page__main {
    min-width: 0;
}

.faq-ask-page__form {
    padding: 2rem 2.25rem 2.5rem;
    border: 1px solid #e5e8ee;
    border-radius: 20px;
    background: #fff;
    box-sizing: border-box;
}

.faq-ask-page__aside {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-ask-page__aside-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.faq-ask-page__aside-actions > .faq-ask-page__form {
    margin-bottom: 1rem;
}

.faq-ask-page__aside-actions > .faq-ask-page__submit {
    margin-top: 0.75rem;
}

.faq-ask-page__aside > .faq-ask-page__notice {
    margin-top: 0;
}

.faq-ask-page__agree {
    width: 100%;
}

.faq-ask-page__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 10px;
    background: var(--variation-color, rgb(140 121 101 / 96%));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.faq-ask-page__submit:hover {
    opacity: 0.88;
}

.faq-ask-page__field + .faq-ask-page__field {
    margin-top: 1.5rem;
}

.faq-ask-page__label {
    display: block;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.faq-ask-page__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.faq-ask-page__label-row .faq-ask-page__label {
    margin-bottom: 0;
}

.faq-ask-page__count {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #888;
    line-height: 1.2;
}

.faq-ask-page__count.is-over {
    color: #c0392b;
}

.faq-ask-page__form input[type="text"],
.faq-ask-page__form input[type="tel"],
.faq-ask-page__form select,
.faq-ask-page__form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-ask-page__form input[type="text"],
.faq-ask-page__form input[type="tel"],
.faq-ask-page__form select {
    height: 3.25rem;
    padding: 0 1rem;
}

.faq-ask-page__form select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.faq-ask-page__form input[type="text"]:focus,
.faq-ask-page__form input[type="tel"]:focus,
.faq-ask-page__form select:focus,
.faq-ask-page__form textarea:focus {
    outline: none;
    border-color: #b8c4d9;
    box-shadow: 0 0 0 3px rgba(47, 95, 158, 0.08);
}

.faq-ask-page__form input::placeholder,
.faq-ask-page__form textarea::placeholder {
    color: #999;
}

.faq-ask-page__form textarea {
    display: block;
    min-height: 21.25rem;
    height: 21.25rem;
    padding: 1rem 1.125rem;
    resize: vertical;
}

.faq-ask-page__notice {
    padding: 1.75rem 1.5rem;
    border: 1px solid #e5e8ee;
    border-radius: 20px;
    background: #fff;
    box-sizing: border-box;
}

.faq-ask-page__notice h2 {
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
}

.faq-ask-page__notice ul {
    margin: 0;
    padding: 0 0 0 1.125rem;
    list-style: disc;
}

.faq-ask-page__notice li {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.65;
}

.faq-ask-page__notice li + li {
    margin-top: 0.625rem;
}

@media (max-width: 768px) {
    .faq-ask-page__header h1 {
        font-size: 1.5rem;
    }

    .faq-ask-page__header .faq-ask-page__desc {
        font-size: 0.9375rem;
    }

    .faq-ask-page__layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .faq-ask-page__form {
        padding: 1.5rem 1.25rem 1.75rem;
        border-radius: 18px;
    }

    .faq-ask-page__form textarea {
        min-height: 16rem;
        height: 16rem;
    }

    .faq-ask-page__main {
        order: 1;
    }

    .faq-ask-page__aside {
        order: 2;
    }
}
