/* ==============================================
   施設詳細ページ用CSS
   デザインガイドライン Section 5 準拠
   ============================================== */

/* ========== ベース ========== */

.facility-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.75;
}

@media (max-width: 768px) {
    .facility-detail {
        padding-bottom: 80px;
    }
}

/* ========== セクション共通 ========== */

.facility-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.facility-section:last-of-type {
    border-bottom: none;
}

.facility-section__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
    color: var(--color-text);
}

@media (min-width: 769px) {
    .facility-section__title {
        font-size: 20px;
    }
}

/* ========== プランラベル ========== */

.facility-plan-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.facility-plan-label--premium {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF0C2 100%);
    color: #8B6914;
    border: 1px solid #D4A017;
}

.facility-plan-label--basic {
    background: #EBF4FF;
    color: #2B6CB0;
    border: 1px solid #90CAF9;
}

/* ========== 1. ヘッダー ========== */

.facility-header {
    text-align: left;
    padding-bottom: var(--space-lg);
    margin-bottom: 0;
}

.facility-badges {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

.facility-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: var(--space-sm) 0;
    line-height: 1.35;
}

@media (min-width: 769px) {
    .facility-title {
        font-size: 26px;
    }
}

.facility-area {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* PRコピー（キャッチコピー） */
.facility-pr-copy {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: var(--space-md) 0;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

@media (min-width: 769px) {
    .facility-pr-copy {
        font-size: 24px;
    }
}

/* ========== 2. クイックアクションCTA ========== */

.facility-quick-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.quick-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s, box-shadow 0.2s;
}

.quick-action:hover {
    text-decoration: none;
}

.quick-action--phone {
    background: var(--color-primary);
    color: #fff;
}

.quick-action--phone:hover {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
}

.quick-action--form {
    background: var(--color-secondary);
    color: #fff;
    border: none;
}

.quick-action--form:hover {
    background: var(--color-secondary-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.quick-action__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.quick-action__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quick-action__label {
    font-size: 14px;
    font-weight: 700;
}

.quick-action__number {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

/* ========== 3. 施設写真ギャラリー ========== */

/* ヒーロー写真 */
.gallery-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
    cursor: pointer;
}

.gallery-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-hero:hover .gallery-hero__img {
    transform: scale(1.03);
}

.gallery-hero__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

/* 写真グリッド（サブ写真） */
.gallery-grid {
    display: grid;
    gap: var(--space-sm);
}

.gallery-grid--premium {
    grid-template-columns: repeat(4, 1fr);
}

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

.gallery-grid__item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .gallery-grid--premium {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid--basic {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ギャラリー枚数カウント */
.gallery-count {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: var(--space-sm);
}

/* ========== 施設紹介文 ========== */

.intro-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-size: 15px;
    line-height: 1.9;
}

.intro-content p {
    margin-bottom: var(--space-md);
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-content h3,
.intro-content h4 {
    margin: var(--space-lg) 0 var(--space-sm);
    font-size: 16px;
}

.intro-content ul,
.intro-content ol {
    padding-left: 1.5em;
    margin-bottom: var(--space-md);
}

.intro-content li {
    list-style: disc;
    margin-bottom: 4px;
}

/* ========== 4. 施設メッセージ ========== */

.message-box {
    background: var(--color-secondary-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-size: 15px;
    line-height: 1.8;
}

/* ========== 5. 基本情報テーブル ========== */

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 15px;
}

.info-table th {
    width: 35%;
    background: var(--color-surface-alt);
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.info-table td {
    color: var(--color-text);
}

.info-table td a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.info-table td a:hover {
    text-decoration: underline;
}

/* テーブル角丸 */
.info-table tr:first-child th {
    border-radius: var(--radius-md) 0 0 0;
}

.info-table tr:first-child td {
    border-radius: 0 var(--radius-md) 0 0;
}

.info-table tr:last-child th {
    border-radius: 0 0 0 var(--radius-md);
    border-bottom: none;
}

.info-table tr:last-child td {
    border-radius: 0 0 var(--radius-md) 0;
    border-bottom: none;
}

/* ========== ミニCTA ========== */

.facility-mini-cta {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ========== 6. 対応情報（カードUI）========== */

.tax-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 560px) {
    .tax-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tax-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    transition: box-shadow 0.2s;
}

.tax-card:hover {
    box-shadow: var(--shadow-sm);
}

.tax-card__header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.tax-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.tax-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tax-card__tag {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    line-height: 1.3;
}

/* カテゴリ別カラーテーマ */
.tax-card--disability .tax-card__header { border-bottom-color: #E8B4D8; }
.tax-card--disability .tax-card__tag   { background: #FDF2F8; color: #9B2C6B; }

.tax-card--age .tax-card__header { border-bottom-color: #93C5FD; }
.tax-card--age .tax-card__tag    { background: #EFF6FF; color: #1E40AF; }

.tax-card--support .tax-card__header { border-bottom-color: var(--color-primary-mid); }
.tax-card--support .tax-card__tag    { background: var(--color-primary-pale); color: var(--color-primary-dark); }

.tax-card--feature .tax-card__header { border-bottom-color: #FCD34D; }
.tax-card--feature .tax-card__tag    { background: #FFFBEB; color: #92400E; }

.tax-card--staff .tax-card__header { border-bottom-color: #A5B4FC; }
.tax-card--staff .tax-card__tag    { background: #EEF2FF; color: #3730A3; }

/* ========== 7. 活動プログラム紹介 ========== */

/* カード形式 */
.program-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 560px) {
    .program-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.program-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.program-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.program-card__photo {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.program-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-card__body {
    padding: var(--space-md);
}

.program-card__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary-mid);
}

.program-card__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* 旧形式フォールバック */
.program-content {
    background: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.8;
}

.program-content p {
    margin-bottom: var(--space-md);
}

.program-content p:last-child {
    margin-bottom: 0;
}

/* ========== 7.5 スタッフ紹介 ========== */

.staff-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 560px) {
    .staff-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .staff-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.staff-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.staff-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.staff-card__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.staff-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--color-text-tertiary);
}

.staff-card__body {
    padding: var(--space-md);
}

.staff-card__name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.staff-card__qual {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: var(--color-primary-pale);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-sm);
}

.staff-card__message {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    text-align: left;
}

/* ========== 8. 一日の流れ（タイムラインUI）========== */

.timeline {
    position: relative;
    padding-left: 0;
}

.timeline__item {
    display: grid;
    grid-template-columns: 56px 20px 1fr;
    gap: 0;
    align-items: start;
    min-height: 48px;
    position: relative;
}

.timeline__item:last-child {
    min-height: auto;
}

.timeline__time {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-align: right;
    padding-right: 8px;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.timeline__dot {
    position: relative;
    display: flex;
    justify-content: center;
    width: 20px;
}

.timeline__dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 2px var(--color-primary-mid);
    flex-shrink: 0;
    margin-top: 4px;
    z-index: 1;
}

.timeline__dot::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 4px);
    background: var(--color-primary-mid);
}

.timeline__item:last-child .timeline__dot::after {
    display: none;
}

.timeline__content {
    font-size: 15px;
    color: var(--color-text);
    padding: 0 0 var(--space-md) 10px;
    line-height: 1.6;
    padding-top: 1px;
}

.timeline__item:last-child .timeline__content {
    padding-bottom: 0;
}

@media (max-width: 480px) {
    .timeline__item {
        grid-template-columns: 48px 16px 1fr;
    }
    .timeline__time {
        font-size: 13px;
    }
    .timeline__content {
        font-size: 14px;
        padding-left: 8px;
    }
}

/* ========== 9. 年間行事（カードグリッド）========== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 560px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.event-card__month {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: 8px;
    line-height: 1;
    /* デフォルト */
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
}

.event-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text);
}

/* 季節カラー */
.event-card--spring .event-card__month {
    background: #FDF2F8;
    color: #BE185D;
}
.event-card--spring {
    border-color: #FBCFE8;
}

.event-card--summer .event-card__month {
    background: #EFF6FF;
    color: #1D4ED8;
}
.event-card--summer {
    border-color: #BFDBFE;
}

.event-card--autumn .event-card__month {
    background: #FFF7ED;
    color: #C2410C;
}
.event-card--autumn {
    border-color: #FED7AA;
}

.event-card--winter .event-card__month {
    background: #EEF2FF;
    color: #4338CA;
}
.event-card--winter {
    border-color: #C7D2FE;
}

/* ========== 10. Google Map ========== */

.facility-map__address {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-container iframe {
    display: block;
}

/* ========== 11. 大きなCTAセクション ========== */

.facility-cta {
    text-align: center;
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.facility-cta__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.facility-cta__desc {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.facility-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

@media (min-width: 769px) {
    .facility-cta__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.facility-cta__phone-number {
    display: block;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

/* ========== 12. 近隣施設 ========== */

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .nearby-grid {
        grid-template-columns: 1fr;
    }
}

.nearby-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.nearby-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;
}

.nearby-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.nearby-card__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.nearby-card__address {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* ========== 施設向けアップセルバナー ========== */

.facility-upsell {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF0C2 100%);
    border: 2px solid #D4A017;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.facility-upsell__icon {
    font-size: 40px;
    margin-bottom: var(--space-sm);
}

.facility-upsell__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #8B6914;
    margin-bottom: var(--space-sm);
}

.facility-upsell__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.facility-upsell__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.facility-upsell__feature {
    font-size: 13px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    color: #8B6914;
    font-weight: 500;
}

/* ========== バッジ（施設詳細用） ========== */

.badge--small {
    padding: 2px 8px;
    font-size: 11px;
}

/* ========== 10.5 利用者の声 ========== */

.voice-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .voice-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.voice-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
}

.voice-card__icon {
    font-size: 24px;
    margin-bottom: var(--space-sm);
    opacity: 0.6;
}

.voice-card__text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
    quotes: none;
    font-style: normal;
}

.voice-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: right;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.voice-card__name::before {
    content: '\2014\00a0';
}

/* ========== ライトボックス ========== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
    color: #fff;
    font-size: 15px;
    margin-top: 12px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

.lightbox__counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .lightbox__close { top: 8px; right: 8px; }
}

/* ========== レスポンシブ ========== */

@media (max-width: 768px) {
    .facility-title {
        font-size: 20px;
    }

    .facility-quick-actions {
        flex-direction: column;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom: none;
        padding-bottom: 4px;
        border-radius: 0 !important;
    }

    .info-table td {
        padding-top: 0;
        border-radius: 0 !important;
    }
}

/* ========== 電話発信前の確認ポップアップ ========== */
.phone-confirm-modal[hidden] { display: none; }
.phone-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.phone-confirm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    animation: phoneConfirmFadeIn 0.2s ease-out;
}
.phone-confirm-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: phoneConfirmSlideUp 0.25s ease-out;
}
.phone-confirm-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
}
.phone-confirm-modal__close:hover { color: #333; }
.phone-confirm-modal__icon {
    font-size: 42px;
    color: #E8745B;
    margin-bottom: 8px;
}
.phone-confirm-modal__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #333;
}
.phone-confirm-modal__lead {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.6;
}
.phone-confirm-modal__message {
    background: #FFF6F1;
    border: 1px dashed #E8745B;
    border-radius: 8px;
    padding: 14px 12px;
    font-size: 15px;
    color: #333;
    margin: 0 0 16px;
    line-height: 1.6;
}
.phone-confirm-modal__message strong { color: #E8745B; }
.phone-confirm-modal__number {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
}
.phone-confirm-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.phone-confirm-modal__call {
    display: inline-block;
    background: #E8745B;
    color: #fff !important;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.15s;
}
.phone-confirm-modal__call:hover { background: #d5634a; }
.phone-confirm-modal__cancel {
    background: transparent;
    border: 0;
    color: #888;
    font-size: 14px;
    padding: 8px;
    cursor: pointer;
}
.phone-confirm-modal__cancel:hover { color: #333; }
@keyframes phoneConfirmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes phoneConfirmSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
