/* 仅初次触发的滚动进场动画 */
.fade-in-once {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-once.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 顶部 Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/static/appar/images/contactus/banner.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    padding: 14rem 0 5rem;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 80%;
    margin: 0 auto;
}

.hero-title {
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.9;
}

.models {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #808080;
    gap: 1.25rem;
}

.models-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.modles2 {
    border-bottom: 1px solid #808080;
}

.modles2 .form-label {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
    margin-bottom: 0.75rem !important;
    padding-right: 0;
    white-space: normal;
}

.modles2 textarea.form-control {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

/* 表单样式 */
.form-section {
    padding: 4rem 0;
}

.form-label {
    /*
      固定標籤欄寬度（英文長標籤如 Country/Region、Company Name 要放得下）。
      不可再用 max-width + nowrap：盒子被裁短時文字會溢出去蓋住 placeholder。
    */
    flex: 0 0 15rem;
    width: 15rem;
    min-width: 15rem;
    max-width: none;
    box-sizing: border-box;
    white-space: nowrap;
    font-weight: 500;
    margin-bottom: 0 !important;
    color: #0D0D0D;
}

.models > .form-control,
.models > .form-select,
.models > .models-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.form-control,
.form-select {
    border: none;
    border-radius: 0;
    padding: 0.75rem 0;
    background: transparent;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #ff3b20;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    height: 24px;
    color: #dc3545;
    margin-top: 0.25rem;
    align-items: center;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: flex;
}

.form-required-hint {
    display: flex;
    align-items: center;
}
.invalid-feedback img{
    width: 20px;
    height: 24px;
    margin-right: 1.0rem;
}

.form-required-hint img {
    width: 20px;
    height: 24px;
    margin-right: 1.0rem;
}
.form-textarea {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1rem;
    min-height: 120px;
}

.text-danger {
    color: #FF2200 !important;
}

.form-check {
    align-items: flex-start;
    border: none;
}

.form-check-input:checked {
    background-color: #ff3b20;
    border-color: #ff3b20;
}

/* 提交按钮 */
.submit-btn {
    background-color: #ff3b20;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    float: right;
}

.submit-btn:hover {
    background-color: #e6351a;
}
.submit-btn img{
    width: 1.5rem;
    height: 1.5rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
}

.contactus {
    text-align: center;
    font-weight: 500;
    margin-bottom: 2rem;
}

.contact-form-row {
    align-items: flex-start;
}

.contact-title-col {
    align-self: flex-start;
}

.bi-arrow-right {
    width: 1.2rem !important;
    height: 1.2rem !important;
}

.tip {
    width: 1.1rem;
}
.container{
    padding:0 3rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .models {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .form-label {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .models > .form-control,
    .models > .form-select,
    .models > .models-input-wrap {
        width: 100%;
    }

    .contactus {
        text-align: center;
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 2rem;
    }

    .hero-banner {
        padding: 6rem 0 1.5rem;
    }

    .hero-content {
        width: 90%;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .form-section {
        padding: 2rem 0;
    }

    .submit-btn {
        float: none;
        width: 100%;
    }
    .container{
        padding:0 2rem;
    }
}
/* 默认：请选择 灰色 */
#country {
    color: #808080;
}
/* 標題「聯繫我們」：桌機/平板48px，手機30px，medium */
.contact-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
}

@media (min-width: 768px) {
  .contact-title {
    white-space: nowrap;
  }
}

/* 輸入框文字：桌機/平板24px，手機18px，regular */
.contact-input-text {
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 400;
}
.form-control,.form-select{
     font-size: clamp(18px, 2vw, 24px) !important;
}