/* common */
section h2 {
    font-size: 36px;
}

section h2+p {
    margin-top: 5px;
}

@media (max-width: 1480px) {
    section h2 {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    section h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {  
    section h2 {
        font-size: 24px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 20px;
    }
}

/* common */

/* form-left */
.form-area .base-maxwidth {
    gap: 50px;
}

.form-area h2+p {
    color: var(--text-light-color);
}

.form-left {
    max-width: 680px;
}

.form-list {
    margin-top: 15px;
}

.form-list li {
    position: relative;
    margin-top: 60px;
    padding-left: 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s;
}

.form-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--red-color);
    border-radius: 50%;
    transition: all .3s;
}

.form-list li.active {
    margin-top: 44px;
    padding: 24px 24px 24px 56px;
    background: var(--white-color);
    box-shadow: 0px 4px 16px 0px #DBDBDB66;
}

.form-list li.active::before {
    background: var(--white-color);
    border-width: 4px;
    left: 24px;
    top: 28px;
}

.form-list li h3 {
    font-size: 18px;
}

.form-list li p {
    color: #525252;
}

/* form-left */

/* form-container */
.form-container {
    --padding-x: 48px;
    --padding-bttom: 50px;
    --input-height: 48px;

    position: relative;
    min-height: 866px;
    max-width: 800px;
    width: 100%;
    padding: 36px var(--padding-x) calc(var(--padding-bttom) + 80px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-title {
    text-align: center;
    margin-bottom: 10px;
    color: #111;
}

.form-row {
    margin-bottom: 30px;
}

.form-row.form-row-last {
    margin-bottom: 0;
}

[id*="messageType"]+.form-row {
    margin-top: 30px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group+.form-group {
    margin-top: 30px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-container label {
    font-size: 16px;
    color: var(--text-light-color);
}

.form-container label .required {
    color: var(--red-color);
    margin-left: 4px;
}

.form-container input,
.form-container textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: var(--light-color);
    /* 对应页面的主题 */
    box-shadow: 0 0 5px 3px color-mix(in srgb, var(--light-color) 15%, white);
}

.form-container input[id*="country"],
.form-container input[id*="country"]:focus {
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: calc(var(--input-height) - 2px);
}

.reset-icon {
    display: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    color: #a9a9a9;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all .3s;
}

.reset-icon:hover {
    color: var(--light-color);
}

.form-box.has-value .reset-icon,
.select-trigger.has-value .reset-icon {
    display: block;
}

.form-box {
    --reset-icon-size: 16px;
    --input-pr-size: 16px;
    --real-input-pr: calc(var(--reset-icon-size) + var(--input-pr-size));

    position: relative;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding-right: var(--input-pr-size);
}

.form-box .reset-icon {
    position: absolute;
    right: 12px;
    top: 16px;
    margin: 0;
}

.form-box input,
.form-box textarea {
    padding-right: var(--real-input-pr);
}



/* 自定义下拉框 - 匹配截图布局 */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    height: var(--input-height);
}

.select-trigger:focus-within,
.select-trigger.active {
    border-color: var(--light-color);
    box-shadow: 0 0 5px 3px color-mix(in srgb, var(--light-color) 15%, white);
}

.select-trigger.country-trigger {
    padding-top: 0;
    padding-bottom: 0;
}

/* 内部输入框：透明、无边框、不破坏样式 */
.select-trigger .search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #000;
    padding: 0;
}

.select-trigger .search-input::placeholder {
    color: #767676;
}

.select-trigger .flag[style*="background-image: url"] {
    width: 20px;
    height: 14px;
    background-size: cover;
    background-position: center;
    margin-right: 12px;
}

.select-trigger .text {
    display: block;
    width: 100%;
    flex: 1;
    color: #a9a9a9;
    white-space: nowrap;
    overflow: hidden;
}

.select-trigger .flag[style*="background-image: url"]+.text {
    color: #000;
}

.select-trigger .arrow {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-light-color);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.select-trigger.active .arrow {
    transform: rotate(180deg);
}

/* 搜索框样式 */
.select-search-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    background: #fff;
}

.select-search-trigger input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 8px;
    font-size: 14px;
    background: transparent;
}

.select-search-trigger .flag {
    width: 22px;
    height: 16px;
    background-size: cover;
    background-position: center;
    margin-right: 8px;
}

.select-search-trigger .arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-light-color);
    transition: transform 0.2s;
}

.select-search-trigger.active .arrow {
    transform: rotate(180deg);
}

.select-options .no-result {
    padding: 10px 15px;
    color: var(--text-light-color);
    font-size: 14px;
    text-align: left;
    cursor: default;
}

/* 下拉选项 - 双行布局 */
.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.select-options.show {
    display: block;
}

.option-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.option-item:hover {
    background: #f7fafc;
}

.option-item .flag {
    width: 32px;
    height: 22px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    flex-shrink: 0;
}

.option-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-item .en-name {
    font-size: 18px;
    color: #111;
    line-height: 1.2;
}

.option-item .cn-name {
    font-size: 14px;
    color: var(--text-light-color);
    line-height: 1.2;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .option-item .en-name {
        font-size: 16px;
    }

    .option-item .cn-name {
        font-size: 13px;
    }
}

.form-container textarea {
    min-height: 120px;
    resize: vertical;
}

.error-message {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 12px;
    color: var(--red-color);
}

.submit-box {
    position: absolute;
    width: calc(100% - var(--padding-x) * 2);
    bottom: var(--padding-bttom);
    left: 50%;
    transform: translateX(-50%);
}

.submit-btn {
    max-width: 100%;
    width: 100%;
    border: none;
    font-weight: 700;
}

.success-message {
    position: absolute;
    top: 108%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #38a169;
    display: none;
}

/* form-container */

/* need-wrapper */
.need-wrapper {
    padding: 35px;
    border-radius: 16px;
    background: var(--red-color);
    color: var(--white-color);
    margin-top: 120px;
}

.need-wrapper h4 {
    font-size: 32px;
}

.need-wrapper .base-btn {
    flex-shrink: 0;
    margin-left: 20px;
}

/* need-wrapper */

@media (max-width: 1200px) {
    .form-area .base-maxwidth {
        flex-direction: column;
        gap: 50px;
    }

    .form-left,
    .form-container {
        max-width: 100%;
        width: 100%;
    }
}

/* 1024px 平板 */
@media (max-width: 1024px) {
    .form-container {
        --padding-x: 32px;
        --padding-bottom: 40px;

        padding-top: 30px;
    }

    .form-group+.form-group {
        margin-top: 24px;
    }

    .need-wrapper {
        padding: 28px;
        margin-top: 45px;
    }

    .success-message {
        font-size: 12px;
    }
}

/* 768px 手机 */
@media (max-width: 768px) {
    .form-area h2+p {
        font-size: 16px;
    }

    .form-list li.active,
    .form-list li {
        margin-top: 30px;
    }

    .form-list li.active {
        padding: 16px 16px 16px 45px;
    }

    .form-list li::before {
        left: 10px;
        top: 2px;
    }

    .form-list li.active::before {
        left: 16px;
        top: 18px;
    }

    .form-container {
        --padding-x: 20px;
        --padding-bottom: 36px;

        padding-top: 24px;
        min-height: auto;
    }

    .form-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .form-row {
        margin-bottom: 24px;
    }

    .form-group+.form-group {
        margin-top: 20px;
    }

    .need-wrapper {
        padding: 24px 20px;
        margin-top: 40px;
    }

    .need-wrapper h4 {
        font-size: 24px;
        text-align: center;
    }
}

/* 380px 小屏手机 */
@media (max-width: 480px) {
    .form-container {
        --padding-x: 16px;

        padding-top: 20px;
    }

    .need-wrapper {
        flex-direction: column;
        padding: 20px 16px;
    }

    .need-wrapper .base-btn {
        margin: 20px 0 0;
    }
}

/* also-area */
.also-area {
    background: var(--text-secondary-color);
}

.also-list {
    gap: 22px 50px;
    margin-top: 30px;
}

.also-list li {
    flex: 1;
    padding: 100px 40px 65px;
    background: var(--white-color);
    border-radius: 20px;
}

.also-list li h3 {
    margin: 40px 0 10px;
    font-size: 26px;
}

.also-list li p {
    min-height: 63px;
    color: var(--text-light-color);
}

.also-list .base-btn {
    margin-top: 25px;
}

/* also-area 响应式适配 */
@media (max-width: 1480px) {
    .also-list {
        flex-wrap: wrap;
        gap: 30px;
    }

    .also-list li {
        flex: 1 1 calc(50% - 15px);
        padding: 70px 30px 50px;
    }
}

@media (max-width: 1024px) {
    .also-list li {
        padding: 60px 25px 45px;
    }

    .also-list li h3 {
        margin: 30px 0 10px;
    }
}

@media (max-width: 768px) {
    .also-list {
        margin-top: 20px;
    }

    .also-list li {
        flex: 1 1 100%;
        padding: 50px 20px 40px;
    }

    .also-list .base-btn {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .also-list li {
        padding: 40px 16px 35px;
    }
}

/* also-area */

/* map-area */
.map-area {
    position: relative;
    padding: 0;
    margin-bottom: -94px;
}

.map-area>img {
    display: block;
    width: 100%;
    min-height: 350px;
    max-height: 400px;
    object-fit: cover;
}

.map-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.anytime-list {
    gap: 30px;
}

.anytime-list li {
    width: 306px;
    flex: 1;
}

.anytime-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--light-color);
    overflow: hidden;
}

.anytime-image img {
    width: 38px;
    height: 38px;
}

.anytime-list h3 {
    margin: 8px 0;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-light-color);
}

.anytime-list p {
    font-weight: 700;
    font-size: 20px;
}

/* map-area 响应式适配 */
@media (max-width: 1480px) {
    .anytime-list {
        gap: 24px;
    }

    .anytime-list li {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .map-content {
        top: 10%;
        flex-direction: column;
    }

    .map-area>img {
        min-height: 560px;
        max-height: 580px;
    }

    .map-content h2 {
        text-align: center;
    }

    .anytime-list {
        gap: 20px;
        margin-top: 30px;
    }

    .anytime-list li {
        width: 260px;
    }
}

@media (max-width: 991px) {
    .map-area {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .anytime-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .anytime-list li {
        flex: 0 0 calc(50% - 15px);
        max-width: 280px;
    }

    .anytime-image {
        width: 64px;
        height: 64px;
    }

    .anytime-image img {
        width: 34px;
        height: 34px;
    }

    .anytime-list p {
        font-size: 18px;
    }
}

/* 统一改成 480px 断点 */
@media (max-width: 480px) {
    .map-area>img {
        min-height: 620px;
    }

    .anytime-list li {
        flex: 0 0 100%;
        max-width: 260px;
    }

    .anytime-image {
        width: 60px;
        height: 60px;
    }

    .anytime-list h3 {
        font-size: 15px;
    }

    .anytime-list p {
        font-size: 17px;
    }
}

/* map-area */

/* submit-dialog */
.submit-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

/* 显示 */
.submit-dialog.show {
    display: flex;
}

/* 成功时只显示 success，隐藏 error */
.submit-dialog.show.success .error {
    display: none;
}

.submit-dialog.show.success .success {
    display: block;
}

/* 失败时只显示 error，隐藏 success */
.submit-dialog.show.error .success {
    display: none;
}

.submit-dialog.show.error .error {
    display: block;
}

.submit-dialog .base-maxwidth {
    position: relative;
    max-width: 700px;
    width: 95%;
    padding: 60px 50px;
    border-radius: 20px;
    background: var(--white-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.submit-dialog>div>img {
    width: 135px;
    display: block;
    margin: 0 auto;
}

.submit-dialog h2 {
    margin: 30px auto 16px;
    font-size: 18px;
}

.submit-dialog p {
    color: var(--text-light-color);
}

.submit-dialog p a {
    font-weight: 700;
    color: var(--light-color);
}

.submit-dialog p a:hover {
    text-decoration: underline;
}

/* 弹窗关闭按钮 */
.dialog-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-color);
    transition: all 0.2s;
    z-index: 10;
}

.dialog-close-btn:hover {
    background: var(--text-secondary-color);
}

/* submit-dialog */

@keyframes tada {
    0% {
        box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 12px;
    }

    20% {
        box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 30px;
    }

    40% {
        box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 30px;
    }

    60% {
        box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 30px;
    }

    to {
        box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 12px;
    }
}

.animate-tada {
    -webkit-animation: tada 1s both !important;
    animation: tada 1s both !important;
}