/* contact.css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background: #f8fcff;
}

.contact-page {
    min-height: 71.1vh;
    padding: 85px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-title {
    font-size: 35px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #4BAEE5;
}

.contact-card {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 32px;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

/* 左側資訊區 */
.contact-info {
    flex: 0 0 36%;
    background: #F1F8FE;
    border-radius: 16px;
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-title {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #4BAEE5;
}

.info-desc {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
}

.info-block {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 17px;
    color: #111827;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.info-icon.circle {
    border-radius: 50%;
}

.info-icon.square {
    border-radius: 6px;
}

.info-text {
    line-height: 1.4;
}

/* 右側表單區 */
.custom-contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-form-row {
    display: flex;
    gap: 16px;
}

.custom-form-row input,
.custom-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 17px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-form-row input::placeholder,
.custom-form-row textarea::placeholder {
    color: #9ca3af;
}

.custom-form-row input:focus,
.custom-form-row textarea:focus {
    border-color: #38a3ff;
    box-shadow: 0 0 0 1px rgba(56, 163, 255, 0.2);
}

.custom-form-row textarea {
    resize: vertical;
    min-height: 160px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions button {
    min-width: 96px;
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    background: #4BAEE5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.form-actions button:hover {
    background: #2790ee;
}

.form-actions button:active {
    transform: translateY(1px);
}

.hotline-bar {
    width: 100%;
    max-width: 1200px;
    height: 70px;
    margin-top: 4px;
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.hotline-label {
    flex: 1 0 auto;
    padding: 14px 32px;
    color: #4BAEE5;
    font-weight: 700;
    font-size: 25px;
    display: flex;
    align-items: center;
}

.hotline-items {
    flex: 2;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    font-size: 17px;
    color: #111827;
}

.hotline-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hotline-icon {
    font-size: 16px;
}

/* RWD */
@media (max-width: 800px) {
    .contact-card {
        flex-direction: column;
    }

    .contact-info {
        flex-basis: auto;
    }

    .form-row {
        flex-direction: column;
    }

    .hotline-bar {
        flex-direction: column;
    }

    .hotline-label {
        width: 100%;
        justify-content: center;
    }

    .hotline-items {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 16px;
    }
}