/* ==================== Google Fonts ==================== */
/* Fonts are now imported via HTML link tag */

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:  'Noto Sans TC','Noto Sans',-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei',
        '微軟正黑體', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-green-L);
    background: url('../assets/img/Web.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== Color Variables ==================== */
:root {
    --primary-500: #EFFAF7;
    --primary-600: #009777;
    --primary-700: #007d62;
    --secondary-golden: #ff8811;
    --secondary-golden-light: #FFF8F0;
    --black-100: #1a1a1a;
    --black-80: #4d4d4d;
    --black-60: #808080;
    --black-20: #e0e0e0;
    --neutral-20: #f5f5f5;
    --neutral-90: #333333;
    --bg-green-L: #f0f9f7;
    --white: #ffffff;
    --bg-gray: #f5f5f5;
}

/* ==================== Container ==================== */
.selection-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {

    .selection-container {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 80px 20px 40px 20px;
    }
}

/* ==================== Header ==================== */
.selection-header {
    width: 100%;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selection-logo {
    display: flex;
    align-items: center;
}

.selection-logo-img {
    width: 180px;
    height: 33px;
    display: block;
}

.selection-user-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

/* ==================== Content ==================== */
.selection-content {
    width: 100%;
    max-width: 100%;
    /* Changed from 1200px to 100% for full width */
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
}

/* ==================== Title Block ==================== */
.selection-title-block {
    text-align: left;
    margin-bottom: 0px;
}

.selection-title {
    color: var(--black-100);
    margin-bottom: 8px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Noto Serif TC', serif;
}

.selection-subtitle {
    font-size: 28px;
    font-weight: 500;
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(90deg, #116051 0%, #1BBf9C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* ==================== Cards ==================== */
.selection-cards {
    width: 100%;
    gap: 24px;
    display: flex;
    align-items: stretch;
    flex: 1;
}

.selection-card {
    position: relative;
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px 0 rgba(0, 151, 119, 0.1);
    border: none;
    isolation: isolate;
    border-radius: 24px;
    padding: 12px;
    text-align: left;
    transition: all 0.3s ease;
    bottom: 8px;
    display: flex;
    flex-direction: column;
}

.selection-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    /* Border width */
    background: linear-gradient(143.37deg, #FFFFFF 33.21%, #42D8B6 92.44%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    /* Behind content */
}

.selection-card-header {
    width: 100%;
    margin-bottom: 12px 0;
}

.selection-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black-80);
}

.selection-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 24px;
    padding: 24px;
}

.selection-card-content h3 {
    color: var(--neutral-90);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 500;
}

.selection-card-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    border: 1px solid #1BBf9C;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    min-width: 288px;
}

.selection-card-button.enterprise {
    background: var(--white);
    color: #1BBf9C;
}

.selection-card-button.enterprise:hover {
    background: var(--primary-500);
    color: #1BBf9C;
}

.selection-card-button.enterprise:active,
.selection-card-button.enterprise.active {
    background: #1BBf9C;
    color: var(--white);
}

.selection-card-button.enterprise:active img,
.selection-card-button.enterprise.active img {
    filter: brightness(0) invert(1);
}

/* ==================== Location Buttons ==================== */
.selection-location-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selection-location-btn {
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--secondary-golden);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    min-width: 288px;
    color: var(--secondary-golden);
}

.selection-location-btn:hover {
    background: var(--secondary-golden-light);
    border-color: var(--secondary-golden);
    color: var(--secondary-golden);
}

.selection-location-btn:active,
.selection-location-btn.active {
    background: var(--secondary-golden);
    border-color: var(--secondary-golden);
    color: var(--white);
}

.selection-location-btn:active img,
.selection-location-btn.active img {
    filter: brightness(0) invert(1);
}

/* ==================== Footer ==================== */
.selection-footer {
    width: 100%;
    background: transparent;
    padding: 48px 40px 32px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--black-20);
}

.selection-footer-locations {
    width: 100%;
    max-width: 100%;
    /* Changed from 1200px to 100% for full width */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.selection-footer-location {
    display: flex;
    flex-direction: column;
}

.location-title {
    color: var(--black-80);
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--black-60);
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 400;
}

.location-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--black-60);
    font-size: 14px;
    font-weight: 400;
}

.selection-footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    color: var(--black-60);
    font-size: 14px;
    font-weight: 400;
}
/* AI 智能預約彈窗樣式 */
    .dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    }

    .dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
    }

    .dialog-surface {
    width: 355px;
    max-width: 92vw;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.28);
    overflow: hidden;
    transform: scale(0.78);
    opacity: 0;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .dialog-overlay.active .dialog-surface {
    transform: scale(1);
    opacity: 1;
    }

    .close-box{
        display: flex;
        justify-content: flex-end;
    }
    .dialog-close-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
    z-index: 10;
    }

    .dialog-content {
    padding: 16px 24px;
    text-align: center;
    }

    .dialog-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    }

    .dialog-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 28px;
    }

    .highlight-box {
    background: #FFF8F0;
    border: 1px solid #FFEDD6;
    border-radius: 16px;
    padding: 12px;
    margin: 24px 0 32px;
    text-align: left;
    }

    .highlight-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #222;
    line-height: 1.5;
    }

    .highlight-header:last-child {
    margin-bottom: 0;
    }

    .check-icon {
    width: 14px;
    height: 14px;
    margin: 4px 0;
    flex-shrink: 0;
    }

    /* 按鈕 */
    .btn-fill-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: white;
    background: #1BBF9C;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    }

    .btn-wrapper {
    margin-top: 12px;
    }

    .btn-text-underline {
    color: #474847;
    background: none;
    border: none;
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 12px;
    }
    
    body.dialog-open { 
        overflow: hidden; 
    }

/* ==================== Responsive Design ==================== */

/* Tablet */

@media (max-width: 1024px) {
    .selection-container {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 60px 32px;
    }

    .selection-header {
        padding: 0;
        margin-bottom: 40px;
    }

    .selection-content {
        flex-direction: column;
        padding: 0;
        gap: 48px;
        text-align: center;
    }

    .selection-title-block {
        flex: unset;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }

    .selection-title {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .selection-subtitle {
        font-size: 20px;
    }

    .selection-cards {
        flex-direction: row;
        gap: 32px;
    }

    .selection-card {
        padding: 24px;
    }

    .selection-footer {
        margin-top: 48px;
    }

    .selection-footer-locations {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    body {
        background: url('../assets/img/bg-mobile.png') no-repeat center center fixed;
        background-size: cover;
    }
    .selection-card-button{
        min-width: 28px;
    }
    .selection-location-btn{
        padding: 12px;
        min-width: 28px;
    }

    .selection-container {
        width: 100vw;
        min-height: 100vh;
        margin: 0;
        padding: 80px 20px 40px 20px;
    }

    .selection-content {
        gap: 32px;
    }

    .selection-cards {
        flex-direction: column;
        /* Stack cards on mobile */
    }

    .selection-header {
        padding: 0;
    }

    /* .selection-logo-subtitle {
        display: none;
    }

    .selection-logo-text {
        font-size: 16px;
    } */

    .selection-title {
        font-size: 32px;
    }

    .selection-subtitle {
        font-size: 16px;
    }

    .selection-title-block {
        margin-bottom: 32px;
    }

    .selection-card {
        padding: 12px;
    }

    .selection-card-content h3 {
        font-size: 18px;
    }

    .selection-location-buttons {
        grid-template-columns: 1fr;
    }

    .selection-footer {
        padding: 32px 20px 24px;
        margin-top: 48px;
    }

    .selection-footer-locations {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    
}