﻿:root {
    --accent: #3cf1dc;
    --text-main: #d1d1d1;
    --text-sub: #bdbdbd;
    --line: #2f2f2f;
    --panel-line: #3a3a3a;
}

/* 送出按鈕 */
.form_actions {
    margin-top: 2.2vw;
    text-align: center;
}

.btn-send {
    min-width: 220px;
    height: 46px;
    padding: 0 28px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: transparent;
    color: var(--accent);
    font-size: 18px;
    letter-spacing: .15em;
    cursor: pointer;
    transition: all .2s ease;
}

    .btn-send:hover {
        background: var(--accent);
        color: #000;
    }

/* 據點表格區（獨立區塊，不影響其他欄位） */
.testDrive-form .form_wrap--dealerTable {
    margin-top: 0.8vw;
    padding: 0 5vw;
    display: block;
}

    .testDrive-form .form_wrap--dealerTable > .infoBlock {
        width: 100%;
        max-width: none;
        margin: 0; /* 左切齊 */
    }

/* 表格容器 */
.testDrive-form .infoBlock .infoBlock-content {
    width: 100%;
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

/* 補 row/col 基本排版 */
.testDrive-form .infoBlock .row {
    margin: 0;
}

.testDrive-form .infoBlock .col {
    float: none;
    width: auto;
    padding: 0;
}

/* 桌機欄位 */
.testDrive-form .infoBlock-tr {
    display: grid;
    grid-template-columns: 64px 120px minmax(260px, 1fr) 130px 90px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

    .testDrive-form .infoBlock-tr:last-child {
        border-bottom: 0;
    }

.testDrive-form .infoBlock-header {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 500;
}

.testDrive-form .infoBlock-td {
    padding: 12px 10px;
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.45;
}

.testDrive-form .infoBlock-local,
.testDrive-form .infoBlock-phone,
.testDrive-form .infoBlock-map {
    text-align: center;
}

/* 隱藏舊按鈕，保留 radio 選擇 */
.testDrive-form .infoBlock-radio .btn {
    display: none;
}

.testDrive-form .infoBlock-radio {
    display: flex;
    justify-content: center;
}

    .testDrive-form .infoBlock-radio input[type='radio'] {
        width: 18px;
        height: 18px;
        accent-color: var(--accent);
        cursor: pointer;
    }

.testDrive-form .infoBlock-map a {
    color: var(--accent);
    text-decoration: none;
    font-size: 20px;
}

.testDrive-form .infoBlock-map .fa-map-marker-alt:before {
    content: "📍";
}

/* 手機版（合併為單一區塊） */
@media only screen and (max-width: 750px) {
    .form_actions {
        margin-top: 20px;
    }

    .btn-send {
        min-width: 180px;
        height: 40px;
        font-size: 16px;
    }

    .testDrive-form .form_wrap--dealerTable {
        margin-top: 8px;
        padding: 0 20px;
    }

    .testDrive-form .infoBlock-tr {
        grid-template-columns: 36px 1fr 90px 40px;
        grid-template-areas:
            "radio local phone map"
            "radio add   add   add";
    }

    .testDrive-form .infoBlock-header {
        display: none;
    }

    .testDrive-form .infoBlock-radio {
        grid-area: radio;
    }

    .testDrive-form .infoBlock-local {
        grid-area: local;
        text-align: left;
    }

    .testDrive-form .infoBlock-add {
        grid-area: add;
    }

    .testDrive-form .infoBlock-phone {
        grid-area: phone;
        text-align: right;
    }

    .testDrive-form .infoBlock-map {
        grid-area: map;
        text-align: center;
    }

    .testDrive-form .infoBlock-td {
        font-size: 14px;
        padding: 10px 8px;
    }
}

input[type="date"].input {
    appearance: auto;
    -webkit-appearance: auto;
}
