* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: "Source Han Serif", "Source Han Serif CN", "Noto Serif CJK SC", SimSun, serif;
    overflow-x: hidden;
    background-color: #4ab7a2;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: url('../images/common/bg.jpg') no-repeat center top;
    background-size: 100% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10vw;
}

/* Reused Header Bar Styles */
.header-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw 5vw;
    z-index: 100;
    background-color: #008573;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.icon-menu {
    width: 6vw;
    height: 4.5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.icon-menu span {
    display: block;
    width: 100%;
    height: 0.5vw;
    background-color: rgba(255, 255, 255, 0.9);
}

.icon-search {
    width: 6vw;
    height: 6vw;
    background: url('../images/common/search.png') no-repeat center center;
    background-size: 100% 100%;
    cursor: pointer;
}

/* Search Bar Styles */
.search-bar {
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: sticky;
    top: 14vw;
    z-index: 99;
}
.search-bar.show {
    height: 16vw;
    opacity: 1;
    padding: 0 20px 2vw 20px;
}
.search-bar form {
    width: 100%;
    display: flex;
    justify-content: center;
}
.search-input-wrapper {
    width: 100%;
    height: 11vw;
    background-color: #e8f5f1;
    border-radius: 5.5vw;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    position: relative;
}
.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 4vw;
    color: #0c6b5e;
}
.search-input-wrapper .icon-search-inner {
    width: 4.5vw;
    height: 4.5vw;
    border: 0.4vw solid #2ea991;
    border-radius: 50%;
    position: relative;
    margin-left: 2vw;
}
.search-input-wrapper .icon-search-inner::after {
    content: '';
    position: absolute;
    width: 1.5vw;
    height: 0.4vw;
    background-color: #2ea991;
    bottom: -0.3vw;
    right: -0.7vw;
    transform: rotate(45deg);
}

/* Sidebar Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -70vw;
    width: 70vw;
    height: 100%;
    background-color: #69c3ae;
    z-index: 101;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 20vw;
}
.sidebar.show {
    left: 0;
}
.sidebar-item {
    padding: 5vw 8vw;
    color: #ffffff;
    font-size: 6vw;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5vw;
}
.close-btn {
    position: absolute;
    top: 4vw;
    right: 4vw;
    width: 8vw;
    height: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.close-btn::before, .close-btn::after {
    content: '';
    position: absolute;
    width: 6vw;
    height: 0.5vw;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1vw;
}
.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }

/* Form Specific Styles */
.form-title {
    margin-top: -2vw;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 15px;
    position: relative;
    top:10px
}
.form-title img {
    width: 100%;
    height: auto;
}

.form-top-bg {
    width: 100%;
    height: 55vw;
    background-size: 100% auto;
    margin-top: -2vw;
}

.form-container {
    width: 91vw;
    margin-top: 16vw; 
    margin-bottom: 16vw; /* 预留底部花边空间，增加呼吸感 */
    position: relative;
    z-index: 5;
    
    /* 使用双重背景实现渐变边框：内容渐变 + 边框渐变 */
    background-image: 
        linear-gradient(to bottom, #d3ede7, #fdfbf4 15%, #f5f5e9), 
        linear-gradient(to bottom, #51aaa2, #8ecda7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    border-left: 1.5vw solid transparent;
    border-right: 1.5vw solid transparent;

    /* 调整内边距 */
    padding: 5vw 8vw;
    display: flex;
    flex-direction: column;
    
    /* 移除之前的 mask 方案 */
    -webkit-mask-image: none;
    mask-image: none;
}

/* 上部花边 */
.form-container::before {
    content: '';
    position: absolute;
    top: -11.5vw;
    left: -1.8vw;
    right: -1.8vw;
    height: 12vw;
    background: url('../images/common/list-bg.png') no-repeat top center;
    background-size: 100% auto;
    z-index: 2;
}

/* 下部花边 */
.form-container::after {
    content: '';
    position: absolute;
    bottom: -11.5vw;
    left: -1.8vw;
    right: -1.8vw;
    height: 12vw;
    background: url('../images/common/list-bg.png') no-repeat bottom center;
    background-size: 100% auto;
    z-index: 2;
}

/* 移除之前不再需要的样式 */
.form-container::after {
    /* 之前的 ::after 已经被新的底部花边样式覆盖，这里确保不再有干扰 */
}

.question-item {
    margin-bottom: 8vw;
}

.question-title {
    font-size: 4.5vw;
    color: #0c6b5e;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 4vw;
    display: flex;
    align-items: flex-start;
}

.question-number {
    background-color: #69c3ae;
    color: #fff;
    width: 5.5vw;
    height: 5.5vw;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5vw;
    margin-right: 2vw;
    flex-shrink: 0;
    margin-top: 0.5vw;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    padding-left: 7.5vw;
}

.option-item {
    display: flex;
    align-items: flex-start;
    font-size: 4vw;
    color: #0c6b5e;
    cursor: pointer;
}

.option-item input {
    display: none;
}

.radio-custom, .checkbox-custom {
    width: 4.5vw;
    height: 4.5vw;
    border: 0.3vw solid #69c3ae;
    border-radius: 50%;
    margin-right: 3vw;
    position: relative;
    flex-shrink: 0;
}

.checkbox-custom {
    border-radius: 0.5vw;
    margin-top: 5px;
}

.option-item input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5vw;
    height: 2.5vw;
    background-color: #69c3ae;
    border-radius: 50%;
}

.option-item input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #69c3ae;
    font-size: 3.5vw;
    font-weight: bold;
}

.input-wrapper {
    padding-left: 7.5vw;
}

.text-input {
    width: 100%;
    height: 20vw;
    border: 1px solid #c0e3d9;
    background-color: #f8fdfc;
    padding: 3vw;
    font-size: 4vw;
    color: #0c6b5e;
    outline: none;
    resize: none;
    font-family: inherit;
}

.text-input::placeholder {
    color: #ccc;
}

.thanks-msg {
    text-align: center;
    font-size: 4.2vw;
    color: #0c6b5e;
    font-weight: bold;
    margin-top: 4vw;
    margin-bottom: 2vw;
    letter-spacing: 0.1vw;
}

.submit-btn-container {
    width: 90vw;
    margin-top: 6vw;
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    height: 14vw;
    background: url('../images/common/1-1btnBg.png') no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0c6b5e;
    font-size: 5.5vw;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1vw;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 85vw;
    max-width: 600px;
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}
