/* Contact Page Styles */

/* 确保页面滚动正常 */
html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: #ffffff;
}


/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-container {
    max-width: none;
    margin: 0;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.08);
}

/* How Section Styles */
.how-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 40px;
}

.how-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.how-form .layui-input-block {
    margin-left: 0 !important;
}

.how-form .layui-form-item {
    width: 49%;
    margin-bottom: 15px !important;
}

.how-form .layui-form-item:last-child {
    padding-top: 0 !important;
}

.how-form .layui-form-label {
    text-align: left;
}

.contact-section-title {
    font-size: 23px;
    font-weight: 600;
    color: #1f9968;
    margin-bottom: 15px;
}

/* How Section Layui Form Items */
.how-section .layui-form-item {
    margin-bottom: 20px;
}

.how-section .layui-form-label {
    width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 38px;
    padding: 0 15px 0 0;
}

.how-section .layui-input-block {
    margin-left: 120px;
}

.how-section .layui-input {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.how-section .layui-input:focus {
    border-color: var(--primary-color, #1f9968);
    box-shadow: 0 0 0 2px rgba(31, 153, 104, 0.1);
    outline: none;
}

.how-section .field-note {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 0;
}

.email-consent-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.email-consent-section .layui-input-block{
    margin-left: 0 !important;
}

.email-consent-section .layui-form-checkbox[lay-skin=primary]>div{
    margin-top: 0;
    font-size: 15px;
}

.email-consent-section .layui-form-item:last-child{
    padding-top: 0 !important;
}

.email-consent-section .contact-section-title{
    margin-bottom: 10px;
}

.contact-form .layui-form-item {
    margin-bottom: 25px;
}

.contact-form .layui-form-label {
    width: auto;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 38px;
    padding: 0 15px 0 0;
}

.contact-form .layui-input-block {
    margin-left: 85px;
}

.contact-form .layui-input,
.contact-form .layui-textarea,
.contact-form .layui-select {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.contact-form .layui-input:focus,
.contact-form .layui-textarea:focus,
.contact-form .layui-select:focus {
    border-color: var(--primary-color, #1f9968);
    box-shadow: 0 0 0 2px rgba(31, 153, 104, 0.1);
    outline: none;
}

.contact-form .layui-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .layui-btn {
    height: 44px;
    line-height: 44px;
    padding: 0 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-form .submit-btn {
    background: var(--primary-color, #1f9968);
    border-color: var(--primary-color, #1f9968);
    margin-right: 15px;
}

.contact-form .submit-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 153, 104, 0.3);
}

.contact-form .reset-btn {
    background: #ffffff;
    border-color: #e6e6e6;
    color: #666;
}

.contact-form .reset-btn:hover {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #333;
}

.contact-form .layui-form-item:last-child {
    margin-bottom: 0;
    padding-top: 10px;
}

/* Required field indicator - 通过HTML中的*号来显示，不需要CSS伪元素 */
.contact-form .layui-form-label {
    position: relative;
}

.contact-form .layui-form-label .required-mark {
    color: #ff4d4f;
    margin-left: 2px;
    font-weight: normal;
}

/* Form validation styles */
.contact-form .layui-input.layui-form-danger {
    border-color: #ff4d4f;
}

.contact-form .layui-form-danger:focus {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1) !important;
}

/* Success message styles */
.form-success {
    text-align: center;
    padding: 40px 20px;
    background: #f6ffed;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-success .layui-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-success h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.form-success p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.title-header h2 {
    font-size: 40px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1f9968 0%, #2d5a3d 100%);
    /* padding: 120px 0 80px; */
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/earth.gif') center/cover no-repeat;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Contact Information Section */
.contact-info-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 0 auto;
}

.location-card {
    background: white;
    border-radius: 12px;
    padding: 40px;

    transition: all 0.3s ease;
    border: 1px solid #e7e7e7;
    cursor: pointer;
}

/* .location-card.active {
    border: 1px solid var(--primary-color);
} */

.location-card:hover {
    transform: translateY(-5px);
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.location-header i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.location-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.location-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text);
    margin: 0;
}

.map-content .map-item {
    height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.map-content .map-item iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Map section styles */
.map-content {
    width: 100%;
    position: relative;
}

/* 确保iframe不会影响页面滚动 */
.map-content .map-item iframe {
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}



/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-hero {
        padding: 60px 0;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 40px 0;
    }

    /* Contact Layout Mobile */
    .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .form-container {
        margin: 0;
    }

    /* How Section Mobile */


    .contact-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .how-section .layui-form-label {
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
        line-height: 1.4;
        padding: 0;
    }

    .how-section .layui-input-block {
        margin-left: 0;
    }

    .how-section .layui-input {
        padding: 12px;
        font-size: 14px;
    }

    .how-section .field-note {
        font-size: 12px;
    }

    .email-consent-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .email-consent-section .layui-form-checkbox[lay-skin=primary]>div{
        font-size: 14px;
        white-space: wrap;
        text-align: left;
    }

    .consent-label {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .contact-form {
        padding: 30px 20px;
    }

    .form-banner {
        padding: 20px;
    }

    .form-banner h3 {
        font-size: 16px;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .location-card {
        padding: 20px;
    }

    .location-header {
        margin-bottom: 10px;
    }

    .location-header i {
        font-size: 18px;
    }

    .location-header h3 {
        font-size: 18px;
    }

    .location-content p {
        font-size: 14px;
    }

    .hero-section {
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 23px;
        margin-bottom: 5px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .hero-section::before {
        animation: none;
    }

    .title-header h2 {
        text-align: center;
        font-size: 30px;
        line-height: 35px;
    }

    .title-decoration {
        justify-content: center;
    }

    .decoration-line {
        width: 40px;
        flex: none;
    }

    .decoration-dot {
        width: 10px;
        height: 10px;
    }

    .title-header {
        margin-bottom: 20px;
    }

    .title-header p {
        font-size: 15px;
        text-align: center;
    }

    .map-content .map-item {
        height: 300px;
        position: relative;
        overflow: hidden;
    }

    /* Contact Form Mobile Styles */
    .contact-form-section {
        padding: 40px 0;
    }

    .contact-form-section .title-header h2 {
        font-size: 28px;
    }

    .contact-form-section .title-header p {
        font-size: 14px;
    }



    .contact-form {
        padding: 25px 15px;
    }

    .contact-form .layui-form-label {
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
        line-height: 1.4;
        padding: 0;
    }

    .contact-form .layui-input-block {
        margin-left: 0;
    }

    .contact-form .layui-btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
        margin-left: 0;
    }

    .contact-form .layui-form-item:last-child .layui-input-block {
        text-align: center;
    }

    .contact-form .required-mark {
        display: inline-block;
        margin-left: 2px;
    }

    .layui-form-select .layui-edge {
        top: 73%;
    }

    /* Contact Aside Mobile */
    .contact-aside {
        position: static;
        margin-top: 30px;
    }

    .other-contact-content {
        padding: 20px !important;
    }

    .other-contact-title {
        font-size: 20px !important;
        margin-bottom: 20px;
    }

    .contact-methods {
        gap: 15px;
    }

    .contact-method {
        padding: 12px;
    }

    .contact-info-text {
        font-size: 14px;
    }
}

/* Contact Aside Styles */
.contact-aside {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.other-contact-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

.other-contact-title {
    font-size: 26px;
    font-weight: 600;
    color: #1f9968;
    margin-bottom: 25px;
    text-align: left;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    background: #fff;
    border: 1px solid transparent;
}

.contact-method:hover {
    background: none;
    border: 1px solid #1f9968;
    transform: translateY(-2px);
    box-shadow: none;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #333;
    flex-shrink: 0;
    background: none;
}

.contact-icon.email {
    color: #1f9968;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-info-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.contact-info-text.email {
    color: #1f9968;
}

/* Privacy Section Styles */
.privacy-section {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    /* border: 1px solid #e5e7eb; */
}

.privacy-title {
    font-size: 26px;
    font-weight: 500;
    color: #1f9968;
    margin-bottom: 20px;
    position: relative;
}



.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.privacy-statement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.privacy-icon {
    width: 22px;
    height: 22px;
    color: #1f9968;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-statement p {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

.privacy-content>p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.privacy-link {
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #1f9968;
}

/* Privacy Section Mobile Styles */
@media (max-width: 768px) {
    .privacy-section {
        margin-top: 20px;
        padding: 20px;
    }

    .privacy-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .privacy-title::after {
        width: 6px;
        height: 6px;
        right: -10px;
    }

    .privacy-content {
        gap: 12px;
    }

    .privacy-statement p {
        font-size: 14px;
    }

    .privacy-content>p{
        font-size: 13px;
    }
}