/* Contact Page Styles */
.contact-page {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
}

/* Banner Section */
.contact-banner {
    position: relative;
    width: 100%;
    height: 34.8vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-banner-content {
    position: absolute;
    z-index: 2;
    text-align: left;
    color: white;
    top: 13.2vw;
    left: 19.2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-logo img {
    width: 13.6vw;
    margin-bottom: 2.29vw;
}

.contact-title {
    font-size: 3.4375vw;
    margin: 0;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 0.85;
    text-transform: uppercase;
    margin-bottom: auto;
}

.contact-arrow {
    margin: 1.04vw 0;
    width: 5.21vw;
    height: 1.04vw;
    color: #FD5000;
}

.contact-arrow svg {
    width: 100%;
    height: 100%;
}

.contact-subtitle {
    font-size: 1.25vw;
    color: #FFFFFF;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Circular Logo Design Element */
.contact-banner-circle {
    position: absolute;
    top: 5.21vw;
    right: 8.33vw;
    width: 10.42vw;
    height: 10.42vw;
    z-index: 3;
}

.circle-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.13vw;
    height: 3.13vw;
    background: #FD5000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.circle-logo img {
    width: 1.56vw;
    height: auto;
}

.circle-text {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.circle-text svg {
    width: 100%;
    height: 100%;
}

.circle-text text {
    font-size: 0.73vw;
    font-weight: 400;
    fill: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Banner Logo旋转动画 */
.contact-banner-logo {
    position: absolute;
    top: 5.21vw;
    right: 13.33vw;
    z-index: 3;
    width: auto;
    height: auto;
}

.contact-banner-logo img {
    width: 14.51vw;
    height: auto;
    animation: rotate 20s linear infinite;
    display: block;
}

/* Contact Info Section */
.contact-info-section {
    background: #fff;
    padding: 10.83vw 10.41vw;
    width: 100%;
}

.contact-info-container {
    display: flex;
    align-items: start;
    flex-direction: row;
    gap: 1.85vw;
}



.email-card-container{
    width: 21.66vw;
    height: 27.1875vw;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 0 0 auto;
    transform: translateY(-5.8vw);
    overflow: hidden;
}

.email-card {
    background: url('../images/contact/notepad-buttom.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 3.6885vw;
    padding-left: 2.7vw;
    width: 21.66vw;
    height: 21.406vw;
    color: white;
    position: relative;
    flex: 0 0 auto;
    z-index: 1;
}

.email-card-top {
    position: absolute;
    top: 3vw;
    left: -2.7vw;
    width: 100%;
    height: 5.811vw;
    background: url('../images/contact/notepad-top.png');
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(100%) rotate(0deg);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), top 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.email-card-container.animate .email-card-top {
    top: 0.6vw;
    transform: translateY(0) rotate(-13deg);
}

.email-card > .email-contact-item {
    position: relative;
    z-index: 2;
}

.email-card-header {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    background: #000;
    border-radius: 1.56vw;
    padding: 0.52vw 1.04vw;
    margin-bottom: 1.56vw;
    width: fit-content;
}

.email-card-header svg {
    width: 1.04vw;
    height: 1.04vw;
}

.email-card-title {
    font-size: 0.94vw;
    font-weight: 500;
    margin: 0;
}

.email-contact-item {
    margin-bottom: 1.04vw;
    padding-left: 1.14vw;
    position: relative;
}
.email-contact-item::before {
    content: '';
    display: block;
    width: 0.41vw;
    height: 0.41vw;
    background: #ffffff;
    position: absolute;
    top: 0.7vw;
    left: 0;
}

.email-contact-item:last-child {
    margin-bottom: 0;
}

.email-contact-label {
    margin-bottom: 0.26vw;
    display: block;
    font-weight: 400;
    font-size: 1.25vw;
    line-height: 150%;
}

.email-contact-value {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35vw;
    line-height: 150%;
    letter-spacing: 0;
    vertical-align: middle;
}

.email-contact-value:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    flex: 1;
    background: #F5F5F5;
    margin-bottom: 2.08vw;
    padding: 3.43vw 5.2vw;
    border-radius: 0.9375vw;
}

.contact-form-intro {
    margin-bottom: 2.08vw;
}

.contact-form-intro h2 {
    color: #000;
    font-family: Roboto;
    font-weight: 500;
    font-size: 1.35vw;
    line-height: 150%;
    margin: 0;
    margin-bottom: 2.34vw;
}

.contact-form-intro p {
    font-size: 0.94vw;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.44vw;
}

.contact-form>.form-row {
    display: flex;
    gap: 1.04vw;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
.contact-form .field-error{
    position: absolute;
    bottom: -1.5vw;
    left: 0;
}
.form-group.full-width {
    width: 100%;
}

.form-group.verify-code {
    display: flex;
    gap: 1vw;
    align-items: flex-start;
    flex-direction: row;
}

.form-group.verify-code .form-input {
    height: 4vw;
    width: 10.36vw;
}

.verify-code-image {
    width: initial;
    height: 4vw;
    border: 1px solid #E5E5E5;
    border-radius: 0.52vw;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-code-image:hover {
    border-color: #FD5000;
    transform: scale(1.05);
}

.form-label {
    color: #000;
    margin-bottom: 0.36vw;
    font-weight: 500;
    font-size: 1.25vw;
    line-height: 150%;
    letter-spacing: 0;
    vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.68vw;
    border-radius: 0.42vw;
    font-size: 0.9375vw;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #EBEBEB;
    height: 2.1875vw;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    padding-left: 2.7vw;
    border: none;
    font-family: 'Roboto', 'Noto Sans', Arial, sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FD5000;
    box-shadow: 0 0 0 2px rgba(253, 80, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    min-height: 8.125vw;
    resize: vertical;
    padding: 0.6vw 2.7vw;
}

/* Custom Select */
.custom-select {
    position: relative;
}

.input-no-icon.form-input{
    padding-left: 0.78vw;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.68vw;
    border-radius: 0.42vw;
    font-size: 0.9375vw;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #EBEBEB;
    height: 2.1875vw;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    padding-left: 2.7vw;
}

.select-trigger:hover,
.select-trigger.active {
    border-color: #FD5000;
}

.select-trigger.active {
    border-radius: 0.42vw 0.42vw 0 0 !important;
}

.select-trigger.placeholder {
    color: #00000033;
}

.select-trigger::before {
    content: '';
    display: block;
    width: 1.14vw;
    height: 1.14vw;
    background: url('../images/icon/identity.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 1vw;
    transform: translateY(-50%);
}

.select-identity::before {
    background: url('../images/icon/identity.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.select-country::before {
    background: url('../images/icon/phone.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.email-input-contact, .message-input-contact {
    position: relative;
}
.email-input-contact::after, .message-input-contact::after {
    content: '';
    display: block;
    width: 1.14vw;
    height: 1.14vw;
    background: url('../images/icon/mail.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 2.8vw;
    left: 1vw;
}

.message-input-contact::after {
    background: url('../images/icon/edit.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 1vw;
    left: 1vw;
    top: 2.9vw;
}

.select-arrow {
    width: 1vw;
    height: 1vw;
    transition: transform 0.3s ease;
    opacity: 0.2;
}

.select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-top: none;
    border-radius: 0 0 0.52vw 0.52vw;
    max-height: 10.42vw;
    overflow-y: auto;
    z-index: 10;
    display: none;
    background: #E3E2E2;
}

.select-options.show {
    display: block;
}

.select-option {
    padding: 0.52vw 1.04vw;
    font-size: 0.83vw;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-option:hover {
    background-color: #FFF5F0;
    color: #FD5000;
}

/* Submit Button */
.submit-button {
    background: #FD5000;
    color: white;
    border: none;
    border-radius: 0.52vw;
    padding: 0.94vw 2.08vw;
    font-size: 0.94vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 1.04vw;
}

.submit-button:hover {
    background: #E04500;
    transform: translateY(-0.10vw);
    box-shadow: 0 0.42vw 1.25vw rgba(253, 80, 0, 0.3);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.form-message{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #000000d9;
    width: 100%;
    height: 100%;
}

.form-message-inbox{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 39vw;
    padding-top: 6.66vw;
    padding-bottom: 3.08vw;
    border-radius: 0.78vw;
}
.form-message-icon{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}
.form-message-icon img{
    width: 6.35vw;
}
.form-message-content{
    color: #000000;
    line-height: 1.5;
    font-size: 1.15vw;
    margin-bottom: 2.92vw;
    padding: 0 5vw;
}
.form-message-btn-container{
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1.3vw;
}
.form-message-btn{
    width: 10.69vw;
    display: block;
    margin: 0;
    background: #FD5000;
    color: #fff;
    text-align: center;
    padding: 0.8vw 0;
    border-radius: 2.08vw;
    cursor: pointer;
}

.align-items-flex-end{
    align-items: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-banner {
        height: 146.6vw;
    }
    
    /* Banner Logo移动端样式 */
    .contact-banner-logo {
        top: 5.21vw;
        right: 5.33vw;
    }
    
    .contact-banner-logo img {
        width: 33.42vw;
    }
    
    .contact-info-section {
        padding: 17.33vw 4.26vw;
    }
    
    .contact-info-container {
        max-width: 100%;
        gap: 6.4vw;
        flex-direction: column;
    }
    
    .email-card-container {
        width: 100%;
        height: 90.13vw;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex: 0 0 auto;
        transform: none;
        overflow: hidden;
    }

    .email-card {
        width: 100%;
        max-width: none;
        padding-top: 12.21vw;
        padding-left: 8.94vw;
        padding-bottom: 0;
        border-radius: 2.66vw;
        height: 70.93vw;
        background: url(../images/contact/notepad-buttom.png);
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        flex: 0 0 auto;
        z-index: 1;
    }

    .email-card-top {
        position: absolute;
        top: 9.93vw;
        left: 0vw;
        width: 63vw;
        height: 19.28vw;
        background: url(../images/contact/notepad-top.png);
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        transform: translateY(100%) rotate(0deg);
        transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), top 1.2s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .email-card-container.animate .email-card-top {
        top: 1.99vw;
        transform: translateY(0) rotate(-13deg);
    }
    .email-contact-item{
        margin-bottom: 6.45vw;
        padding-left: 4.84vw;
    }
    .email-contact-item::before{
        width: 1.76vw;
        top: 1.1vw;
        height: 1.76vw;
    }

    .email-contact-label{
        font-size: 3.75vw;
        margin-bottom: 0.4vw;
        line-height: 1.2;
    }
    .email-contact-value{
        font-size: 5.34vw;
        line-height: 1.2;
    }

    .contact-form-container{
        border-radius: 4.8vw;
        padding: 6.4vw 4.26vw;
        width: 100%;
    }
    
    .contact-form-intro h2 {
        font-size: 4vw;
        margin-bottom: 4.26vw;
    }
    
    .contact-form-intro p {
        font-size: 3.73vw;
    }
    
    .contact-form {
        gap: 8vw;
    }
    
    .contact-form .form-label {
        font-size: 4.26vw;
        margin-bottom: 2.66vw;
        white-space: nowrap; 
        width: 40.8vw;
    }

    .contact-form .form-row{
        gap: 1.6vw;
    }
    
    .form-input,
    .form-select,
    .form-textarea,
    .select-trigger {
        font-size: 3.46vw;
        border-radius: 1.6vw;
        height: 12.13vw;
        width: 100%;
        padding-left: 7.73vw;
        padding-right: 2.13vw;
    }
    .input-no-icon.form-input{
        padding-left: 2.13vw;
    }

    .select-trigger::before{
        width: 4.26vw;
        height: 4.26vw;
        left: 2.5vw;
    }

    .email-input-contact::after, .message-input-contact::after{
        width: 4.26vw;
        height: 4.26vw;
        left: 2.5vw;
        top: 12.93vw;
    }

    .message-input-contact::after{
        left: 3.2vw;
        width: 3.6vw;
    }
    
    .form-textarea {
        height: 41.6vw;
        padding-top: 4vw;
    }
    
    .select-arrow {
        width: 2.5vw;
        height: 2.5vw;
    }
    
    .select-options {
        border-radius: 0 0 1.33vw 1.33vw;
        max-height: 26.66vw;
    }
    
    .select-option {
        padding: 2.66vw 3.2vw;
        font-size: 3.73vw;
        font-weight: 500;
    }
    
    .submit-button {
        font-size: 3.73vw;
        padding: 2.66vw 6.66vw;
        border-radius: 1.33vw;
        margin-top: 2.66vw;
    }
    
    .form-message-inbox{
        width: 91.46vw;
        padding-top: 15.72vw;
        padding-bottom: 5.19vw;
    }
    .form-message-icon img{
        width: 18.12vw;
    }
    .form-message-content{
        font-size: 3.72vw;
        margin-bottom: 6.14vw;
        padding: 0 6.66vw;
        line-height: 1.42;
    }
    .form-message-btn{
        font-size: 3.64vw;
        padding: 1.63vw 0;
        width: 29.32vw;
        border-radius: 4.09vw;
    }
    
    .form-group.verify-code {
        gap: 2.66vw;
    }

    .form-group.verify-code .form-input{
        height: 15vw;
        width: 36vw;
        font-size: 4vw;
    }
    
    .verify-code-image {
        width: initial;
        height: 15vw;
        border-radius: 2.13vw;
        flex: 1;
    }
}

/* Loading State */
.form-loading .submit-button {
    background: #ccc;
    cursor: not-allowed;
}

.form-loading .submit-button::after {
    content: '';
    display: inline-block;
    width: 0.83vw;
    height: 0.83vw;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.52vw;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .form-loading .submit-button::after {
        width: 2.66vw;
        height: 2.66vw;
        margin-left: 1.33vw;
    }
}

/* Custom Validation Bubble Tooltip */
.validation-bubble {
    position: absolute;
    background-color: #fff5f5;
    color: #1a1a1a;
    border: 1px solid #ff4444;
    padding: 0.52vw 0.78vw;
    border-radius: 0.26vw;
    font-size: 0.73vw;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 0.26vw 0.78vw rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-0.26vw);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 20.83vw;
    white-space: normal;
    word-wrap: break-word;
}

.validation-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive for validation bubble */
@media (max-width: 768px) {
    .validation-bubble {
        padding: 1.33vw 2vw;
        border-radius: 0.67vw;
        font-size: 2.67vw;
        max-width: 60vw;
        box-shadow: 0 0.67vw 2vw rgba(0, 0, 0, 0.2);
    }
}