/* ------------------- 聯絡我們-標題 ------------------- */
.chapter-title {
    position: relative;
    background-image: url("/assets/images/Contact-Title/Contact-Title.jpg");
    background-size: cover;
    background-position: 0 60%;
    background-repeat: no-repeat;
}


/* ------------------- 聯絡我們-內容背景 ------------------- */
.contact-section {
    position: relative;
    background-image: url("/assets/images/Contact-Section/Contact-Section.jpg");
    background-size: cover;
    background-position: 0 10%;
    background-repeat: no-repeat;
    z-index: 0;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(4px);
    z-index: -1;

}


/* ------------------- 聯絡我們-選項 ------------------- */
.text-button {
    position: relative;
    padding: 15px 15px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #e1e1e1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-button:hover {
    background: rgba(192, 192, 192, 0.1);
}

/* 分隔線 */
.contact-header::after {
    content: "";
    display: block;
    width: 40%;
    margin: 0 auto;
    margin-top: 14px;
    border-bottom: 2px solid #e1e1e1;
    ;
}

/* Active狀態的按鈕 */
.text-button.active {
    color: #ffffff;
    font-size: 1.05rem;
}

.text-button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5px;
    border-radius: 10px;
    background-color: rgb(253, 101, 0);
}


/* ------------------- 聯絡我們-聯絡資訊 ------------------- */
.contact-container {
    padding-bottom: 2rem;
}

.contact-box {
    padding: 0;
    margin: 0 auto;
    max-width: 1000px;
}

.contact-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
}


/* 聯絡資訊區塊 */
.info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-width: 50%;
    height: 450px;
    gap: 0;
    padding: 0;
    background-color: #122141;
    color: #ffffff;
}

.info-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.info-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

.info-centered i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border: #ffffff 2px solid;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 聯絡資訊區塊-LINE */
.line-item {
    background-color: #F5F5F5;
    color: #000000;
}

.phone-item {
    background-color: #F5F5F5;
    color: rgb(0, 0, 0);
}

.line-item .content {
    font-weight: bold;
}

.line-item .label {
    color: #ddd;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

/* 聯絡資訊地圖 */
.contact-map {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* ------------------- 聯絡我們-線上報修 ------------------- */
.repair-container {
    display: flex;
    padding-bottom: 2rem;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.repair-wrapper {
    display: flex;
    margin: 0 auto;
    max-width: 1000px;
    overflow: hidden;
}

/* 重要資訊 */
.repair-notice {
    flex: 1;
    padding: 1.5rem;
    width: 1000px;
    position: relative;
    background-image: url("/assets/images/Contact-Section/Contact-Info.jpg");
    background-size: cover;
    background-position: 0 10%;
    background-repeat: no-repeat;
    color: white;
    z-index: 0;
}

.repair-notice::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

/* 表單 */
#repair-form {
    border-radius: 0 !important;
    flex: 1.15;
    padding: 1.5rem;
    background-color: #fff;
}

#repair-form input[type="text"],
#repair-form input[type="email"],
#repair-form input[type="tel"],
#repair-form textarea {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
    font-size: 1.1rem;
    border: 1.1px solid #aaa;
    background-color: transparent;
    transition: border-color 0.3s;
}

#repair-form textarea {
    height: 200px !important;
    border: 1.1px solid #aaa !important;
    resize: none;
}

/* 提交按鈕 */
#repair-form button[type="submit"] {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 10px;
    background-color: #fc7e00f4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#repair-form button[type="submit"]:hover {
    background-color: #000000f0;
}


/* 淡入淡出效果 */
.contact-container,
.repair-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: none;
}

.contact-container.active,
.repair-wrapper.active {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}


/* -------------------- 響應式設計 ------------------- */