/* Contact Form UI */

.introR .Into {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    padding: 24px 20px;
}

.introR .Into p {
    margin: 0;
    padding: 0;
}

.introR .Into form {
    width: 100%;
    margin: 0;
}

/* Override box.css for this form only */
.introR .Into form .Bx1,
.introR .Into form .Bx2 {
    clear: both !important;
    float: none !important;
    display: grid !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    box-sizing: border-box;
}

.introR .Into form .Bx2 {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
}

.introR .Into form .phone-row {
    align-items: center;
}

.introR .Into form .Bx1 {
    display: block !important;
    margin: 6px 0 14px 0 !important;
}

.introR .Into form .Bx1 hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

.introR .Into form .FL {
    float: none !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
}

.introR .Into form .FR {
    float: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0;
    color: #111827;
}

red {
    color: #dc2626;
    font-weight: 700;
    padding-right: 2px;
}

.introR .Into form .FR input[type="text"],
.introR .Into form .FR input[type="email"],
.introR .Into form .FR input[type="tel"],
.introR .Into form .FR textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
    min-height: 52px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* File input needs dedicated spacing to keep native hint text fully visible */
.introR .Into form .FR input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    line-height: 1.35;
    min-height: 52px;
}

.introR .Into form .FR input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.introR .Into form .FR input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.introR .Into form .FR textarea {
    min-height: 150px;
    resize: vertical;
}

.introR .Into form .FR input::placeholder,
.introR .Into form .FR textarea::placeholder {
    color: #94a3b8;
}

.introR .Into form .FR input:hover,
.introR .Into form .FR textarea:hover {
    border-color: #94a3b8;
    background: #fcfdff;
}

.introR .Into form .FR input[type="file"]:hover {
    border-color: #94a3b8;
    background: #fcfdff;
}

.introR .Into form .FR input:focus,
.introR .Into form .FR textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.introR .Into form .FR input[type="file"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Captcha row */
.introR .Into form .FR span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    max-width: 100%;
    height: 42px;
    margin-right: 10px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2px;
    vertical-align: middle;
}

.introR .Into form .FR .captcha-input {
    width: 170px;
    max-width: 100%;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    margin-left: 0;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a;
    text-shadow: none;
    background-color: #ffffff !important;
}

.introR .Into form .FR .captcha-input:focus,
.introR .Into form .FR .captcha-input:active {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a;
    background-color: #ffffff !important;
}

.introR .Into form .FR .captcha-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.introR .Into form .line {
    clear: both;
    width: 100%;
    margin-top: 18px;
    text-align: center;
    border: 0 !important;
}

.introR .Into form .insubmit {
    display: inline-block;
    width: 150px;
    min-width: 150px;
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    background: #3f4a52;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
    font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
    -webkit-appearance: none;
    appearance: none;
    letter-spacing: 1px;
    cursor: pointer;
    box-sizing: border-box;
    overflow: visible;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.introR .Into form .insubmit:hover {
    background: #2f3a40;
}

.introR .Into form .insubmit:active {
    background: #252f33;
}

/* Responsive */
@media only screen and (max-width: 1200px) {
    .introR .Into form .Bx2 {
        grid-template-columns: 145px minmax(0, 1fr);
        column-gap: 12px;
    }

    .introR .Into form .FL {
        font-size: 14px;
    }
}

@media only screen and (max-width: 992px) {
    .introR .Into {
        padding: 20px 16px;
    }

    .introR .Into form .Bx2 {
        grid-template-columns: 120px minmax(0, 1fr);
        row-gap: 6px;
    }

    .introR .Into form .FR input[type="text"],
    .introR .Into form .FR input[type="email"],
    .introR .Into form .FR input[type="tel"],
    .introR .Into form .FR textarea {
        font-size: 14px;
        padding: 13px 13px;
        min-height: 50px;
    }
}

@media only screen and (max-width: 860px) {
    .contact-shell .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .introR .Into {
        padding: 18px 14px;
    }

    .introR .Into form .Bx2 {
        grid-template-columns: 1fr;
        row-gap: 8px;
        align-items: start;
    }

    .introR .Into form .FL {
        font-size: 14px;
    }

    .introR .Into form .FR span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 120px;
        min-height: 42px;
        line-height: 1;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .introR .Into form .FR .captcha-input {
        width: 100%;
        display: block;
        margin-top: 8px;
    }

    .introR .Into form .insubmit {
        width: 100%;
    }
}

@media only screen and (max-width: 640px) {
    .contact-shell .contact-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-shell .contact-info-item {
        min-height: 72px;
        padding: 12px 14px;
    }

    .contact-shell .contact-info {
        padding: 0 12px;
    }

    .introR .Into {
        border-radius: 10px;
        padding: 14px 10px;
    }

    .introR .Into form .Bx2 {
        margin-bottom: 10px !important;
    }

    .introR .Into form .FL {
        text-align: left;
        font-size: 13px;
        line-height: 1.35;
    }

    .introR .Into form .FR input[type="text"],
    .introR .Into form .FR input[type="email"],
    .introR .Into form .FR input[type="file"],
    .introR .Into form .FR textarea {
        font-size: 16px;
        min-height: 50px;
    }

    .introR .Into form .FR textarea {
        min-height: 120px;
    }

    .introR .Into form .FR span {
        min-height: 40px;
        line-height: 1;
        font-size: 17px;
    }

    .introR .Into form .insubmit {
        min-width: 0;
        min-height: 46px;
        padding: 11px 18px;
        font-size: 15px;
        line-height: 1.35;
    }
}

@media only screen and (max-width: 860px) {
    .contact-shell .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media only screen and (max-width: 640px) {
    .contact-shell .contact-info {
        grid-template-columns: 1fr !important;
    }

    .contact-shell .contact-info-item {
        min-height: 72px;
    }
}

@media only screen and (max-width: 420px) {
    .introR .Into {
        padding: 12px 8px;
    }

    .introR .Into form .Bx1 {
        margin: 4px 0 10px 0 !important;
    }

    .introR .Into form .Bx2 {
        margin-bottom: 8px !important;
    }

    .introR .Into form .FR span {
        letter-spacing: 1px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Final contact-form polish */
.contact-shell,
.contact-shell * {
    font-family: "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
}

.contact-shell {
    width: min(820px, calc(100% - 24px));
    margin: 0 auto;
}

.contact-shell .contact-info {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin-bottom: 8px;
}

.contact-shell .contact-info-item {
    height: 92px;
    min-height: 92px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid #9fb7c2;
    border-radius: 12px;
    background: #dceaf0;
    box-shadow: 0 6px 18px rgba(0, 58, 87, 0.18);
}

.contact-shell .contact-info-label {
    margin-bottom: 8px;
    color: #003a57;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.contact-shell .contact-info a,
.contact-shell .contact-info-value {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-shell .contact-info a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.introR {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.introR .Into {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d7dee3;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    padding: 28px 32px 32px;
}

.introR .Into form .contact-form-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 22px;
    padding: 0 0 16px;
    border-bottom: 1px solid #ccd5d8;
}

.introR .Into form .contact-form-head h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.introR .Into form .contact-form-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.introR .Into form .Bx2 {
    margin-bottom: 14px !important;
}

.introR .Into,
.introR .Into form,
.introR .Into form .FL,
.introR .Into form .FR,
.introR .Into form .phone-row label {
    color: #111827;
}

.introR .Into form .Bx2:not(.phone-row) {
    grid-template-columns: 128px minmax(0, 1fr);
}

.introR .Into form .phone-row {
    grid-template-columns: 128px minmax(0, 1fr) 128px minmax(0, 1fr);
    column-gap: 14px;
}

.introR .Into form .FL {
    color: #334155;
    font-size: 16px;
}

.introR .Into form .FR input[type="text"],
.introR .Into form .FR input[type="email"],
.introR .Into form .FR textarea {
    border: 1px solid #bac8cc;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
    box-shadow: none;
}

.introR .Into form .FR input[type="text"]:focus,
.introR .Into form .FR input[type="email"]:focus,
.introR .Into form .FR input[type="tel"]:focus,
.introR .Into form .FR textarea:focus {
    border-color: #262626;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(38, 38, 38, 0.12);
}

.introR .Into form .FR input[type="file"] {
    border-style: dashed;
    background: #edf3f5;
}

.introR .Into form .Bx1 {
    margin: 18px 0 18px !important;
}

.introR .Into form .line {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}


.introR .Into form .captcha-fields {
    display: flex !important;
    align-items: stretch;
    gap: 10px;
}

.introR .Into form .FR .captcha-code {
    flex: 0 0 116px;
    min-width: 116px;
    width: 116px;
    height: 52px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: #edf3f5;
    color: #003a57;
    font-size: 16px;
    letter-spacing: 2px;
}

.introR .Into form .FR .captcha-input {
    flex: 1 1 180px;
    width: 180px;
    max-width: 240px;
    min-height: 52px;
    border: 1px solid #bac8cc;
    border-radius: 8px;
    background: #fbfdff !important;
    font-size: 15px;
}

.introR .Into form .FR input::placeholder,
.introR .Into form .FR textarea::placeholder,
.introR .Into form .FR .captcha-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
    -webkit-text-fill-color: #94a3b8;
}

@media only screen and (max-width: 860px) {
    .introR .Into {
        padding: 22px 16px 24px;
    }

    .introR .Into form .captcha-fields {
        flex-direction: row;
        gap: 8px;
    }

    .introR .Into form .FR .captcha-code {
        flex: 0 0 96px;
        min-width: 96px;
        width: 96px;
        height: 50px;
        font-size: 15px;
        letter-spacing: 1px;
    }

    .introR .Into form .FR .captcha-input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        min-height: 50px;
    }

    .introR .Into form .Bx2:not(.phone-row),
    .introR .Into form .phone-row {
        grid-template-columns: 1fr;
    }

    .introR .Into form .FL {
        margin-bottom: 6px !important;
        text-align: left;
    }


    .introR .Into form .line {
        justify-content: stretch;
    }

    .introR .Into form .insubmit {
        width: 100%;
    }
}

@media only screen and (max-width: 640px) {
    .introR {
        margin-top: 24px !important;
    }

    .introR .Into {
        border-radius: 12px;
        padding: 18px 12px 20px;
    }

    .introR .Into form .contact-form-head {
        align-items: center;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .introR .Into form .contact-form-head h2 {
        font-size: 19px;
    }

    .introR .Into form .Bx2 {
        margin-bottom: 12px !important;
    }

    .introR .Into form .FR input[type="text"],
    .introR .Into form .FR input[type="email"],
    .introR .Into form .FR textarea {
        border-radius: 7px;
    }
}
