/* 预约页面主容器样式 */
.appointment-container {
    height: 100vh;
    padding: 0;
    margin: 0;
    background-image: url('../images/yvyue.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 确保body和html没有默认边距，让容器能够完全铺满屏幕 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

/* 调整header样式，确保它在图片上层显示 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* header滚动时的样式 */
header.sticky {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* 内容区域样式 */
.appointment-content {
    max-width: 1200px;
    padding: 100px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



/* 预约表单样式 */
.form-wrapper {
    width: 100%;
    max-width: 800px;
    margin-left: -100px; /* 从150px调整为-100px，向左移动250px */
}

.form-title {
    font-size: 24px;
    color: #000000;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: left;
}

.form-subtitle {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
    margin: 0 0 30px 0;
    text-align: left;
}

.appointment-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 410px;
    height: 475px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 必填项星号样式 */
.required {
    color: #ff0000;
    margin-left: 4px;
}



/* 表单组样式调整 - 使用flex布局让label和input保持一行 */
.form-group {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 表单标签样式调整 - 缩小label宽度 */
.form-label {
    font-size: 14px;
    color: #333333;
    font-weight: 400;
    margin-bottom: 0;
    margin-right: 15px;
    min-width: 60px;
    text-align: left;
}

/* 输入框样式调整 - 下划线样式 */
.form-input {
    flex: 1;
    padding: 8px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    color: #333333;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: none;
}

/* 验证码输入框和按钮样式 - 共用下划线 */
.verification-code-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

/* 移除验证码输入框的单独下划线 */
.verification-code {
    flex: 1;
    border-bottom: none;
    padding-bottom: 0;
}

/* 验证码容器获得焦点时，下划线变色 */
.verification-code:focus {
    outline: none;
    border-color: transparent;
}

.verification-code-wrapper:focus-within {
    border-color: #4a90e2;
}

.verification-code-btn {
    padding: 0;
    background-color: transparent;
    color: #4a90e2;
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    min-width: auto;
}

.verification-code-btn:hover {
    background-color: transparent;
    color: #357abd;
}

.verification-code-btn:disabled {
    background-color: transparent;
    color: #cccccc;
    cursor: not-allowed;
}

/* 倒计时按钮样式 */
.verification-code-btn.counting {
    background-color: transparent;
    color: #999999;
}

.verification-code-btn.counting:hover {
    background-color: transparent;
    color: #777777;
}

/* 提交按钮样式调整 - 红色背景 */
.submit-button {
    width: 100%;
    padding: 12px 0;
    background-color: #ff434f;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
}

.submit-button:hover {
    background-color: #e03a47;
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* 表单错误样式调整 */
.form-error {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-input {
    border-color: #ff0000;
}

.form-group.error .form-input:focus {
    box-shadow: none;
}


