/* =========================================================
   CONTACT HERO
   ========================================================= */

.page-hero {
    background: #0f1115;
    position: relative;
    padding: 130px 0 90px;
}

.page-hero .overlay {
    display: none;
}


/* =========================================================
   DUAL COLUMN LAYOUT
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 90px;
    align-items: start;
    position: relative;
}

/* 手機版 */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


/* =========================================================
   FORM AREA
   ========================================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-size: 13px;
    color: #9ca3af;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* 高端輸入框 */

.form-group input,
.form-group select,
.form-group textarea {
    background: #0f1318;
    border: 1px solid rgba(255,255,255,0.06);
    color: #e5e7eb;
    padding: 16px 18px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* 高級 focus 效果 */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border: 1px solid #e1111a;
    box-shadow: 0 0 0 3px rgba(225,17,26,0.15);
}


/* =========================================================
   BUTTON
   ========================================================= */

.submit-btn {
    margin-top: 10px;
    display: inline-block;
    width: auto;
    border: none;
    cursor: pointer;
}


/* =========================================================
   RIGHT SIDE – PREMIUM INFO PANEL
   ========================================================= */

.contact-right {
    background: linear-gradient(
        180deg,
        rgba(22,25,31,0.85),
        rgba(16,18,22,0.95)
    );
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 45px;
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.contact-right h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-block {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 22px;
}

.info-block:last-child {
    border-bottom: none;
}

.info-title {
    font-size: 12px;
    color: bisque;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-note {
    margin-top: 40px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.8;
}


/* =========================================================
   SUBTLE RED GLOW (科技感空氣層)
   ========================================================= */

.page-section {
    position: relative;
}

.page-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            600px 300px at 85% 15%,
            rgba(225,17,26,0.08),
            transparent 70%
        );
    pointer-events: none;
}
/* =========================================================
   FORM SECTION TITLE
   ========================================================= */

.form-section-title {
    margin-bottom: 10px;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   FLOATING LABEL STYLE
   ========================================================= */

.floating-group {
    position: relative;
}
/* 讓 select 也支援 floating */

.floating-group select:focus + label,
.floating-group select:valid + label {
    top: -8px;
    font-size: 12px;
    color: #ff2b2b;
}
.floating-group select {
    appearance: none;
    background-color: transparent;
}

.floating-group select:required:invalid {
    color: transparent;
}
.floating-group input,
.floating-group select,
.floating-group textarea {
    width: 100%;
    padding: 20px 18px 12px 18px;
    background: #0f1318;
    border: 1px solid rgba(255,255,255,0.25);
    color: #e5e7eb;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.floating-group label {
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.25s ease;
}

/* 浮動效果 */
.floating-group input:focus + label,
.floating-group input:not(:placeholder-shown) + label,
.floating-group textarea:focus + label,
.floating-group textarea:not(:placeholder-shown) + label,
.floating-group select:focus + label,
.floating-group select:not([value=""]) + label {
    top: 6px;
    font-size: 11px;
    color: #e1111a;
}

/* 高端 focus */
.floating-group input:focus,
.floating-group select:focus,
.floating-group textarea:focus {
    outline: none;
    border: 1px solid #e1111a;
    box-shadow: 0 0 0 3px rgba(225,17,26,0.15);
}

.textarea-group textarea {
    resize: vertical;
}
.company-logo-bg {
    display: block;
    height: 40px;
    width: 180px;
    background-image: url("/static/images/HR.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

.company-card .pb-logo-bg {
    display: block;
    height: 40px;
    width: 180px;
    background-image: url("/static/images/pb.logo.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 50%;
    margin-bottom: 16px;
}
.pb-desc{
    color:#e5e7eb;
}
/* =========================================
   Industrial Success Panel v2
========================================= */

.form-success {
    position: relative;
    margin-top: 60px;
    padding: 70px 60px;
    background: linear-gradient(145deg, #0e0e0e, #151515);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    animation: fadeIn 0.6s ease;
}

.form-success::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #e1111a,
        transparent
    );
    animation: scanTop 3s linear infinite;
}

.success-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.success-line {
    width: 80px;
    height: 2px;
    margin: 0 auto 30px auto;
    background: #e1111a;
    box-shadow: 0 0 20px rgba(225,17,26,0.6);
}

.form-success h3 {
    font-size: 16px;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 25px;
}

.form-success p {
    font-size: 15px;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 40px;
}

.success-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.success-meta span {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #777;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

/* Animations */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scanTop {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================
   Industrial Loading Button
========================================= */

.submit-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        #e1111a,
        transparent
    );
    animation: scanLine 1.2s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================================
   CONTACT MOBILE FIX
   ========================================================= */

@media (max-width: 768px) {

    .contact-right {
        padding: 30px 22px;
    }

    .form-success {
        padding: 50px 22px;
    }

}
.contact-layout {
    width: 100%;
}

.page-hero.contact {
    min-height: auto;
    padding: 70px 0 15px;
}
.page-section.contact {
    padding: 10px 0;
}
.page-contact .recaptcha-notice {
    margin-top: 80px !important;
}
/* Hide reCAPTCHA badge (Google-compliant way) */
.grecaptcha-badge {
    visibility: hidden !important;
}
.recaptcha-notice {
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.48);
    margin-top: 60px;
    letter-spacing: 0.4px;
    line-height: 1.6;
}

.recaptcha-notice a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recaptcha-notice a:hover {
    color: #e1111a;
}