/* 表单样式文件 - 黑色主题 */

/* 表单容器 */
.fortune-form-container {
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
}

.fortune-form {
    width: 100%;
}

/* 表单分组 */
.form-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.form-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-group h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #03dac6;
}

.form-hint {
    font-size: 0.9rem;
    color: #9e9e9e;
    margin-bottom: 1rem;
}

/* 表单行 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* 表单字段 */
.form-field {
    flex: 1;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    min-width: 200px;
}

.form-field.full-width {
    flex-basis: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

/* 输入框样式 */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #2c2c2c;
    color: #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2);
    outline: none;
}

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

/* 下拉选择框 */
.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* 文本区域 */
.form-field textarea {
    height: 120px;
    resize: vertical;
}

/* 单选框和复选框 */
.radio-group,
.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input,
.checkbox-label input {
    margin-right: 0.5rem;
}

.radio-label span,
.checkbox-label span {
    font-weight: normal;
    color: #e0e0e0;
}

/* 自定义单选框 */
.radio-label input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    outline: none;
}

.radio-label input[type="radio"]:checked {
    border-color: #bb86fc;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background-color: #bb86fc;
    border-radius: 50%;
}

/* 自定义复选框 */
.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    outline: none;
}

.checkbox-label input[type="checkbox"]:checked {
    border-color: #bb86fc;
    background-color: #bb86fc;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #121212;
    font-size: 14px;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-field {
        flex-basis: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 